| 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 |
| 11 package metrics; | 11 package metrics; |
| 12 | 12 |
| 13 // Next tag: 13 | 13 // Next tag: 14 |
| 14 message OmniboxEventProto { | 14 message OmniboxEventProto { |
| 15 // The timestamp for the event, in seconds since the epoch. | 15 // The timestamp for the event, in seconds since the epoch. |
| 16 optional int64 time = 1; | 16 optional int64 time = 1; |
| 17 | 17 |
| 18 // The id of the originating tab for this omnibox interaction. | 18 // 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. | 19 // 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 | 20 // In those cases, this is unset. Tab ids are unique for a given session_id |
| 21 // (in the containing protocol buffer ChromeUserMetricsExtensionsProto). | 21 // (in the containing protocol buffer ChromeUserMetricsExtensionsProto). |
| 22 optional int32 tab_id = 2; | 22 optional int32 tab_id = 2; |
| 23 | 23 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 42 // (|selected_index| = 0) and will be omitted otherwise. | 42 // (|selected_index| = 0) and will be omitted otherwise. |
| 43 optional int32 completed_length = 6; | 43 optional int32 completed_length = 6; |
| 44 | 44 |
| 45 // The amount of time, in milliseconds, since the user first began modifying | 45 // The amount of time, in milliseconds, since the user first began modifying |
| 46 // the text in the omnibox. If at some point after modifying the text, the | 46 // the text in the omnibox. If at some point after modifying the text, the |
| 47 // user reverts the modifications (thus seeing the current web page's URL | 47 // user reverts the modifications (thus seeing the current web page's URL |
| 48 // again), then writes in the omnibox again, this elapsed time should start | 48 // again), then writes in the omnibox again, this elapsed time should start |
| 49 // from the time of the second series of modification. | 49 // from the time of the second series of modification. |
| 50 optional int64 typing_duration_ms = 7; | 50 optional int64 typing_duration_ms = 7; |
| 51 | 51 |
| 52 // The amount of time, in milliseconds, since the last time the default |
| 53 // (inline) match changed. This may be longer than the time since the |
| 54 // last keystroke. (The last keystroke may not have changed the default |
| 55 // match.) It may also be shorter than the time since the last keystroke |
| 56 // because the default match might have come from an asynchronous |
| 57 // provider. Regardless, it should always be less than or equal to |
| 58 // the field |typing_duration_ms|. |
| 59 optional int64 duration_since_last_default_match_update_ms = 13; |
| 60 |
| 52 // The type of page currently displayed when the user used the omnibox. | 61 // The type of page currently displayed when the user used the omnibox. |
| 53 enum PageClassification { | 62 enum PageClassification { |
| 54 INVALID_SPEC = 0; // invalid URI; shouldn't happen | 63 INVALID_SPEC = 0; // invalid URI; shouldn't happen |
| 55 NEW_TAB_PAGE = 1; // chrome://newtab/ | 64 NEW_TAB_PAGE = 1; // chrome://newtab/ |
| 56 // Note that chrome://newtab/ doesn't have to be the built-in | 65 // Note that chrome://newtab/ doesn't have to be the built-in |
| 57 // version; it could be replaced by an extension. | 66 // version; it could be replaced by an extension. |
| 58 BLANK = 2; // about:blank | 67 BLANK = 2; // about:blank |
| 59 HOMEPAGE = 3; // user switched settings to "open this page" mode. | 68 HOMEPAGE = 3; // user switched settings to "open this page" mode. |
| 60 // Note that if the homepage is set to the new tab page or about blank, | 69 // Note that if the homepage is set to the new tab page or about blank, |
| 61 // then we'll classify the web page into those categories, not HOMEPAGE. | 70 // then we'll classify the web page into those categories, not HOMEPAGE. |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 | 154 |
| 146 // The provider's done() value, i.e., whether it's completed processing | 155 // The provider's done() value, i.e., whether it's completed processing |
| 147 // the query. Providers which don't do any asynchronous processing | 156 // the query. Providers which don't do any asynchronous processing |
| 148 // will always be done. | 157 // will always be done. |
| 149 optional bool provider_done = 2; | 158 optional bool provider_done = 2; |
| 150 } | 159 } |
| 151 // A list of diagnostic information about each provider. Providers | 160 // A list of diagnostic information about each provider. Providers |
| 152 // will appear at most once in this list. | 161 // will appear at most once in this list. |
| 153 repeated ProviderInfo provider_info = 12; | 162 repeated ProviderInfo provider_info = 12; |
| 154 } | 163 } |
| OLD | NEW |