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