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

Unified Diff: components/bookmarks/browser/bookmark_client.h

Issue 2537223008: Add TitledUrlIndex for indexing arbitrary title/URL pairs (Closed)
Patch Set: refactor in-place to preserve history Created 4 years 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 side-by-side diff with in-line comments
Download patch
Index: components/bookmarks/browser/bookmark_client.h
diff --git a/components/bookmarks/browser/bookmark_client.h b/components/bookmarks/browser/bookmark_client.h
index 5eb625fa88ff6f94ffd38ca8b203a288cff611e9..4c90716388328dc1b99e378151b04f2c94dd2eee 100644
--- a/components/bookmarks/browser/bookmark_client.h
+++ b/components/bookmarks/browser/bookmark_client.h
@@ -25,18 +25,18 @@ struct UserMetricsAction;
namespace bookmarks {
class BookmarkModel;
-class BookmarkNode;
class BookmarkPermanentNode;
+class TitledUrlNode;
// This class abstracts operations that depends on the embedder's environment,
// e.g. Chrome.
class BookmarkClient {
sky 2016/12/02 00:21:24 Why do you need to touch this class? I was assumin
mattreynolds 2016/12/02 21:02:06 Even if I factor out the sorting logic, at some po
sky 2016/12/02 21:30:29 BookmarkClient should be able to assume it is oper
public:
- // Types representing a set of BookmarkNode and a mapping from BookmarkNode
- // to the number of time the corresponding URL has been typed by the user in
+ // Types representing a set of TitledUrlNodes and a mapping from TitledUrlNode
+ // to the number of times the corresponding URL has been typed by the user in
// the Omnibox.
- typedef std::set<const BookmarkNode*> NodeSet;
- typedef std::pair<const BookmarkNode*, int> NodeTypedCountPair;
+ typedef std::set<const TitledUrlNode*> NodeSet;
+ typedef std::pair<const TitledUrlNode*, int> NodeTypedCountPair;
typedef std::vector<NodeTypedCountPair> NodeTypedCountPairs;
virtual ~BookmarkClient() {}

Powered by Google App Engine
This is Rietveld 408576698