Chromium Code Reviews| Index: chrome/browser/bookmarks/bookmark_model.h |
| diff --git a/chrome/browser/bookmarks/bookmark_model.h b/chrome/browser/bookmarks/bookmark_model.h |
| index 70ca10aa8bc690757f9006207985ccea9435bc64..c5fcfb75a886575e6ffd95ff05cae8dc15ae7f9c 100644 |
| --- a/chrome/browser/bookmarks/bookmark_model.h |
| +++ b/chrome/browser/bookmarks/bookmark_model.h |
| @@ -32,7 +32,7 @@ class BookmarkIndex; |
| class BookmarkLoadDetails; |
| class BookmarkModelObserver; |
| class BookmarkStorage; |
| -struct BookmarkTitleMatch; |
| +struct BookmarkMatch; |
| class Profile; |
| class ScopedGroupBookmarkActions; |
| @@ -58,7 +58,9 @@ class BookmarkModel : public content::NotificationObserver, |
| public BookmarkService, |
| public KeyedService { |
| public: |
| - explicit BookmarkModel(Profile* profile); |
| + // |index_urls| says whether URLs should be stored in the BookmarkIndex |
| + // in addition to bookmark titles. |
| + explicit BookmarkModel(Profile* profile, bool index_urls); |
|
sky
2014/04/21 23:09:01
Remove explicit
Mark P
2014/04/21 23:41:36
Done.
|
| virtual ~BookmarkModel(); |
| // Invoked prior to destruction to release any necessary resources. |
| @@ -213,10 +215,12 @@ class BookmarkModel : public content::NotificationObserver, |
| // combobox of most recently modified folders. |
| void ResetDateFolderModified(const BookmarkNode* node); |
| - void GetBookmarksWithTitlesMatching( |
| + // Returns up to |max_count| of bookmarks containing each term from |text| |
| + // in either the title or the URL. |
| + void GetBookmarksMatching( |
| const base::string16& text, |
| size_t max_count, |
| - std::vector<BookmarkTitleMatch>* matches); |
| + std::vector<BookmarkMatch>* matches); |
| // Sets the store to NULL, making it so the BookmarkModel does not persist |
| // any changes to disk. This is only useful during testing to speed up |
| @@ -391,6 +395,10 @@ class BookmarkModel : public content::NotificationObserver, |
| scoped_ptr<BookmarkIndex> index_; |
| + // True if URLs are stored in the BookmarkIndex in addition to bookmark |
| + // titles. |
| + const bool index_urls_; |
| + |
| base::WaitableEvent loaded_signal_; |
| // See description of IsDoingExtensiveChanges above. |