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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
62 enum PageClassification { | 62 enum PageClassification { |
63 INVALID_SPEC = 0; // invalid URI; shouldn't happen | 63 INVALID_SPEC = 0; // invalid URI; shouldn't happen |
64 NEW_TAB_PAGE = 1; // chrome://newtab/ | 64 NEW_TAB_PAGE = 1; // chrome://newtab/ |
65 // 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 |
66 // version; it could be replaced by an extension. | 66 // version; it could be replaced by an extension. |
67 BLANK = 2; // about:blank | 67 BLANK = 2; // about:blank |
68 HOMEPAGE = 3; // user switched settings to "open this page" mode. | 68 HOMEPAGE = 3; // user switched settings to "open this page" mode. |
69 // 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, |
70 // 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. |
71 OTHER = 4; // everything not included somewhere else on this list | 71 OTHER = 4; // everything not included somewhere else on this list |
72 INSTANT_NEW_TAB_PAGE = 5; // new tab page rendered by Instant | 72 OBSOLETE_INSTANT_NEW_TAB_PAGE = 5; // new tab page rendered by Instant |
73 // The user is on a search result page that's doing search term | 73 // The user is on a search result page that's doing search term |
74 // replacement, meaning the search terms should've appeared in the omnibox | 74 // replacement, meaning the search terms should've appeared in the omnibox |
75 // before the user started editing it, not the URL of the page. | 75 // before the user started editing it, not the URL of the page. |
76 SEARCH_RESULT_PAGE_DOING_SEARCH_TERM_REPLACEMENT = 6; | 76 SEARCH_RESULT_PAGE_DOING_SEARCH_TERM_REPLACEMENT = 6; |
77 // The new tab page in which this omnibox interaction first started | |
78 // with the user having focus in the omnibox. | |
79 INSTANT_NEW_TAB_PAGE_WITH_OMNIBOX_AS_STARTING_FOCUS = 7; | |
80 // The new tab page in which this omnibox interaction first started | |
81 // with the user having focus in the fakebox. | |
82 INSTANT_NEW_TAB_PAGE_WITH_FAKEBOX_AS_STARTING_FOCUS = 8; | |
Ilya Sherman
2013/08/02 21:47:32
Please get the changes to the protocol buffer appr
Mark P
2013/08/02 21:53:24
samarth: I'll do this for you.
Mark P
2013/08/03 00:19:03
This is done.
https://cr/50306267
As part of this
samarth
2013/08/06 16:29:25
Done.
| |
77 } | 83 } |
78 optional PageClassification current_page_classification = 10; | 84 optional PageClassification current_page_classification = 10; |
79 | 85 |
80 // What kind of input the user provided. | 86 // What kind of input the user provided. |
81 enum InputType { | 87 enum InputType { |
82 INVALID = 0; // Empty input (should not reach here) | 88 INVALID = 0; // Empty input (should not reach here) |
83 UNKNOWN = 1; // Valid input whose type cannot be determined | 89 UNKNOWN = 1; // Valid input whose type cannot be determined |
84 REQUESTED_URL = 2; // DEPRECATED. Input autodetected as UNKNOWN, which the | 90 REQUESTED_URL = 2; // DEPRECATED. Input autodetected as UNKNOWN, which the |
85 // user wants to treat as an URL by specifying a | 91 // user wants to treat as an URL by specifying a |
86 // desired_tld | 92 // desired_tld |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
178 // See AutocompleteController::ResetSession() for more details on the | 184 // See AutocompleteController::ResetSession() for more details on the |
179 // definition of a session. | 185 // definition of a session. |
180 // See chrome/browser/autocomplete/search_provider.cc for a specific usage | 186 // See chrome/browser/autocomplete/search_provider.cc for a specific usage |
181 // example. | 187 // example. |
182 repeated fixed32 field_trial_triggered_in_session = 4; | 188 repeated fixed32 field_trial_triggered_in_session = 4; |
183 } | 189 } |
184 // A list of diagnostic information about each provider. Providers | 190 // A list of diagnostic information about each provider. Providers |
185 // will appear at most once in this list. | 191 // will appear at most once in this list. |
186 repeated ProviderInfo provider_info = 12; | 192 repeated ProviderInfo provider_info = 12; |
187 } | 193 } |
OLD | NEW |