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

Unified Diff: components/omnibox/browser/physical_web_node.h

Issue 2591053002: Show PhysicalWebProvider suggestions with omnibox input (Closed)
Patch Set: debase 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/omnibox/browser/physical_web_node.h
diff --git a/components/omnibox/browser/physical_web_node.h b/components/omnibox/browser/physical_web_node.h
new file mode 100644
index 0000000000000000000000000000000000000000..7208b464efc43364561b013ab6468478a34acd2f
--- /dev/null
+++ b/components/omnibox/browser/physical_web_node.h
@@ -0,0 +1,29 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef COMPONENTS_OMNIBOX_BROWSER_PHYSICAL_WEB_NODE_H_
+#define COMPONENTS_OMNIBOX_BROWSER_PHYSICAL_WEB_NODE_H_
+
+#include "components/bookmarks/browser/titled_url_node.h"
+#include "url/gurl.h"
+
+namespace base {
+class DictionaryValue;
+}
+
+class PhysicalWebNode : public bookmarks::TitledUrlNode {
+ public:
+ explicit PhysicalWebNode(const base::DictionaryValue& metadata_item);
+ ~PhysicalWebNode() override;
+
+ // TitledUrlNode
+ const base::string16& GetTitledUrlNodeTitle() const override;
+ const GURL& GetTitledUrlNodeUrl() const override;
+
+ private:
+ base::string16 node_title_;
+ GURL node_url_;
+};
+
+#endif // COMPONENTS_OMNIBOX_BROWSER_PHYSICAL_WEB_NODE_H_

Powered by Google App Engine
This is Rietveld 408576698