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

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

Issue 10913262: Implement Bookmark Autocomplete Provider (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 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
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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 HISTORY_URL = 1; // URLs in history, or user-typed URLs 79 HISTORY_URL = 1; // URLs in history, or user-typed URLs
80 HISTORY_CONTENTS = 2; // Matches for page contents of pages in history 80 HISTORY_CONTENTS = 2; // Matches for page contents of pages in history
81 HISTORY_QUICK = 3; // Matches for recently or frequently visited pages 81 HISTORY_QUICK = 3; // Matches for recently or frequently visited pages
82 // in history 82 // in history
83 SEARCH = 4; // Search suggestions for the default search engine 83 SEARCH = 4; // Search suggestions for the default search engine
84 KEYWORD = 5; // Keyword-triggered searches 84 KEYWORD = 5; // Keyword-triggered searches
85 BUILTIN = 6; // Built-in URLs, such as chrome://version 85 BUILTIN = 6; // Built-in URLs, such as chrome://version
86 SHORTCUTS = 7; // Recently selected omnibox suggestions 86 SHORTCUTS = 7; // Recently selected omnibox suggestions
87 EXTENSION_APPS = 8; // Custom suggestions from extensions and/or apps 87 EXTENSION_APPS = 8; // Custom suggestions from extensions and/or apps
88 CONTACT = 9; // The user's contacts 88 CONTACT = 9; // The user's contacts
89 BOOKMARK = 10; // The user's bookmarks
89 } 90 }
90 91
91 // The result set displayed on the completion popup 92 // The result set displayed on the completion popup
92 // Next tag: 6 93 // Next tag: 6
93 message Suggestion { 94 message Suggestion {
94 // Where does this result come from? 95 // Where does this result come from?
95 optional ProviderType provider = 1; 96 optional ProviderType provider = 1;
96 97
97 // What kind of result this is. 98 // What kind of result this is.
98 // This corresponds to the AutocompleteMatch::Type enumeration in 99 // This corresponds to the AutocompleteMatch::Type enumeration in
99 // chrome/browser/autocomplete/autocomplete_match.h 100 // chrome/browser/autocomplete/autocomplete_match.h
100 enum ResultType { 101 enum ResultType {
101 UNKNOWN_RESULT_TYPE = 0; // Unknown type (should not reach here) 102 UNKNOWN_RESULT_TYPE = 0; // Unknown type (should not reach here)
102 URL_WHAT_YOU_TYPED = 1; // The input as a URL 103 URL_WHAT_YOU_TYPED = 1; // The input as a URL
103 HISTORY_URL = 2; // A past page whose URL contains the input 104 HISTORY_URL = 2; // A past page whose URL contains the input
104 HISTORY_TITLE = 3; // A past page whose title contains the input 105 HISTORY_TITLE = 3; // A past page whose title contains the input
105 HISTORY_BODY = 4; // A past page whose body contains the input 106 HISTORY_BODY = 4; // A past page whose body contains the input
106 HISTORY_KEYWORD = 5; // A past page whose keyword contains the 107 HISTORY_KEYWORD = 5; // A past page whose keyword contains the
107 // input 108 // input
108 NAVSUGGEST = 6; // A suggested URL 109 NAVSUGGEST = 6; // A suggested URL
109 SEARCH_WHAT_YOU_TYPED = 7; // The input as a search query (with the 110 SEARCH_WHAT_YOU_TYPED = 7; // The input as a search query (with the
110 // default engine) 111 // default engine)
111 SEARCH_HISTORY = 8; // A past search (with the default engine) 112 SEARCH_HISTORY = 8; // A past search (with the default engine)
112 // containing the input 113 // containing the input
113 SEARCH_SUGGEST = 9; // A suggested search (with the default 114 SEARCH_SUGGEST = 9; // A suggested search (with the default
114 // engine) 115 // engine)
115 SEARCH_OTHER_ENGINE = 10; // A search with a non-default engine 116 SEARCH_OTHER_ENGINE = 10; // A search with a non-default engine
116 EXTENSION_APP = 11; // An Extension App with a title/url that 117 EXTENSION_APP = 11; // An Extension App with a title/url that
117 // contains the input 118 // contains the input
118 CONTACT = 12; // One of the user's contacts 119 CONTACT = 12; // One of the user's contacts
Mark P 2012/09/28 00:55:13 You need to add BOOKMARK_TITLE here too I think.
mrossetti 2012/10/02 00:44:16 Ah! Excellent!
119 }; 120 };
120 optional ResultType result_type = 2; 121 optional ResultType result_type = 2;
121 122
122 // The relevance score for this suggestion. 123 // The relevance score for this suggestion.
123 optional int32 relevance = 3; 124 optional int32 relevance = 3;
124 125
125 // How many times this result was typed in / selected from the omnibox. 126 // How many times this result was typed in / selected from the omnibox.
126 // Only set for some providers and result_types. At the time of 127 // Only set for some providers and result_types. At the time of
127 // writing this comment, it is only set for HistoryURL and 128 // writing this comment, it is only set for HistoryURL and
128 // HistoryQuickProvider matches. 129 // HistoryQuickProvider matches.
(...skipping 12 matching lines...) Expand all
141 142
142 // The provider's done() value, i.e., whether it's completed processing 143 // The provider's done() value, i.e., whether it's completed processing
143 // the query. Providers which don't do any asynchronous processing 144 // the query. Providers which don't do any asynchronous processing
144 // will always be done. 145 // will always be done.
145 optional bool provider_done = 2; 146 optional bool provider_done = 2;
146 } 147 }
147 // A list of diagnostic information about each provider. Providers 148 // A list of diagnostic information about each provider. Providers
148 // will appear at most once in this list. 149 // will appear at most once in this list.
149 repeated ProviderInfo provider_info = 12; 150 repeated ProviderInfo provider_info = 12;
150 } 151 }
OLDNEW
« chrome/browser/autocomplete/history_provider.cc ('K') | « chrome/common/chrome_switches.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698