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

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

Issue 3047: Merge r1978 to Beta to stop sending queries with username info,... (Closed) Base URL: svn://chrome-svn/chrome/branches/chrome_official_branch/src/
Patch Set: Created 12 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 2008, Google Inc. 1 // Copyright 2008, Google Inc.
2 // All rights reserved. 2 // All rights reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // * Redistributions of source code must retain the above copyright 8 // * Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer. 9 // notice, this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above 10 // * Redistributions in binary form must reproduce the above
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 typedef std::vector<NavigationResult> NavigationResults; 122 typedef std::vector<NavigationResult> NavigationResults;
123 typedef std::vector<history::KeywordSearchTermVisit> HistoryResults; 123 typedef std::vector<history::KeywordSearchTermVisit> HistoryResults;
124 typedef std::map<std::wstring, AutocompleteMatch> MatchMap; 124 typedef std::map<std::wstring, AutocompleteMatch> MatchMap;
125 125
126 // Determines whether an asynchronous subcomponent query should run for the 126 // Determines whether an asynchronous subcomponent query should run for the
127 // current input. If so, starts it if necessary; otherwise stops it. 127 // current input. If so, starts it if necessary; otherwise stops it.
128 // NOTE: These functions do not update |done_|. Callers must do so. 128 // NOTE: These functions do not update |done_|. Callers must do so.
129 void StartOrStopHistoryQuery(bool minimal_changes, bool synchronous_only); 129 void StartOrStopHistoryQuery(bool minimal_changes, bool synchronous_only);
130 void StartOrStopSuggestQuery(bool minimal_changes, bool synchronous_only); 130 void StartOrStopSuggestQuery(bool minimal_changes, bool synchronous_only);
131 131
132 // Returns true when the current query can be sent to the Suggest service.
133 // This will be false e.g. when Suggest is disabled, the query contains
134 // potentially private data, etc.
135 bool IsQuerySuitableForSuggest() const;
136
132 // Functions to stop the separate asynchronous subcomponents. 137 // Functions to stop the separate asynchronous subcomponents.
133 // NOTE: These functions do not update |done_|. Callers must do so. 138 // NOTE: These functions do not update |done_|. Callers must do so.
134 void StopHistory(); 139 void StopHistory();
135 void StopSuggest(); 140 void StopSuggest();
136 141
137 // Called back by the history system to return searches that begin with the 142 // Called back by the history system to return searches that begin with the
138 // input text. 143 // input text.
139 void OnGotMostRecentKeywordSearchTerms( 144 void OnGotMostRecentKeywordSearchTerms(
140 CancelableRequestProvider::Handle handle, 145 CancelableRequestProvider::Handle handle,
141 HistoryResults* results); 146 HistoryResults* results);
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 // Navigational suggestions returned by the server. 240 // Navigational suggestions returned by the server.
236 NavigationResults navigation_results_; 241 NavigationResults navigation_results_;
237 242
238 // Whether suggest_results_ is valid. 243 // Whether suggest_results_ is valid.
239 bool have_suggest_results_; 244 bool have_suggest_results_;
240 245
241 DISALLOW_EVIL_CONSTRUCTORS(SearchProvider); 246 DISALLOW_EVIL_CONSTRUCTORS(SearchProvider);
242 }; 247 };
243 248
244 #endif // CHROME_BROWSER_AUTOCOMPLETE_SEARCH_PROVIDER_H__ 249 #endif // CHROME_BROWSER_AUTOCOMPLETE_SEARCH_PROVIDER_H__
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/autocomplete.cc ('k') | chrome/browser/autocomplete/search_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698