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

Unified Diff: components/omnibox/search_provider.h

Issue 645303003: Parametrize Suggest polling strategy and delay. Also add a parameter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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: components/omnibox/search_provider.h
diff --git a/components/omnibox/search_provider.h b/components/omnibox/search_provider.h
index 83eeaa33d8aa19a38d5c5d070c9b08bd0e97d27c..e6cc904de7c20ef61c596dce2e7d80dab298a3c2 100644
--- a/components/omnibox/search_provider.h
+++ b/components/omnibox/search_provider.h
@@ -201,6 +201,9 @@ class SearchProvider : public BaseSearchProvider,
// This does not update |done_|.
void DoHistoryQuery(bool minimal_changes);
+ // Returns the time to delay before sending the Suggest request.
+ base::TimeDelta GetSuggestQueryDelay();
Mark P 2014/10/21 21:28:22 Can this function be const?
Bart N. 2014/10/22 01:19:08 Oh yes :) not sure why I forgot that.
+
// Determines whether an asynchronous subcomponent query should run for the
// current input. If so, starts it if necessary; otherwise stops it.
// NOTE: This function does not update |done_|. Callers must do so.

Powered by Google App Engine
This is Rietveld 408576698