Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(591)

Side by Side Diff: chrome/common/metrics/proto/omnibox_event.proto

Issue 9232070: Add UMA protocol buffers to Chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4 //
5 // Stores information about an omnibox interaction.
6
7 syntax = "proto2";
8
9 option optimize_for = LITE_RUNTIME;
10
11 package metrics;
12
13 // Next tag: 10
14 message OmniboxEventProto {
15 // The timestamp for the event, in seconds since the epoch.
16 optional int64 time = 1;
17
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.
20 // In those cases, this is unset. Tab ids are unique for a given session_id
21 // (in the containing protocol buffer ChromeUserMetricsExtensionsProto).
22 optional int32 tab_id = 2;
23
24 // The number of characters the user had typed before autocompleting.
25 optional int32 typed_length = 3;
26
27 // The number of terms that the user typed in the omnibox.
28 optional int32 num_typed_terms = 4;
29
30 // The index of the item that the user selected in the omnibox popup list.
31 // This corresponds the index of the |suggestion| below.
32 optional int32 selected_index = 5;
33
34 // The length of the inline autocomplete text in the omnibox.
35 // The sum |typed_length| + |completed_length| gives the full length of the
36 // user-visible text in the omnibox.
37 optional int32 completed_length = 6;
38
39 // The amount of time, in milliseconds, since the user first began modifying
40 // the text in the omnibox. If at some point after modifying the text, the
41 // user reverts the modifications (thus seeing the current web page's URL
42 // again), then writes in the omnibox again, this elapsed time should start
43 // from the time of the second series of modification.
44 optional int64 typing_duration_ms = 7;
45
46 // What kind of input the user provided.
47 enum InputType {
48 INVALID = 0; // Empty input (should not reach here)
49 UNKNOWN = 1; // Valid input whose type cannot be determined
50 REQUESTED_URL = 2; // Input autodetected as UNKNOWN, which the user wants
51 // to treat as an URL by specifying a desired_tld
52 URL = 3; // Input autodetected as a URL
53 QUERY = 4; // Input autodetected as a query
54 FORCED_QUERY = 5; // Input forced to be a query by an initial '?'
55 }
56 optional InputType input_type = 8;
57
58 // The result set displayed on the completion popup
59 message Suggestion {
60 // Where does this result come from?
61 enum ProviderType {
62 UNKNOWN_PROVIDER = 0; // Unknown provider (should not reach here)
63 URL = 1; // URLs in history, or user-typed URLs
64 HISTORY_CONTENTS = 2; // Matches for page contents of pages in history
65 HISTORY_QUICK = 3; // Matches for recently or frequently visited pages
66 // in history
67 SEARCH = 4; // Search suggestions for the default search engine
68 KEYWORD = 5; // Keyword-triggered searches
69 BUILTIN = 6; // Built-in URLs, such as chrome://version
70 SHORTCUTS = 7; // Recently selected omnibox suggestions
71 EXTENSION_APPS = 8; // Custom suggestions from extensions and/or apps
72 }
73 optional ProviderType provider = 1;
74
75 // What kind of result this is.
76 // This corresponds to the AutocompleteMatch::Type enumeration in
77 // chrome/browser/autocomplete/autocomplete_match.h
78 enum ResultType {
79 UNKNOWN_RESULT_TYPE = 0; // Unknown type (should not reach here)
80 URL_WHAT_YOU_TYPED = 1; // The input as a URL
81 HISTORY_URL = 2; // A past page whose URL contains the input
82 HISTORY_TITLE = 3; // A past page whose title contains the input
83 HISTORY_BODY = 4; // A past page whose body contains the input
84 HISTORY_KEYWORD = 5; // A past page whose keyword contains the
85 // input
86 NAVSUGGEST = 6; // A suggested URL
87 SEARCH_WHAT_YOU_TYPED = 7; // The input as a search query (with the
88 // default engine)
89 SEARCH_HISTORY = 8; // A past search (with the default engine)
90 // containing the input
91 SEARCH_SUGGEST = 9; // A suggested search (with the default
92 // engine)
93 SEARCH_OTHER_ENGINE = 10; // A search with a non-default engine
94 EXTENSION_APP = 11; // An Extension App with a title/url that
95 // contains the input
96 };
97 optional ResultType result_type = 2;
98
99 // The relevance score for this suggestion.
100 optional int32 relevance = 3;
101
102 // Whether this item is starred (bookmarked) or not.
103 optional bool is_starred = 4;
104 }
105 repeated Suggestion suggestion = 9;
106 }
OLDNEW
« no previous file with comments | « chrome/common/metrics/proto/histogram_event.proto ('k') | chrome/common/metrics/proto/system_profile.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698