diff options
author | tfarina <tfarina@chromium.org> | 2015-01-12 10:46:48 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-01-12 18:47:43 +0000 |
commit | a0ec34ea883be550ed4b0bd2c593939eed31c882 (patch) | |
tree | c9f2e861cfb9b1faa36bfa46249fd3a8c71e0013 /components/enhanced_bookmarks/metadata_accessor.h | |
parent | 2f65eb2d9c327d2bd93d079b7b6c2924e1959df5 (diff) | |
download | chromium_src-a0ec34ea883be550ed4b0bd2c593939eed31c882.zip chromium_src-a0ec34ea883be550ed4b0bd2c593939eed31c882.tar.gz chromium_src-a0ec34ea883be550ed4b0bd2c593939eed31c882.tar.bz2 |
bookmarks: Move BookmarkModel into 'bookmarks' namespace.
BUG=370433
TEST=unit_tests, components_unittests
R=sky@chromium.org
TBR=joaodasilva@chromium.org (for components/policy)
Review URL: https://codereview.chromium.org/820603005
Cr-Commit-Position: refs/heads/master@{#311074}
Diffstat (limited to 'components/enhanced_bookmarks/metadata_accessor.h')
-rw-r--r-- | components/enhanced_bookmarks/metadata_accessor.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/components/enhanced_bookmarks/metadata_accessor.h b/components/enhanced_bookmarks/metadata_accessor.h index 313705b..884a0e7 100644 --- a/components/enhanced_bookmarks/metadata_accessor.h +++ b/components/enhanced_bookmarks/metadata_accessor.h @@ -9,10 +9,13 @@ #include <string> #include <vector> -class BookmarkModel; class BookmarkNode; class GURL; +namespace bookmarks { +class BookmarkModel; +} + // TODO(rfevang): Remove this file once the remaining caller // is converted (enhanced_bookmarks_bridge.cc) @@ -32,11 +35,11 @@ extern const char* kNoteKey; // Returns the remoteId for a bookmark. If the bookmark doesn't have one already // this function will create and set one. -std::string RemoteIdFromBookmark(BookmarkModel* bookmark_model, +std::string RemoteIdFromBookmark(bookmarks::BookmarkModel* bookmark_model, const BookmarkNode* node); // Sets the description of a bookmark. -void SetDescriptionForBookmark(BookmarkModel* bookmark_model, +void SetDescriptionForBookmark(bookmarks::BookmarkModel* bookmark_model, const BookmarkNode* node, const std::string& description); @@ -46,7 +49,7 @@ std::string DescriptionFromBookmark(const BookmarkNode* node); // Sets the URL of an image representative of the page. // Expects the URL to be valid and not empty. // Returns true if the metainfo is successfully populated. -bool SetOriginalImageForBookmark(BookmarkModel* bookmark_model, +bool SetOriginalImageForBookmark(bookmarks::BookmarkModel* bookmark_model, const BookmarkNode* node, const GURL& url, int width, @@ -74,7 +77,7 @@ std::string SnippetFromBookmark(const BookmarkNode* node); // remove existing entries for empty urls or set them if the url is not empty. // expects valid or empty urls. Returns true if the metainfo is successfully // populated. -bool SetAllImagesForBookmark(BookmarkModel* bookmark_model, +bool SetAllImagesForBookmark(bookmarks::BookmarkModel* bookmark_model, const BookmarkNode* node, const GURL& image_url, int image_width, |