| // Copyright 2014 The Chromium Authors. All rights reserved. | |
| // Use of this source code is governed by a BSD-style license that can be | |
| // found in the LICENSE file. | |
| syntax = "proto2"; | |
| option optimize_for = LITE_RUNTIME; | |
| option java_outer_classname = "OmniboxInputTypeProtos"; | |
| option java_package = "org.chromium.components.metrics"; | |
| package metrics; | |
| // Stores information about an omnibox interaction. | |
| // What kind of input the user provided. | |
| // Note that the type below may be misleading. For example, "http:/" alone | |
| // cannot be opened as a URL, so it is marked as a QUERY; yet the user | |
| // probably intends to type more and have it eventually become a URL, so we | |
| // need to make sure we still run it through inline autocomplete. | |
| enum OmniboxInputType { | |
| // Empty input (should not reach here) | |
| INVALID = 0; | |
| // Valid input whose type cannot be determined | |
| UNKNOWN = 1; | |
| // DEPRECATED. Input autodetected as UNKNOWN, which the user wants to treat | |
| // as an URL by specifying a desired_tld. | |
| DEPRECATED_REQUESTED_URL = 2; | |
| // Input autodetected as a URL | |
| URL = 3; | |
| // Input autodetected as a query | |
| QUERY = 4; | |
| // DEPRECATED. Input forced to be a query by an initial '?' | |
| DEPRECATED_FORCED_QUERY = 5; | |
| } |