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 COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_CLIENT_H_ | 5 #ifndef COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_CLIENT_H_ |
6 #define COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_CLIENT_H_ | 6 #define COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_CLIENT_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
| 9 #include <string> |
9 #include <utility> | 10 #include <utility> |
10 #include <vector> | 11 #include <vector> |
11 | 12 |
12 #include "base/callback_forward.h" | 13 #include "base/callback_forward.h" |
13 #include "base/task/cancelable_task_tracker.h" | 14 #include "base/task/cancelable_task_tracker.h" |
14 #include "components/favicon_base/favicon_callback.h" | 15 #include "components/favicon_base/favicon_callback.h" |
15 | 16 |
16 class BookmarkNode; | 17 class BookmarkNode; |
17 class GURL; | 18 class GURL; |
18 | 19 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 NodeTypedCountPairs* node_typed_count_pairs); | 57 NodeTypedCountPairs* node_typed_count_pairs); |
57 | 58 |
58 // Returns whether the embedder wants permanent node of type |node_type| | 59 // Returns whether the embedder wants permanent node of type |node_type| |
59 // to always be visible or to only show them when not empty. | 60 // to always be visible or to only show them when not empty. |
60 virtual bool IsPermanentNodeVisible(int node_type) = 0; | 61 virtual bool IsPermanentNodeVisible(int node_type) = 0; |
61 | 62 |
62 // Wrapper around RecordAction defined in base/metrics/user_metrics.h | 63 // Wrapper around RecordAction defined in base/metrics/user_metrics.h |
63 // that ensure that the action is posted from the correct thread. | 64 // that ensure that the action is posted from the correct thread. |
64 virtual void RecordAction(const base::UserMetricsAction& action) = 0; | 65 virtual void RecordAction(const base::UserMetricsAction& action) = 0; |
65 | 66 |
| 67 // Returns the domain name for the managed bookmarks folder. This domain is |
| 68 // displayed only when the managed bookmarks come from a management domain; |
| 69 // if they come from platform or MDM policy then a default name should be |
| 70 // used instead. |
| 71 virtual std::string GetManagedBookmarksDomain(); |
| 72 |
66 protected: | 73 protected: |
67 virtual ~BookmarkClient() {} | 74 virtual ~BookmarkClient() {} |
68 }; | 75 }; |
69 | 76 |
70 #endif // COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_CLIENT_H_ | 77 #endif // COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_CLIENT_H_ |
OLD | NEW |