Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Side by Side Diff: components/bookmarks/core/browser/bookmark_client.h

Issue 265853002: Allow embedder to force visibility of permanent nodes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase & fix BookmarkModelTest.NodeVisibility Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/bookmark_model_associator.cc ('k') | components/bookmarks/core/browser/bookmark_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698