#include "components/safe_browsing/content/renderer/phishing_classifier/phishing_visual_feature_extractor.h"
#include <memory>
#include "base/metrics/histogram_functions.h"
#include "base/task/task_traits.h"
#include "base/task/thread_pool.h"
#include "components/paint_preview/common/paint_preview_tracker.h"
#include "skia/ext/legacy_display_globals.h"
#include "third_party/blink/public/web/web_local_frame.h"
#include "third_party/blink/public/web/web_view.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "ui/gfx/geometry/rect_conversions.h"
namespace {
std::unique_ptr<SkBitmap> PlaybackOnBackgroundThread(
cc::PaintRecord paint_record,
gfx::Rect bounds) { … }
}
namespace safe_browsing {
PhishingVisualFeatureExtractor::PhishingVisualFeatureExtractor() = default;
PhishingVisualFeatureExtractor::~PhishingVisualFeatureExtractor() = default;
void PhishingVisualFeatureExtractor::ExtractFeatures(
blink::WebLocalFrame* frame,
DoneCallback done_callback) { … }
void PhishingVisualFeatureExtractor::RunCallback(
std::unique_ptr<SkBitmap> bitmap) { … }
}