| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_BOOKMARKS_BOOKMARK_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_API_BOOKMARKS_BOOKMARK_SERVICE_H_ |
| 6 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_SERVICE_H_ | 6 #define CHROME_BROWSER_API_BOOKMARKS_BOOKMARK_SERVICE_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/string16.h" | 10 #include "base/string16.h" |
| 11 #include "googleurl/src/gurl.h" | 11 #include "googleurl/src/gurl.h" |
| 12 | 12 |
| 13 // BookmarkService provides a thread safe view of bookmarks. It is used by | 13 // BookmarkService provides a thread safe view of bookmarks. It is used by |
| 14 // HistoryBackend when it needs to determine the set of bookmarked URLs | 14 // HistoryBackend when it needs to determine the set of bookmarked URLs |
| 15 // or if a URL is bookmarked. | 15 // or if a URL is bookmarked. |
| 16 // | 16 // |
| (...skipping 19 matching lines...) Expand all Loading... |
| 36 virtual void GetBookmarks(std::vector<URLAndTitle>* bookmarks) = 0; | 36 virtual void GetBookmarks(std::vector<URLAndTitle>* bookmarks) = 0; |
| 37 | 37 |
| 38 // Blocks until loaded. This is intended for usage on a thread other than | 38 // Blocks until loaded. This is intended for usage on a thread other than |
| 39 // the main thread. | 39 // the main thread. |
| 40 virtual void BlockTillLoaded() = 0; | 40 virtual void BlockTillLoaded() = 0; |
| 41 | 41 |
| 42 protected: | 42 protected: |
| 43 virtual ~BookmarkService() {} | 43 virtual ~BookmarkService() {} |
| 44 }; | 44 }; |
| 45 | 45 |
| 46 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_SERVICE_H_ | 46 #endif // CHROME_BROWSER_API_BOOKMARKS_BOOKMARK_SERVICE_H_ |
| OLD | NEW |