| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 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 |
| 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. |
| 76 SEARCH_RESULT_PAGE_DOING_SEARCH_TERM_REPLACEMENT = 6; |
| 73 } | 77 } |
| 74 optional PageClassification current_page_classification = 10; | 78 optional PageClassification current_page_classification = 10; |
| 75 | 79 |
| 76 // What kind of input the user provided. | 80 // What kind of input the user provided. |
| 77 enum InputType { | 81 enum InputType { |
| 78 INVALID = 0; // Empty input (should not reach here) | 82 INVALID = 0; // Empty input (should not reach here) |
| 79 UNKNOWN = 1; // Valid input whose type cannot be determined | 83 UNKNOWN = 1; // Valid input whose type cannot be determined |
| 80 REQUESTED_URL = 2; // DEPRECATED. Input autodetected as UNKNOWN, which the | 84 REQUESTED_URL = 2; // DEPRECATED. Input autodetected as UNKNOWN, which the |
| 81 // user wants to treat as an URL by specifying a | 85 // user wants to treat as an URL by specifying a |
| 82 // desired_tld | 86 // desired_tld |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 // See AutocompleteController::ResetSession() for more details on the | 178 // See AutocompleteController::ResetSession() for more details on the |
| 175 // definition of a session. | 179 // definition of a session. |
| 176 // See chrome/browser/autocomplete/search_provider.cc for a specific usage | 180 // See chrome/browser/autocomplete/search_provider.cc for a specific usage |
| 177 // example. | 181 // example. |
| 178 repeated fixed32 field_trial_triggered_in_session = 4; | 182 repeated fixed32 field_trial_triggered_in_session = 4; |
| 179 } | 183 } |
| 180 // A list of diagnostic information about each provider. Providers | 184 // A list of diagnostic information about each provider. Providers |
| 181 // will appear at most once in this list. | 185 // will appear at most once in this list. |
| 182 repeated ProviderInfo provider_info = 12; | 186 repeated ProviderInfo provider_info = 12; |
| 183 } | 187 } |
| OLD | NEW |