diff options
author | sky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-09 17:34:17 +0000 |
---|---|---|
committer | sky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-09 17:34:17 +0000 |
commit | 9333f1812b353233e6c492a6dfe7efb3a03717a3 (patch) | |
tree | bc8701a2588eb73d9773a6a24e052c9c7d28e3a4 /chrome/browser/bookmarks/bookmark_model.h | |
parent | 775cfd76d4523b8e932e98214c0b082e20385544 (diff) | |
download | chromium_src-9333f1812b353233e6c492a6dfe7efb3a03717a3.zip chromium_src-9333f1812b353233e6c492a6dfe7efb3a03717a3.tar.gz chromium_src-9333f1812b353233e6c492a6dfe7efb3a03717a3.tar.bz2 |
Moves some utility functions out of bookmark model into
bookmark_utils. In addition I've converted to using
TreeNodeIterator. This doesn't contain any functionality changes.
BUG=4065
TEST=none
Review URL: http://codereview.chromium.org/13642
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6589 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/bookmarks/bookmark_model.h')
-rw-r--r-- | chrome/browser/bookmarks/bookmark_model.h | 36 |
1 files changed, 1 insertions, 35 deletions
diff --git a/chrome/browser/bookmarks/bookmark_model.h b/chrome/browser/bookmarks/bookmark_model.h index 182d3cc..675405b 100644 --- a/chrome/browser/bookmarks/bookmark_model.h +++ b/chrome/browser/bookmarks/bookmark_model.h @@ -190,7 +190,7 @@ class BookmarkModel : public NotificationObserver, public BookmarkService { public: explicit BookmarkModel(Profile* profile); virtual ~BookmarkModel(); - + // Loads the bookmarks. This is called by Profile upon creation of the // BookmarkModel. You need not invoke this directly. void Load(); @@ -209,34 +209,6 @@ class BookmarkModel : public NotificationObserver, public BookmarkService { // (as long as the model is loaded). BookmarkNode* GetParentForNewNodes(); - // Returns a vector containing up to |max_count| of the most recently - // modified groups. This never returns an empty vector. - std::vector<BookmarkNode*> GetMostRecentlyModifiedGroups(size_t max_count); - - // Returns the most recently added bookmarks. This does not return groups, - // only nodes of type url. - void GetMostRecentlyAddedEntries(size_t count, - std::vector<BookmarkNode*>* nodes); - - // Used by GetBookmarksMatchingText to return a matching node and the location - // of the match in the title. - struct TitleMatch { - BookmarkNode* node; - - // Location of the matching words in the title of the node. - Snippet::MatchPositions match_positions; - }; - - // Returns the bookmarks whose title contains text. At most |max_count| - // matches are returned in |matches|. - void GetBookmarksMatchingText(const std::wstring& text, - size_t max_count, - std::vector<TitleMatch>* matches); - - // Returns true if the specified bookmark's title matches the specified - // text. - bool DoesBookmarkMatchText(const std::wstring& text, BookmarkNode* node); - void AddObserver(BookmarkModelObserver* observer) { observers_.AddObserver(observer); } @@ -405,12 +377,6 @@ class BookmarkModel : public NotificationObserver, public BookmarkService { // If we're waiting on a favicon for node, the load request is canceled. void CancelPendingFavIconLoadRequests(BookmarkNode* node); - // Returns up to count of the most recently modified groups. This may not - // add anything. - void GetMostRecentlyModifiedGroupNodes(BookmarkNode* parent, - size_t count, - std::vector<BookmarkNode*>* nodes); - // NotificationObserver. virtual void Observe(NotificationType type, const NotificationSource& source, |