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

Side by Side Diff: components/omnibox/browser/autocomplete_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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_AUTOCOMPLETE_PROVIDER_H_ 5 #ifndef COMPONENTS_OMNIBOX_BROWSER_AUTOCOMPLETE_PROVIDER_H_
6 #define COMPONENTS_OMNIBOX_BROWSER_AUTOCOMPLETE_PROVIDER_H_ 6 #define COMPONENTS_OMNIBOX_BROWSER_AUTOCOMPLETE_PROVIDER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 enum Type { 122 enum Type {
123 TYPE_BOOKMARK = 1 << 0, 123 TYPE_BOOKMARK = 1 << 0,
124 TYPE_BUILTIN = 1 << 1, 124 TYPE_BUILTIN = 1 << 1,
125 TYPE_HISTORY_QUICK = 1 << 2, 125 TYPE_HISTORY_QUICK = 1 << 2,
126 TYPE_HISTORY_URL = 1 << 3, 126 TYPE_HISTORY_URL = 1 << 3,
127 TYPE_KEYWORD = 1 << 4, 127 TYPE_KEYWORD = 1 << 4,
128 TYPE_SEARCH = 1 << 5, 128 TYPE_SEARCH = 1 << 5,
129 TYPE_SHORTCUTS = 1 << 6, 129 TYPE_SHORTCUTS = 1 << 6,
130 TYPE_ZERO_SUGGEST = 1 << 7, 130 TYPE_ZERO_SUGGEST = 1 << 7,
131 TYPE_CLIPBOARD_URL = 1 << 8, 131 TYPE_CLIPBOARD_URL = 1 << 8,
132 TYPE_PHYSICAL_WEB = 1 << 9,
132 }; 133 };
133 134
134 explicit AutocompleteProvider(Type type); 135 explicit AutocompleteProvider(Type type);
135 136
136 // Returns a string describing a particular AutocompleteProvider type. 137 // Returns a string describing a particular AutocompleteProvider type.
137 static const char* TypeToString(Type type); 138 static const char* TypeToString(Type type);
138 139
139 // Called to start an autocomplete query. The provider is responsible for 140 // Called to start an autocomplete query. The provider is responsible for
140 // tracking its matches for this query and whether it is done processing the 141 // tracking its matches for this query and whether it is done processing the
141 // query. When new matches are available or the provider finishes, it 142 // query. When new matches are available or the provider finishes, it
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 ACMatches matches_; 247 ACMatches matches_;
247 bool done_; 248 bool done_;
248 249
249 Type type_; 250 Type type_;
250 251
251 private: 252 private:
252 DISALLOW_COPY_AND_ASSIGN(AutocompleteProvider); 253 DISALLOW_COPY_AND_ASSIGN(AutocompleteProvider);
253 }; 254 };
254 255
255 #endif // COMPONENTS_OMNIBOX_BROWSER_AUTOCOMPLETE_PROVIDER_H_ 256 #endif // COMPONENTS_OMNIBOX_BROWSER_AUTOCOMPLETE_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698