OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_BOOKMARKS_CORE_BROWSER_BOOKMARK_SERVICE_H_ | 5 #ifndef COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_SERVICE_H_ |
6 #define COMPONENTS_BOOKMARKS_CORE_BROWSER_BOOKMARK_SERVICE_H_ | 6 #define COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_SERVICE_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
11 #include "url/gurl.h" | 11 #include "url/gurl.h" |
12 | 12 |
13 // BookmarkService provides a thread safe view of bookmarks. It can be used | 13 // BookmarkService provides a thread safe view of bookmarks. It can be used |
14 // to determine the set of bookmarked URLs or to check if an URL is bookmarked. | 14 // to determine the set of bookmarked URLs or to check if an URL is bookmarked. |
15 class BookmarkService { | 15 class BookmarkService { |
16 public: | 16 public: |
(...skipping 16 matching lines...) Expand all Loading... |
33 virtual void GetBookmarks(std::vector<URLAndTitle>* bookmarks) = 0; | 33 virtual void GetBookmarks(std::vector<URLAndTitle>* bookmarks) = 0; |
34 | 34 |
35 // Blocks until loaded. This is intended for usage on a thread other than | 35 // Blocks until loaded. This is intended for usage on a thread other than |
36 // the main thread. | 36 // the main thread. |
37 virtual void BlockTillLoaded() = 0; | 37 virtual void BlockTillLoaded() = 0; |
38 | 38 |
39 protected: | 39 protected: |
40 virtual ~BookmarkService() {} | 40 virtual ~BookmarkService() {} |
41 }; | 41 }; |
42 | 42 |
43 #endif // COMPONENTS_BOOKMARKS_CORE_BROWSER_BOOKMARK_SERVICE_H_ | 43 #endif // COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_SERVICE_H_ |
OLD | NEW |