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

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

Issue 2755503002: Add a new entry to omnibox_event.proto to log specific type of contextual suggestions (Closed)
Patch Set: Fix consistency between comments and field names. Created 3 years, 8 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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 ON_DEVICE = 12; 170 ON_DEVICE = 12;
171 // This enum value is currently only used by Android GSA. It represents 171 // This enum value is currently only used by Android GSA. It represents
172 // a suggestion powered by a Chrome content provider. 172 // a suggestion powered by a Chrome content provider.
173 ON_DEVICE_CHROME = 13; 173 ON_DEVICE_CHROME = 13;
174 CLIPBOARD_URL = 14; // Suggestion coming from clipboard (iOS only). 174 CLIPBOARD_URL = 14; // Suggestion coming from clipboard (iOS only).
175 PHYSICAL_WEB = 15; // Suggestions triggered by URLs broadcast by nearby 175 PHYSICAL_WEB = 15; // Suggestions triggered by URLs broadcast by nearby
176 // devices (iOS and Android). 176 // devices (iOS and Android).
177 } 177 }
178 178
179 // The result set displayed on the completion popup 179 // The result set displayed on the completion popup
180 // Next tag: 7 180 // Next tag: 8
181 message Suggestion { 181 message Suggestion {
182 // Where does this result come from? 182 // Where does this result come from?
183 optional ProviderType provider = 1; 183 optional ProviderType provider = 1;
184 184
185 // What kind of result this is. 185 // What kind of result this is.
186 // This corresponds to the AutocompleteMatch::Type enumeration in 186 // This corresponds to the AutocompleteMatch::Type enumeration in
187 // components/omnibox/autocomplete_match.h (except for Android 187 // components/omnibox/autocomplete_match.h (except for Android
188 // GSA result types). 188 // GSA result types).
189 enum ResultType { 189 enum ResultType {
190 UNKNOWN_RESULT_TYPE = 0; // Unknown type (should not reach here) 190 UNKNOWN_RESULT_TYPE = 0; // Unknown type (should not reach here)
191 URL_WHAT_YOU_TYPED = 1; // The input as a URL 191 URL_WHAT_YOU_TYPED = 1; // The input as a URL
192 HISTORY_URL = 2; // A past page whose URL contains the input 192 HISTORY_URL = 2; // A past page whose URL contains the input
193 HISTORY_TITLE = 3; // A past page whose title contains the input 193 HISTORY_TITLE = 3; // A past page whose title contains the input
194 HISTORY_BODY = 4; // DEPRECATED. A past page whose body 194 HISTORY_BODY = 4; // DEPRECATED. A past page whose body
195 // contains the input 195 // contains the input
196 HISTORY_KEYWORD = 5; // A past page whose keyword contains the 196 HISTORY_KEYWORD = 5; // A past page whose keyword contains the
197 // input 197 // input
198 NAVSUGGEST = 6; // A suggested URL 198 NAVSUGGEST = 6; // A suggested URL
199 //
200 // result_subtype_identifier is currently used
201 // for contextual zero suggestions provided by
202 // the experimental servicei (note that not al l
Mark P 2017/03/31 20:50:25 two separate typos in this line
gcomanici 2017/04/01 16:01:52 Fixed.
203 // NAVSUUGGEST suggestions are contextual
204 // zero-suggest suggestions).
Mark P 2017/03/31 20:50:25 replace: are contextual zero-suggest suggestions -
gcomanici 2017/04/01 16:01:52 Done.
205 // For subtype definitions, please contact
206 // gcomanici@chromium.org.
199 SEARCH_WHAT_YOU_TYPED = 7; // The input as a search query (with the 207 SEARCH_WHAT_YOU_TYPED = 7; // The input as a search query (with the
200 // default engine) 208 // default engine)
201 SEARCH_HISTORY = 8; // A past search (with the default engine) 209 SEARCH_HISTORY = 8; // A past search (with the default engine)
202 // containing the input 210 // containing the input
203 SEARCH_SUGGEST = 9; // A suggested search (with the default 211 SEARCH_SUGGEST = 9; // A suggested search (with the default
204 // engine) for a query. 212 // engine) for a query.
205 SEARCH_OTHER_ENGINE = 10; // A search with a non-default engine 213 SEARCH_OTHER_ENGINE = 10; // A search with a non-default engine
206 EXTENSION_APP = 11; // DEPRECATED. An Extension App with a 214 EXTENSION_APP = 11; // DEPRECATED. An Extension App with a
207 // title/url that contains the input. 215 // title/url that contains the input.
208 CONTACT = 12; // One of the user's contacts 216 CONTACT = 12; // One of the user's contacts
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 // Only set for some providers and result_types. At the time of 254 // Only set for some providers and result_types. At the time of
247 // writing this comment, it is only set for HistoryURL and 255 // writing this comment, it is only set for HistoryURL and
248 // HistoryQuickProvider matches. 256 // HistoryQuickProvider matches.
249 optional int32 typed_count = 5; 257 optional int32 typed_count = 5;
250 258
251 // Whether this item is starred (bookmarked) or not. 259 // Whether this item is starred (bookmarked) or not.
252 optional bool is_starred = 4 [deprecated=true]; 260 optional bool is_starred = 4 [deprecated=true];
253 261
254 // Whether this item is disabled in the UI (not clickable). 262 // Whether this item is disabled in the UI (not clickable).
255 optional bool is_disabled = 6; 263 optional bool is_disabled = 6;
264
265 // Used to identify the specific source / type for suggestions by the
266 // suggest server. The meaning of individual values is determined by the
267 // provider of each suggestion type and is different for every suggestion
268 // type. See enum ResultType above for more details.
269 optional int32 result_subtype_identifier = 7;
256 } 270 }
257 repeated Suggestion suggestion = 9; 271 repeated Suggestion suggestion = 9;
258 272
259 // A data structure that holds per-provider information, general information 273 // A data structure that holds per-provider information, general information
260 // not associated with a particular result. 274 // not associated with a particular result.
261 // Next tag: 6 275 // Next tag: 6
262 message ProviderInfo { 276 message ProviderInfo {
263 // Which provider generated this ProviderInfo entry. 277 // Which provider generated this ProviderInfo entry.
264 optional ProviderType provider = 1; 278 optional ProviderType provider = 1;
265 279
(...skipping 21 matching lines...) Expand all
287 // The number of times this provider returned a non-zero number of 301 // The number of times this provider returned a non-zero number of
288 // suggestions during this omnibox session. 302 // suggestions during this omnibox session.
289 // Note that each provider may define a session differently for its 303 // Note that each provider may define a session differently for its
290 // purposes. 304 // purposes.
291 optional int32 times_returned_results_in_session = 5; 305 optional int32 times_returned_results_in_session = 5;
292 } 306 }
293 // A list of diagnostic information about each provider. Providers 307 // A list of diagnostic information about each provider. Providers
294 // will appear at most once in this list. 308 // will appear at most once in this list.
295 repeated ProviderInfo provider_info = 12; 309 repeated ProviderInfo provider_info = 12;
296 } 310 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698