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

Unified Diff: chrome/browser/autocomplete/autocomplete_controller.h

Issue 14366009: Omnibox: Call Stop() on all Providers After Certain Amount of Time (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reupload just in case Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/autocomplete/autocomplete_controller.h
diff --git a/chrome/browser/autocomplete/autocomplete_controller.h b/chrome/browser/autocomplete/autocomplete_controller.h
index 32fabd1816d56e4efda995dfd380bf63f170a9af..8be96497a2b86cc1367cb4296e633f0f8efd952f 100644
--- a/chrome/browser/autocomplete/autocomplete_controller.h
+++ b/chrome/browser/autocomplete/autocomplete_controller.h
@@ -179,9 +179,12 @@ class AutocompleteController : public AutocompleteProviderListener {
// Updates |done_| to be accurate with respect to current providers' statuses.
void CheckIfDone();
- // Starts the expire timer.
+ // Starts |expire_timer_|.
void StartExpireTimer();
+ // Starts |stop_timer_|.
+ void StartStopTimer();
+
AutocompleteControllerDelegate* delegate_;
// A list of all providers.
@@ -217,6 +220,13 @@ class AutocompleteController : public AutocompleteProviderListener {
// invokes |ExpireCopiedEntries|.
base::OneShotTimer<AutocompleteController> expire_timer_;
+ // Timer used to tell the providers to Stop() searching for matches.
+ base::OneShotTimer<AutocompleteController> stop_timer_;
+
+ // True if the user is in the "stop timer" field trial. If so, the
+ // controller uses the |stop_timer_|.
+ bool in_stop_timer_field_trial_;
Bart N. 2013/04/19 19:57:50 Make it const.
Mark P 2013/04/19 20:20:40 Done.
+
// True if a query is not currently running.
bool done_;

Powered by Google App Engine
This is Rietveld 408576698