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