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

Side by Side Diff: components/metrics/proto/omnibox_event.proto

Issue 2203993002: Add a Physical Web omnibox autocomplete provider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: almost done 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 // Stores information about an omnibox interaction. 5 // Stores information about an omnibox interaction.
6 6
7 syntax = "proto2"; 7 syntax = "proto2";
8 8
9 option optimize_for = LITE_RUNTIME; 9 option optimize_for = LITE_RUNTIME;
10 option java_outer_classname = "OmniboxEventProtos"; 10 option java_outer_classname = "OmniboxEventProtos";
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 CONTACT = 9; // DEPRECATED. The user's contacts 159 CONTACT = 9; // DEPRECATED. The user's contacts
160 BOOKMARK = 10; // The user's bookmarks 160 BOOKMARK = 10; // The user's bookmarks
161 ZERO_SUGGEST = 11; // Suggestions based on the current page 161 ZERO_SUGGEST = 11; // Suggestions based on the current page
162 // This enum value is currently only used by Android GSA. It represents 162 // This enum value is currently only used by Android GSA. It represents
163 // a suggestion from the phone. 163 // a suggestion from the phone.
164 ON_DEVICE = 12; 164 ON_DEVICE = 12;
165 // This enum value is currently only used by Android GSA. It represents 165 // This enum value is currently only used by Android GSA. It represents
166 // a suggestion powered by a Chrome content provider. 166 // a suggestion powered by a Chrome content provider.
167 ON_DEVICE_CHROME = 13; 167 ON_DEVICE_CHROME = 13;
168 CLIPBOARD_URL = 14; // Suggestion coming from clipboard (iOS only). 168 CLIPBOARD_URL = 14; // Suggestion coming from clipboard (iOS only).
169 PHYSICAL_WEB = 15; // Suggestions triggered by URLs broadcast by nearby
170 // devices (iOS only).
169 } 171 }
170 172
171 // The result set displayed on the completion popup 173 // The result set displayed on the completion popup
172 // Next tag: 7 174 // Next tag: 7
173 message Suggestion { 175 message Suggestion {
174 // Where does this result come from? 176 // Where does this result come from?
175 optional ProviderType provider = 1; 177 optional ProviderType provider = 1;
176 178
177 // What kind of result this is. 179 // What kind of result this is.
178 // This corresponds to the AutocompleteMatch::Type enumeration in 180 // This corresponds to the AutocompleteMatch::Type enumeration in
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 // from the on-device suggestion provider 219 // from the on-device suggestion provider
218 // (go/icing). This field is 220 // (go/icing). This field is
219 // used by Android GSA for on-device 221 // used by Android GSA for on-device
220 // suggestion logging. 222 // suggestion logging.
221 NAVSUGGEST_PERSONALIZED = 21; // A personalized url. 223 NAVSUGGEST_PERSONALIZED = 21; // A personalized url.
222 SEARCH_SUGGEST_ANSWER = 22; // DEPRECATED. Answers no longer have their 224 SEARCH_SUGGEST_ANSWER = 22; // DEPRECATED. Answers no longer have their
223 // own type but instead can be attached to 225 // own type but instead can be attached to
224 // suggestions of any type. 226 // suggestions of any type.
225 CALCULATOR = 23; // A calculator answer. 227 CALCULATOR = 23; // A calculator answer.
226 CLIPBOARD = 24; // An URL based on the clipboard. 228 CLIPBOARD = 24; // An URL based on the clipboard.
229 PHYSICAL_WEB = 25; // A Physical Web nearby URL.
230 PHYSICAL_WEB_OVERFLOW = 26; // An item representing multiple Physical
231 // Web nearby URLs.
227 } 232 }
228 optional ResultType result_type = 2; 233 optional ResultType result_type = 2;
229 234
230 // The relevance score for this suggestion. 235 // The relevance score for this suggestion.
231 optional int32 relevance = 3; 236 optional int32 relevance = 3;
232 237
233 // How many times this result was typed in / selected from the omnibox. 238 // How many times this result was typed in / selected from the omnibox.
234 // Only set for some providers and result_types. At the time of 239 // Only set for some providers and result_types. At the time of
235 // writing this comment, it is only set for HistoryURL and 240 // writing this comment, it is only set for HistoryURL and
236 // HistoryQuickProvider matches. 241 // HistoryQuickProvider matches.
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 // The number of times this provider returned a non-zero number of 280 // The number of times this provider returned a non-zero number of
276 // suggestions during this omnibox session. 281 // suggestions during this omnibox session.
277 // Note that each provider may define a session differently for its 282 // Note that each provider may define a session differently for its
278 // purposes. 283 // purposes.
279 optional int32 times_returned_results_in_session = 5; 284 optional int32 times_returned_results_in_session = 5;
280 } 285 }
281 // A list of diagnostic information about each provider. Providers 286 // A list of diagnostic information about each provider. Providers
282 // will appear at most once in this list. 287 // will appear at most once in this list.
283 repeated ProviderInfo provider_info = 12; 288 repeated ProviderInfo provider_info = 12;
284 } 289 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698