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 |
11 package metrics; | 11 package metrics; |
12 | 12 |
| 13 import "omnibox_input_type.proto"; |
| 14 |
13 // Next tag: 17 | 15 // Next tag: 17 |
14 message OmniboxEventProto { | 16 message OmniboxEventProto { |
15 // The timestamp for the event, in seconds since the epoch. | 17 // The timestamp for the event, in seconds since the epoch. |
16 optional int64 time = 1; | 18 optional int64 time = 1; |
17 | 19 |
18 // The id of the originating tab for this omnibox interaction. | 20 // The id of the originating tab for this omnibox interaction. |
19 // This is the current tab *unless* the user opened the target in a new tab. | 21 // This is the current tab *unless* the user opened the target in a new tab. |
20 // In those cases, this is unset. Tab ids are unique for a given session_id | 22 // In those cases, this is unset. Tab ids are unique for a given session_id |
21 // (in the containing protocol buffer ChromeUserMetricsExtensionProto). | 23 // (in the containing protocol buffer ChromeUserMetricsExtensionProto). |
22 optional int32 tab_id = 2; | 24 optional int32 tab_id = 2; |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 // replacement, meaning the URL of the page should've appeared in the | 125 // replacement, meaning the URL of the page should've appeared in the |
124 // omnibox before the user started editing it, not the search terms. | 126 // omnibox before the user started editing it, not the search terms. |
125 SEARCH_RESULT_PAGE_NO_SEARCH_TERM_REPLACEMENT = 9; | 127 SEARCH_RESULT_PAGE_NO_SEARCH_TERM_REPLACEMENT = 9; |
126 | 128 |
127 // When adding new classifications, please consider adding them in | 129 // When adding new classifications, please consider adding them in |
128 // chrome/browser/resources/omnibox/omnibox.html | 130 // chrome/browser/resources/omnibox/omnibox.html |
129 // so that these new options are displayed on about:omnibox. | 131 // so that these new options are displayed on about:omnibox. |
130 } | 132 } |
131 optional PageClassification current_page_classification = 10; | 133 optional PageClassification current_page_classification = 10; |
132 | 134 |
133 // What kind of input the user provided. | 135 optional OmniboxInputType.Type input_type = 8; |
134 enum InputType { | |
135 INVALID = 0; // Empty input (should not reach here) | |
136 UNKNOWN = 1; // Valid input whose type cannot be determined | |
137 REQUESTED_URL = 2; // DEPRECATED. Input autodetected as UNKNOWN, which the | |
138 // user wants to treat as an URL by specifying a | |
139 // desired_tld | |
140 URL = 3; // Input autodetected as a URL | |
141 QUERY = 4; // Input autodetected as a query | |
142 FORCED_QUERY = 5; // Input forced to be a query by an initial '?' | |
143 } | |
144 optional InputType input_type = 8; | |
145 | 136 |
146 // An enum used in multiple places below. | 137 // An enum used in multiple places below. |
147 enum ProviderType { | 138 enum ProviderType { |
148 UNKNOWN_PROVIDER = 0; // Unknown provider (should not reach here) | 139 UNKNOWN_PROVIDER = 0; // Unknown provider (should not reach here) |
149 HISTORY_URL = 1; // URLs in history, or user-typed URLs | 140 HISTORY_URL = 1; // URLs in history, or user-typed URLs |
150 HISTORY_CONTENTS = 2; // Matches for page contents of pages in history | 141 HISTORY_CONTENTS = 2; // Matches for page contents of pages in history |
151 HISTORY_QUICK = 3; // Matches for recently or frequently visited pages | 142 HISTORY_QUICK = 3; // Matches for recently or frequently visited pages |
152 // in history | 143 // in history |
153 SEARCH = 4; // Search suggestions for the default search engine | 144 SEARCH = 4; // Search suggestions for the default search engine |
154 KEYWORD = 5; // Keyword-triggered searches | 145 KEYWORD = 5; // Keyword-triggered searches |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 // The number of times this provider returned a non-zero number of | 252 // The number of times this provider returned a non-zero number of |
262 // suggestions during this omnibox session. | 253 // suggestions during this omnibox session. |
263 // Note that each provider may define a session differently for its | 254 // Note that each provider may define a session differently for its |
264 // purposes. | 255 // purposes. |
265 optional int32 times_returned_results_in_session = 5; | 256 optional int32 times_returned_results_in_session = 5; |
266 } | 257 } |
267 // A list of diagnostic information about each provider. Providers | 258 // A list of diagnostic information about each provider. Providers |
268 // will appear at most once in this list. | 259 // will appear at most once in this list. |
269 repeated ProviderInfo provider_info = 12; | 260 repeated ProviderInfo provider_info = 12; |
270 } | 261 } |
OLD | NEW |