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

Side by Side Diff: chrome/browser/autocomplete/autocomplete.h

Issue 9289028: Make chrome://omnibox/ be able to report per-provider matches. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 11 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 #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_H_ 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_H_
6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_H_ 6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 // on how many times the URL for the Extension App has been typed and how 169 // on how many times the URL for the Extension App has been typed and how
170 // many of the letters match. 170 // many of the letters match.
171 171
172 class AutocompleteController; 172 class AutocompleteController;
173 class AutocompleteControllerDelegate; 173 class AutocompleteControllerDelegate;
174 class AutocompleteInput; 174 class AutocompleteInput;
175 struct AutocompleteMatch; 175 struct AutocompleteMatch;
176 class AutocompleteProvider; 176 class AutocompleteProvider;
177 class AutocompleteResult; 177 class AutocompleteResult;
178 class KeywordProvider; 178 class KeywordProvider;
179 class OmniboxUIHandler;
179 class Profile; 180 class Profile;
180 class SearchProvider; 181 class SearchProvider;
181 class TemplateURL; 182 class TemplateURL;
182 183
183 typedef std::vector<AutocompleteMatch> ACMatches; 184 typedef std::vector<AutocompleteMatch> ACMatches;
184 typedef std::vector<AutocompleteProvider*> ACProviders; 185 typedef std::vector<AutocompleteProvider*> ACProviders;
185 186
186 // AutocompleteInput ---------------------------------------------------------- 187 // AutocompleteInput ----------------------------------------------------------
187 188
188 // The user input for an autocomplete query. Allows copying. 189 // The user input for an autocomplete query. Allows copying.
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after
728 729
729 // True if a query is not currently running. 730 // True if a query is not currently running.
730 bool done_; 731 bool done_;
731 732
732 // Are we in Start()? This is used to avoid updating |result_| and sending 733 // Are we in Start()? This is used to avoid updating |result_| and sending
733 // notifications until Start() has been invoked on all providers. 734 // notifications until Start() has been invoked on all providers.
734 bool in_start_; 735 bool in_start_;
735 736
736 Profile* profile_; 737 Profile* profile_;
737 738
739 friend class OmniboxUIHandler; // to provide access to providers_
Peter Kasting 2012/01/26 00:19:29 Nit: List friends atop the private: section. It m
Mark P 2012/01/26 22:11:59 Okay, created a providers() getter; removed the fr
740
738 DISALLOW_COPY_AND_ASSIGN(AutocompleteController); 741 DISALLOW_COPY_AND_ASSIGN(AutocompleteController);
739 }; 742 };
740 743
741 // AutocompleteLog ------------------------------------------------------------ 744 // AutocompleteLog ------------------------------------------------------------
742 745
743 // The data to log (via the metrics service) when the user selects an item 746 // The data to log (via the metrics service) when the user selects an item
744 // from the omnibox popup. 747 // from the omnibox popup.
745 struct AutocompleteLog { 748 struct AutocompleteLog {
746 AutocompleteLog(const string16& text, 749 AutocompleteLog(const string16& text,
747 AutocompleteInput::Type input_type, 750 AutocompleteInput::Type input_type,
(...skipping 17 matching lines...) Expand all
765 // ID of the tab the selected autocomplete suggestion was opened in. 768 // ID of the tab the selected autocomplete suggestion was opened in.
766 // Set to -1 if we haven't yet determined the destination tab. 769 // Set to -1 if we haven't yet determined the destination tab.
767 SessionID::id_type tab_id; 770 SessionID::id_type tab_id;
768 // Inline autocompleted length (if displayed). 771 // Inline autocompleted length (if displayed).
769 size_t inline_autocompleted_length; 772 size_t inline_autocompleted_length;
770 // Result set. 773 // Result set.
771 const AutocompleteResult& result; 774 const AutocompleteResult& result;
772 }; 775 };
773 776
774 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_H_ 777 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/omnibox/omnibox.html » ('j') | chrome/browser/resources/omnibox/omnibox.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698