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

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: remove sentence 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
« no previous file with comments | « no previous file | chrome/browser/autocomplete/autocomplete_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..5094c1604f27e03c34728b7200c687d793ea453c 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_|.
+ const bool in_stop_timer_field_trial_;
+
// True if a query is not currently running.
bool done_;
« no previous file with comments | « no previous file | chrome/browser/autocomplete/autocomplete_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698