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 CHROME_BROWSER_BOOKMARKS_CHROME_BOOKMARK_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_BOOKMARKS_CHROME_BOOKMARK_CLIENT_H_ |
6 #define CHROME_BROWSER_BOOKMARKS_CHROME_BOOKMARK_CLIENT_H_ | 6 #define CHROME_BROWSER_BOOKMARKS_CHROME_BOOKMARK_CLIENT_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "components/bookmarks/core/browser/base_bookmark_model_observer.h" | 9 #include "components/bookmarks/core/browser/base_bookmark_model_observer.h" |
10 #include "components/bookmarks/core/browser/bookmark_client.h" | 10 #include "components/bookmarks/core/browser/bookmark_client.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 | 27 |
28 // Returns the BookmarkModel that corresponds to this ChromeBookmarkClient. | 28 // Returns the BookmarkModel that corresponds to this ChromeBookmarkClient. |
29 BookmarkModel* model() { return model_.get(); } | 29 BookmarkModel* model() { return model_.get(); } |
30 | 30 |
31 // BookmarkClient: | 31 // BookmarkClient: |
32 virtual bool PreferTouchIcon() OVERRIDE; | 32 virtual bool PreferTouchIcon() OVERRIDE; |
33 virtual base::CancelableTaskTracker::TaskId GetFaviconImageForURL( | 33 virtual base::CancelableTaskTracker::TaskId GetFaviconImageForURL( |
34 const GURL& page_url, | 34 const GURL& page_url, |
35 int icon_types, | 35 int icon_types, |
36 int desired_size_in_dip, | 36 int desired_size_in_dip, |
37 const FaviconImageCallback& callback, | 37 const favicon_base::FaviconImageCallback& callback, |
38 base::CancelableTaskTracker* tracker) OVERRIDE; | 38 base::CancelableTaskTracker* tracker) OVERRIDE; |
39 virtual bool SupportsTypedCountForNodes() OVERRIDE; | 39 virtual bool SupportsTypedCountForNodes() OVERRIDE; |
40 virtual void GetTypedCountForNodes( | 40 virtual void GetTypedCountForNodes( |
41 const NodeSet& nodes, | 41 const NodeSet& nodes, |
42 NodeTypedCountPairs* node_typed_count_pairs) OVERRIDE; | 42 NodeTypedCountPairs* node_typed_count_pairs) OVERRIDE; |
43 virtual bool IsPermanentNodeVisible(int node_type) OVERRIDE; | 43 virtual bool IsPermanentNodeVisible(int node_type) OVERRIDE; |
44 virtual void RecordAction(const base::UserMetricsAction& action) OVERRIDE; | 44 virtual void RecordAction(const base::UserMetricsAction& action) OVERRIDE; |
45 | 45 |
46 // content::NotificationObserver: | 46 // content::NotificationObserver: |
47 virtual void Observe(int type, | 47 virtual void Observe(int type, |
(...skipping 18 matching lines...) Expand all Loading... |
66 Profile* profile_; | 66 Profile* profile_; |
67 | 67 |
68 content::NotificationRegistrar registrar_; | 68 content::NotificationRegistrar registrar_; |
69 | 69 |
70 scoped_ptr<BookmarkModel> model_; | 70 scoped_ptr<BookmarkModel> model_; |
71 | 71 |
72 DISALLOW_COPY_AND_ASSIGN(ChromeBookmarkClient); | 72 DISALLOW_COPY_AND_ASSIGN(ChromeBookmarkClient); |
73 }; | 73 }; |
74 | 74 |
75 #endif // CHROME_BROWSER_BOOKMARKS_CHROME_BOOKMARK_CLIENT_H_ | 75 #endif // CHROME_BROWSER_BOOKMARKS_CHROME_BOOKMARK_CLIENT_H_ |
OLD | NEW |