OLD | NEW |
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 | 10 |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 } | 167 } |
168 | 168 |
169 // The result set displayed on the completion popup | 169 // The result set displayed on the completion popup |
170 // Next tag: 7 | 170 // Next tag: 7 |
171 message Suggestion { | 171 message Suggestion { |
172 // Where does this result come from? | 172 // Where does this result come from? |
173 optional ProviderType provider = 1; | 173 optional ProviderType provider = 1; |
174 | 174 |
175 // What kind of result this is. | 175 // What kind of result this is. |
176 // This corresponds to the AutocompleteMatch::Type enumeration in | 176 // This corresponds to the AutocompleteMatch::Type enumeration in |
177 // components/autocomplete/autocomplete_match.h (except for Android | 177 // components/omnibox/autocomplete_match.h (except for Android |
178 // GSA result types). | 178 // GSA result types). |
179 enum ResultType { | 179 enum ResultType { |
180 UNKNOWN_RESULT_TYPE = 0; // Unknown type (should not reach here) | 180 UNKNOWN_RESULT_TYPE = 0; // Unknown type (should not reach here) |
181 URL_WHAT_YOU_TYPED = 1; // The input as a URL | 181 URL_WHAT_YOU_TYPED = 1; // The input as a URL |
182 HISTORY_URL = 2; // A past page whose URL contains the input | 182 HISTORY_URL = 2; // A past page whose URL contains the input |
183 HISTORY_TITLE = 3; // A past page whose title contains the input | 183 HISTORY_TITLE = 3; // A past page whose title contains the input |
184 HISTORY_BODY = 4; // DEPRECATED. A past page whose body | 184 HISTORY_BODY = 4; // DEPRECATED. A past page whose body |
185 // contains the input | 185 // contains the input |
186 HISTORY_KEYWORD = 5; // A past page whose keyword contains the | 186 HISTORY_KEYWORD = 5; // A past page whose keyword contains the |
187 // input | 187 // input |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 // The number of times this provider returned a non-zero number of | 269 // The number of times this provider returned a non-zero number of |
270 // suggestions during this omnibox session. | 270 // suggestions during this omnibox session. |
271 // Note that each provider may define a session differently for its | 271 // Note that each provider may define a session differently for its |
272 // purposes. | 272 // purposes. |
273 optional int32 times_returned_results_in_session = 5; | 273 optional int32 times_returned_results_in_session = 5; |
274 } | 274 } |
275 // A list of diagnostic information about each provider. Providers | 275 // A list of diagnostic information about each provider. Providers |
276 // will appear at most once in this list. | 276 // will appear at most once in this list. |
277 repeated ProviderInfo provider_info = 12; | 277 repeated ProviderInfo provider_info = 12; |
278 } | 278 } |
OLD | NEW |