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 <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/deferred_sequenced_task_runner.h" | 10 #include "base/deferred_sequenced_task_runner.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 | 36 |
37 // Returns true if the given node belongs to the managed bookmarks tree. | 37 // Returns true if the given node belongs to the managed bookmarks tree. |
38 bool IsDescendantOfManagedNode(const BookmarkNode* node); | 38 bool IsDescendantOfManagedNode(const BookmarkNode* node); |
39 | 39 |
40 // Returns true if there is at least one managed node in the |list|. | 40 // Returns true if there is at least one managed node in the |list|. |
41 bool HasDescendantsOfManagedNode( | 41 bool HasDescendantsOfManagedNode( |
42 const std::vector<const BookmarkNode*>& list); | 42 const std::vector<const BookmarkNode*>& list); |
43 | 43 |
44 // bookmarks::BookmarkClient: | 44 // bookmarks::BookmarkClient: |
45 virtual bool PreferTouchIcon() OVERRIDE; | 45 virtual bool PreferTouchIcon() OVERRIDE; |
46 virtual base::CancelableTaskTracker::TaskId GetFaviconImageForURL( | 46 virtual base::CancelableTaskTracker::TaskId GetFaviconImageForPageURL( |
47 const GURL& page_url, | 47 const GURL& page_url, |
48 int icon_types, | 48 const favicon_base::FaviconImageCallback& callback, |
49 int desired_size_in_dip, | 49 base::CancelableTaskTracker* tracker) OVERRIDE; |
| 50 virtual base::CancelableTaskTracker::TaskId GetTouchFaviconImageForPageURL( |
| 51 const GURL& page_url, |
50 const favicon_base::FaviconImageCallback& callback, | 52 const favicon_base::FaviconImageCallback& callback, |
51 base::CancelableTaskTracker* tracker) OVERRIDE; | 53 base::CancelableTaskTracker* tracker) OVERRIDE; |
52 virtual bool SupportsTypedCountForNodes() OVERRIDE; | 54 virtual bool SupportsTypedCountForNodes() OVERRIDE; |
53 virtual void GetTypedCountForNodes( | 55 virtual void GetTypedCountForNodes( |
54 const NodeSet& nodes, | 56 const NodeSet& nodes, |
55 NodeTypedCountPairs* node_typed_count_pairs) OVERRIDE; | 57 NodeTypedCountPairs* node_typed_count_pairs) OVERRIDE; |
56 virtual bool IsPermanentNodeVisible( | 58 virtual bool IsPermanentNodeVisible( |
57 const BookmarkPermanentNode* node) OVERRIDE; | 59 const BookmarkPermanentNode* node) OVERRIDE; |
58 virtual void RecordAction(const base::UserMetricsAction& action) OVERRIDE; | 60 virtual void RecordAction(const base::UserMetricsAction& action) OVERRIDE; |
59 virtual bookmarks::LoadExtraCallback GetLoadExtraNodesCallback() OVERRIDE; | 61 virtual bookmarks::LoadExtraCallback GetLoadExtraNodesCallback() OVERRIDE; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 // the call to Shutdown. Must be valid for the whole interval. | 102 // the call to Shutdown. Must be valid for the whole interval. |
101 BookmarkModel* model_; | 103 BookmarkModel* model_; |
102 | 104 |
103 scoped_ptr<policy::ManagedBookmarksTracker> managed_bookmarks_tracker_; | 105 scoped_ptr<policy::ManagedBookmarksTracker> managed_bookmarks_tracker_; |
104 BookmarkPermanentNode* managed_node_; | 106 BookmarkPermanentNode* managed_node_; |
105 | 107 |
106 DISALLOW_COPY_AND_ASSIGN(ChromeBookmarkClient); | 108 DISALLOW_COPY_AND_ASSIGN(ChromeBookmarkClient); |
107 }; | 109 }; |
108 | 110 |
109 #endif // CHROME_BROWSER_BOOKMARKS_CHROME_BOOKMARK_CLIENT_H_ | 111 #endif // CHROME_BROWSER_BOOKMARKS_CHROME_BOOKMARK_CLIENT_H_ |
OLD | NEW |