OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
112 // engine) | 112 // engine) |
113 SEARCH_OTHER_ENGINE = 10; // A search with a non-default engine | 113 SEARCH_OTHER_ENGINE = 10; // A search with a non-default engine |
114 EXTENSION_APP = 11; // An Extension App with a title/url that | 114 EXTENSION_APP = 11; // An Extension App with a title/url that |
115 // contains the input | 115 // contains the input |
116 }; | 116 }; |
117 optional ResultType result_type = 2; | 117 optional ResultType result_type = 2; |
118 | 118 |
119 // The relevance score for this suggestion. | 119 // The relevance score for this suggestion. |
120 optional int32 relevance = 3; | 120 optional int32 relevance = 3; |
121 | 121 |
122 // How many times this result was typed in / selected from the omnibox. | |
123 // Only set for some providers and result_types. At the time of | |
124 // writing this comment, it is only set for HistoryURL and | |
125 // HistoryQuickProvider matches. | |
126 optional int32 typed_count = 5; | |
Ilya Sherman
2012/06/12 21:25:10
nit: Since you're adding this out of sequential or
Mark P
2012/06/12 21:53:49
Done.
| |
127 | |
122 // Whether this item is starred (bookmarked) or not. | 128 // Whether this item is starred (bookmarked) or not. |
123 optional bool is_starred = 4; | 129 optional bool is_starred = 4; |
124 } | 130 } |
125 repeated Suggestion suggestion = 9; | 131 repeated Suggestion suggestion = 9; |
126 | 132 |
127 // A data structure that holds per-provider information, general information | 133 // A data structure that holds per-provider information, general information |
128 // not associated with a particular result. | 134 // not associated with a particular result. |
129 message ProviderInfo { | 135 message ProviderInfo { |
130 // Which provider generated this ProviderInfo entry. | 136 // Which provider generated this ProviderInfo entry. |
131 optional ProviderType provider = 1; | 137 optional ProviderType provider = 1; |
132 | 138 |
133 // The provider's done() value, i.e., whether it's completed processing | 139 // The provider's done() value, i.e., whether it's completed processing |
134 // the query. Providers which don't do any asynchronous processing | 140 // the query. Providers which don't do any asynchronous processing |
135 // will always be done. | 141 // will always be done. |
136 optional bool provider_done = 2; | 142 optional bool provider_done = 2; |
137 } | 143 } |
138 // A list of diagnostic information about each provider. Providers | 144 // A list of diagnostic information about each provider. Providers |
139 // will appear at most once in this list. | 145 // will appear at most once in this list. |
140 repeated ProviderInfo provider_info = 12; | 146 repeated ProviderInfo provider_info = 12; |
141 } | 147 } |
OLD | NEW |