Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5359)

Unified Diff: chrome/browser/enhanced_bookmarks/android/bookmark_image_service_android.h

Issue 916783003: Restrict salient image size before storing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/enhanced_bookmarks/android/bookmark_image_service_android.h
diff --git a/chrome/browser/enhanced_bookmarks/android/bookmark_image_service_android.h b/chrome/browser/enhanced_bookmarks/android/bookmark_image_service_android.h
index 680e8dc36cdfea838362ab0b04744f5e7a1b45c1..0df85e3b67b577579d1f2d00ced68df801f272d0 100644
--- a/chrome/browser/enhanced_bookmarks/android/bookmark_image_service_android.h
+++ b/chrome/browser/enhanced_bookmarks/android/bookmark_image_service_android.h
@@ -24,6 +24,8 @@ class BookmarkImageServiceAndroid : public BookmarkImageService {
public:
explicit BookmarkImageServiceAndroid(content::BrowserContext* browserContext);
+ ~BookmarkImageServiceAndroid() override;
+
void RetrieveSalientImage(const GURL& page_url,
const GURL& image_url,
const std::string& referrer,
@@ -48,9 +50,12 @@ class BookmarkImageServiceAndroid : public BookmarkImageService {
bool update_bookmark,
const base::Value* result);
+ gfx::Image ResizeImage(gfx::Image image) override;
+
content::BrowserContext* browser_context_;
// The script injected in a page to extract image urls.
base::string16 script_;
+ scoped_ptr<gfx::Size> max_size_;
class BitmapFetcherHandler : private chrome::BitmapFetcherDelegate {
public:

Powered by Google App Engine
This is Rietveld 408576698