OLD | NEW |
(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_ |
OLD | NEW |