OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_BOOKMARKS_BOOKMARK_SERVICE_H_ |
6 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_SERVICE_H_ | 6 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_SERVICE_H_ |
7 #pragma once | |
8 | 7 |
9 #include <vector> | 8 #include <vector> |
10 | 9 |
11 class GURL; | 10 class GURL; |
12 | 11 |
13 // BookmarkService provides a thread safe view of bookmarks. It is used by | 12 // BookmarkService provides a thread safe view of bookmarks. It is used by |
14 // HistoryBackend when it needs to determine the set of bookmarked URLs | 13 // HistoryBackend when it needs to determine the set of bookmarked URLs |
15 // or if a URL is bookmarked. | 14 // or if a URL is bookmarked. |
16 // | 15 // |
17 // BookmarkService is owned by Profile and deleted when the Profile is deleted. | 16 // BookmarkService is owned by Profile and deleted when the Profile is deleted. |
(...skipping 13 matching lines...) Expand all Loading... |
31 | 30 |
32 // Blocks until loaded. This is intended for usage on a thread other than | 31 // Blocks until loaded. This is intended for usage on a thread other than |
33 // the main thread. | 32 // the main thread. |
34 virtual void BlockTillLoaded() = 0; | 33 virtual void BlockTillLoaded() = 0; |
35 | 34 |
36 protected: | 35 protected: |
37 virtual ~BookmarkService() {} | 36 virtual ~BookmarkService() {} |
38 }; | 37 }; |
39 | 38 |
40 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_SERVICE_H_ | 39 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_SERVICE_H_ |
OLD | NEW |