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

Unified Diff: components/enhanced_bookmarks/bookmark_image_service.h

Issue 476573004: Set version field when changes are made to enhanced bookmarks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « components/enhanced_bookmarks.gypi ('k') | components/enhanced_bookmarks/bookmark_image_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/enhanced_bookmarks/bookmark_image_service.h
diff --git a/components/enhanced_bookmarks/bookmark_image_service.h b/components/enhanced_bookmarks/bookmark_image_service.h
index 6ca75eb4e39c97e7dc6b5e44b4446a763d7c33da..1cdda97eab1f50c3caa00610184ad1a8f63aaefe 100644
--- a/components/enhanced_bookmarks/bookmark_image_service.h
+++ b/components/enhanced_bookmarks/bookmark_image_service.h
@@ -20,16 +20,18 @@ class BookmarkNode;
namespace enhanced_bookmarks {
+class EnhancedBookmarkModel;
+
// The BookmarkImageService stores salient images for bookmarks.
class BookmarkImageService : public KeyedService,
public BookmarkModelObserver,
public base::NonThreadSafe {
public:
- explicit BookmarkImageService(const base::FilePath& path,
- BookmarkModel* bookmark_model,
- scoped_refptr<base::SequencedWorkerPool> pool);
+ BookmarkImageService(const base::FilePath& path,
+ EnhancedBookmarkModel* enhanced_bookmark_model,
+ scoped_refptr<base::SequencedWorkerPool> pool);
BookmarkImageService(scoped_ptr<ImageStore> store,
- BookmarkModel* bookmark_model,
+ EnhancedBookmarkModel* enhanced_bookmark_model,
scoped_refptr<base::SequencedWorkerPool> pool);
virtual ~BookmarkImageService();
@@ -100,8 +102,8 @@ class BookmarkImageService : public KeyedService,
// PageUrls currently in the progress of being retrieved.
std::set<GURL> in_progress_page_urls_;
- // Cached pointer to the bookmarks model.
- BookmarkModel* bookmark_model_; // weak
+ // Cached pointers to the bookmark models.
Yaron 2014/09/08 23:30:39 only one now
Rune Fevang 2014/09/08 23:50:46 Done.
+ EnhancedBookmarkModel* enhanced_bookmark_model_;
private:
// Same as SalientImageForUrl(const GURL&, Callback) but can prevent the
« no previous file with comments | « components/enhanced_bookmarks.gypi ('k') | components/enhanced_bookmarks/bookmark_image_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698