| 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_CORE_BROWSER_BOOKMARK_CLIENT_H_ | 5 #ifndef COMPONENTS_BOOKMARKS_CORE_BROWSER_BOOKMARK_CLIENT_H_ |
| 6 #define COMPONENTS_BOOKMARKS_CORE_BROWSER_BOOKMARK_CLIENT_H_ | 6 #define COMPONENTS_BOOKMARKS_CORE_BROWSER_BOOKMARK_CLIENT_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 | 55 |
| 56 // Returns true if the embedder supports typed count for URL. | 56 // Returns true if the embedder supports typed count for URL. |
| 57 virtual bool SupportsTypedCountForNodes(); | 57 virtual bool SupportsTypedCountForNodes(); |
| 58 | 58 |
| 59 // Retrieves the number of time each BookmarkNode URL has been typed in | 59 // Retrieves the number of time each BookmarkNode URL has been typed in |
| 60 // the Omnibox by the user. | 60 // the Omnibox by the user. |
| 61 virtual void GetTypedCountForNodes( | 61 virtual void GetTypedCountForNodes( |
| 62 const NodeSet& nodes, | 62 const NodeSet& nodes, |
| 63 NodeTypedCountPairs* node_typed_count_pairs); | 63 NodeTypedCountPairs* node_typed_count_pairs); |
| 64 | 64 |
| 65 // Returns whether the embedder wants permanent node of type |node_type| |
| 66 // to always be visible or to only show them when not empty. |
| 67 virtual bool IsPermanentNodeVisible(int node_type) = 0; |
| 68 |
| 65 // Wrapper around RecordAction defined in base/metrics/user_metrics.h | 69 // Wrapper around RecordAction defined in base/metrics/user_metrics.h |
| 66 // that ensure that the action is posted from the correct thread. | 70 // that ensure that the action is posted from the correct thread. |
| 67 virtual void RecordAction(const base::UserMetricsAction& action) = 0; | 71 virtual void RecordAction(const base::UserMetricsAction& action) = 0; |
| 68 | 72 |
| 69 protected: | 73 protected: |
| 70 virtual ~BookmarkClient() {} | 74 virtual ~BookmarkClient() {} |
| 71 }; | 75 }; |
| 72 | 76 |
| 73 #endif // COMPONENTS_BOOKMARKS_CORE_BROWSER_BOOKMARK_CLIENT_H_ | 77 #endif // COMPONENTS_BOOKMARKS_CORE_BROWSER_BOOKMARK_CLIENT_H_ |
| OLD | NEW |