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

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

Issue 2203993002: Add a Physical Web omnibox autocomplete provider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: data source changes Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: components/omnibox/browser/physical_web_provider.h
diff --git a/components/omnibox/browser/physical_web_provider.h b/components/omnibox/browser/physical_web_provider.h
new file mode 100644
index 0000000000000000000000000000000000000000..506afd1fe2ea974f93e3739e1469715553c928f9
--- /dev/null
+++ b/components/omnibox/browser/physical_web_provider.h
@@ -0,0 +1,35 @@
+// Copyright (c) 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_PROVIDER_H_
+#define COMPONENTS_OMNIBOX_BROWSER_PHYSICAL_WEB_PROVIDER_H_
+
+#include "components/omnibox/browser/autocomplete_input.h"
+#include "components/omnibox/browser/autocomplete_provider.h"
+
+class AutocompleteProviderClient;
+
+namespace base {
+class ListValue;
+}
+
+class PhysicalWebProvider : public AutocompleteProvider {
+public:
+ static PhysicalWebProvider* Create(AutocompleteProviderClient* client);
+
+ // AutocompleteProvider:
+ void Start(const AutocompleteInput& input, bool minimal_changes) override;
+ void Stop(bool clear_cached_results, bool due_to_user_inactivity) override;
+
+private:
+ PhysicalWebProvider(AutocompleteProviderClient* client);
+ ~PhysicalWebProvider() override;
+
+ void ConstructMatches(base::ListValue* metadata_list);
+ void AppendOverflowItemIfNecessary(base::ListValue* metadata_list);
Mark P 2016/08/08 20:41:38 Comment above two functions.
mattreynolds 2016/08/09 21:42:03 Done.
+
+ AutocompleteProviderClient* client_;
+};
+
+#endif // COMPONENTS_OMNIBOX_BROWSER_PHYSICAL_WEB_PROVIDER_H_

Powered by Google App Engine
This is Rietveld 408576698