| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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_OMNIBOX_BROWSER_PHYSICAL_WEB_NODE_H_ | 5 #ifndef COMPONENTS_OMNIBOX_BROWSER_PHYSICAL_WEB_NODE_H_ |
| 6 #define COMPONENTS_OMNIBOX_BROWSER_PHYSICAL_WEB_NODE_H_ | 6 #define COMPONENTS_OMNIBOX_BROWSER_PHYSICAL_WEB_NODE_H_ |
| 7 | 7 |
| 8 #include "components/bookmarks/browser/titled_url_node.h" | 8 #include "components/bookmarks/browser/titled_url_node.h" |
| 9 #include "url/gurl.h" | 9 #include "url/gurl.h" |
| 10 | 10 |
| 11 namespace base { | 11 namespace physical_web { |
| 12 class DictionaryValue; | 12 struct Metadata; |
| 13 } | 13 } |
| 14 | 14 |
| 15 class PhysicalWebNode : public bookmarks::TitledUrlNode { | 15 class PhysicalWebNode : public bookmarks::TitledUrlNode { |
| 16 public: | 16 public: |
| 17 explicit PhysicalWebNode(const base::DictionaryValue& metadata_item); | 17 explicit PhysicalWebNode(const physical_web::Metadata& metadata_item); |
| 18 ~PhysicalWebNode() override; | 18 ~PhysicalWebNode() override; |
| 19 | 19 |
| 20 // TitledUrlNode | 20 // TitledUrlNode |
| 21 const base::string16& GetTitledUrlNodeTitle() const override; | 21 const base::string16& GetTitledUrlNodeTitle() const override; |
| 22 const GURL& GetTitledUrlNodeUrl() const override; | 22 const GURL& GetTitledUrlNodeUrl() const override; |
| 23 | 23 |
| 24 private: | 24 private: |
| 25 base::string16 node_title_; | 25 base::string16 node_title_; |
| 26 GURL node_url_; | 26 GURL node_url_; |
| 27 }; | 27 }; |
| 28 | 28 |
| 29 #endif // COMPONENTS_OMNIBOX_BROWSER_PHYSICAL_WEB_NODE_H_ | 29 #endif // COMPONENTS_OMNIBOX_BROWSER_PHYSICAL_WEB_NODE_H_ |
| OLD | NEW |