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

Side by Side Diff: components/omnibox/browser/physical_web_node.h

Issue 2635613002: Replace deprecated calls to GetMetadata in Physical Web omnibox provider (Closed)
Patch Set: fix tests Created 3 years, 11 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
« no previous file with comments | « no previous file | components/omnibox/browser/physical_web_node.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_
OLDNEW
« no previous file with comments | « no previous file | components/omnibox/browser/physical_web_node.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698