Index: chrome/browser/bookmarks/bookmark_service.h |
diff --git a/chrome/browser/bookmarks/bookmark_service.h b/chrome/browser/bookmarks/bookmark_service.h |
index 39ba6f43b2178db56ef4b3b4d6a978b6a482f85d..9fe65d040dc64cc32c77c1c893429217380a5205 100644 |
--- a/chrome/browser/bookmarks/bookmark_service.h |
+++ b/chrome/browser/bookmarks/bookmark_service.h |
@@ -7,7 +7,8 @@ |
#include <vector> |
-class GURL; |
+#include "base/string16.h" |
+#include "googleurl/src/gurl.h" |
// BookmarkService provides a thread safe view of bookmarks. It is used by |
// HistoryBackend when it needs to determine the set of bookmarked URLs |
@@ -16,17 +17,23 @@ class GURL; |
// BookmarkService is owned by Profile and deleted when the Profile is deleted. |
class BookmarkService { |
public: |
+ struct URLAndTitle { |
+ GURL url; |
+ string16 title; |
+ }; |
+ |
// Returns true if the specified URL is bookmarked. |
// |
// If not on the main thread you *must* invoke BlockTillLoaded first. |
virtual bool IsBookmarked(const GURL& url) = 0; |
- // Returns, by reference in urls, the set of bookmarked urls. This returns |
- // the unique set of URLs. For example, if two bookmarks reference the same |
- // URL only one entry is added. |
+ // Returns, by reference in |bookmarks|, the set of bookmarked urls and their |
+ // titles. This returns the unique set of URLs. For example, if two bookmarks |
+ // reference the same URL only one entry is added not matter the titles are |
+ // same or not. |
// |
// If not on the main thread you *must* invoke BlockTillLoaded first. |
- virtual void GetBookmarks(std::vector<GURL>* urls) = 0; |
+ virtual void GetBookmarks(std::vector<URLAndTitle>* bookmarks) = 0; |
// Blocks until loaded. This is intended for usage on a thread other than |
// the main thread. |