Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: chrome/browser/bookmarks/bookmark_service.h

Issue 48105: Remove unneeded uses of base/ref_counted.h. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2008, Google Inc. 1 // Copyright 2008, Google Inc.
2 // All rights reserved. 2 // All rights reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // * Redistributions of source code must retain the above copyright 8 // * Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer. 9 // notice, this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above 10 // * Redistributions in binary form must reproduce the above
(...skipping 14 matching lines...) Expand all
25 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 29
30 #ifndef CHROME_BROWSER_BOOKMARKS_BOOKMARK_SERVICE_H_ 30 #ifndef CHROME_BROWSER_BOOKMARKS_BOOKMARK_SERVICE_H_
31 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_SERVICE_H_ 31 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_SERVICE_H_
32 32
33 #include <vector> 33 #include <vector>
34 34
35 #include "base/ref_counted.h"
36
37 class GURL; 35 class GURL;
38 36
39 // BookmarkService provides a thread safe view of bookmarks. It is used by 37 // BookmarkService provides a thread safe view of bookmarks. It is used by
40 // HistoryBackend when it needs to determine the set of bookmarked URLs 38 // HistoryBackend when it needs to determine the set of bookmarked URLs
41 // or if a URL is bookmarked. 39 // or if a URL is bookmarked.
42 // 40 //
43 // BookmarkService is owned by Profile and deleted when the Profile is deleted. 41 // BookmarkService is owned by Profile and deleted when the Profile is deleted.
44 class BookmarkService { 42 class BookmarkService {
45 public: 43 public:
46 // Returns true if the specified URL is bookmarked. 44 // Returns true if the specified URL is bookmarked.
47 // 45 //
48 // If not on the main thread you *must* invoke BlockTillLoaded first. 46 // If not on the main thread you *must* invoke BlockTillLoaded first.
49 virtual bool IsBookmarked(const GURL& url) = 0; 47 virtual bool IsBookmarked(const GURL& url) = 0;
50 48
51 // Returns, by reference in urls, the set of bookmarked urls. This returns 49 // Returns, by reference in urls, the set of bookmarked urls. This returns
52 // the unique set of URLs. For example, if two bookmarks reference the same 50 // the unique set of URLs. For example, if two bookmarks reference the same
53 // URL only one entry is added. 51 // URL only one entry is added.
54 // 52 //
55 // If not on the main thread you *must* invoke BlockTillLoaded first. 53 // If not on the main thread you *must* invoke BlockTillLoaded first.
56 virtual void GetBookmarks(std::vector<GURL>* urls) = 0; 54 virtual void GetBookmarks(std::vector<GURL>* urls) = 0;
57 55
58 // Blocks until loaded. This is intended for usage on a thread other than 56 // Blocks until loaded. This is intended for usage on a thread other than
59 // the main thread. 57 // the main thread.
60 virtual void BlockTillLoaded() = 0; 58 virtual void BlockTillLoaded() = 0;
61 }; 59 };
62 60
63 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_SERVICE_H_ 61 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/history_url_provider.h ('k') | chrome/browser/extensions/extension_error_reporter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698