#include "components/safe_browsing/content/renderer/phishing_classifier/phishing_image_embedder.h"
#include "base/trace_event/trace_event.h"
#include "components/safe_browsing/buildflags.h"
#include "components/safe_browsing/content/renderer/phishing_classifier/phishing_visual_feature_extractor.h"
#include "components/safe_browsing/content/renderer/phishing_classifier/scorer.h"
#include "content/public/renderer/render_frame.h"
#include "third_party/blink/public/platform/web_url.h"
#include "third_party/blink/public/platform/web_url_request.h"
#include "third_party/blink/public/web/web_document.h"
#include "third_party/blink/public/web/web_document_loader.h"
#include "third_party/blink/public/web/web_local_frame.h"
#include "third_party/blink/public/web/web_view.h"
namespace safe_browsing {
PhishingImageEmbedder::PhishingImageEmbedder(content::RenderFrame* render_frame)
: … { … }
bool PhishingImageEmbedder::is_ready() const { … }
PhishingImageEmbedder::~PhishingImageEmbedder() { … }
void PhishingImageEmbedder::BeginImageEmbedding(DoneCallback done_callback) { … }
void PhishingImageEmbedder::OnPlaybackDone(std::unique_ptr<SkBitmap> bitmap) { … }
void PhishingImageEmbedder::CancelPendingImageEmbedding() { … }
void PhishingImageEmbedder::OnImageEmbeddingDone(
ImageFeatureEmbedding image_feature_embedding) { … }
void PhishingImageEmbedder::RunCallback(
const ImageFeatureEmbedding& image_feature_embedding) { … }
void PhishingImageEmbedder::RunFailureCallback() { … }
void PhishingImageEmbedder::Clear() { … }
}