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

Side by Side Diff: components/bookmarks/browser/titled_url_node.h

Issue 2537223008: Add TitledUrlIndex for indexing arbitrary title/URL pairs (Closed)
Patch Set: const 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_BOOKMARKS_BROWSER_TITLED_URL_NODE_H_
6 #define COMPONENTS_BOOKMARKS_BROWSER_TITLED_URL_NODE_H_
7
8 #include "url/gurl.h"
9
10 namespace bookmarks {
11
12 // TitledUrlNode is an interface for objects like bookmarks that expose a title
13 // and URL. TitledUrlNodes can be added to a BookmarkIndex to quickly retrieve
14 // all nodes that contain a particular word in their title or URL.
15 class TitledUrlNode {
16 public:
17 // Returns the title for the node.
18 virtual const base::string16& GetTitledUrlNodeTitle() const = 0;
19
20 // Returns the URL for the node.
21 virtual const GURL& GetTitledUrlNodeUrl() const = 0;
22
23 protected:
24 virtual ~TitledUrlNode() {}
25 };
26
27 } // namespace bookmarks
28
29 #endif // COMPONENTS_BOOKMARKS_BROWSER_TITLED_URL_NODE_H_
OLDNEW
« no previous file with comments | « components/bookmarks/browser/bookmark_node.cc ('k') | components/omnibox/browser/bookmark_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698