diff options
author | deanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-27 12:08:09 +0000 |
---|---|---|
committer | deanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-27 12:08:09 +0000 |
commit | 6c85aa0142643695b48b76e6f1e02f58d191e712 (patch) | |
tree | da7a8add1a6eefb45eba9a71613ef4f5618dd267 /chrome/browser/autocomplete/search_provider.h | |
parent | 5fdf205ca33eda425379ed76c4686acda5e80ae2 (diff) | |
download | chromium_src-6c85aa0142643695b48b76e6f1e02f58d191e712.zip chromium_src-6c85aa0142643695b48b76e6f1e02f58d191e712.tar.gz chromium_src-6c85aa0142643695b48b76e6f1e02f58d191e712.tar.bz2 |
Misc formatting / cleanup in the autocomplete code.
- Reformat / reword some comments.
- Update include guards to the new style.
- Remove trailing blank lines from end of files.
- Clean up some includes.
- Pull the CompareQuality functor into the implementation.
- Pull kQueryDelayMs into the implementation.
Review URL: http://codereview.chromium.org/27206
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10603 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autocomplete/search_provider.h')
-rw-r--r-- | chrome/browser/autocomplete/search_provider.h | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/chrome/browser/autocomplete/search_provider.h b/chrome/browser/autocomplete/search_provider.h index bda313d..45fd1b3 100644 --- a/chrome/browser/autocomplete/search_provider.h +++ b/chrome/browser/autocomplete/search_provider.h @@ -12,8 +12,12 @@ // the autocomplete controller and autocomplete providers work, see // chrome/browser/autocomplete.h. -#ifndef CHROME_BROWSER_AUTOCOMPLETE_SEARCH_PROVIDER_H__ -#define CHROME_BROWSER_AUTOCOMPLETE_SEARCH_PROVIDER_H__ +#ifndef CHROME_BROWSER_AUTOCOMPLETE_SEARCH_PROVIDER_H_ +#define CHROME_BROWSER_AUTOCOMPLETE_SEARCH_PROVIDER_H_ + +#include <map> +#include <string> +#include <vector> #include "chrome/browser/autocomplete/autocomplete.h" #include "chrome/browser/history/history.h" @@ -140,21 +144,15 @@ class SearchProvider : public AutocompleteProvider, // TODO(kochi): this is duplicate from history_autocomplete static size_t TrimHttpPrefix(std::wstring* url); - // Don't send any queries to the server until some time has elapsed after - // the last keypress, to avoid flooding the server with requests we are - // likely to end up throwing away anyway. - static const int kQueryDelayMs; - // The user's input. AutocompleteInput input_; - TemplateURL default_provider_; // Cached across the life of a query so we - // behave consistently even if the user - // changes their default while the query is - // running. + // Cached across the life of a query so we behave consistently even if the + // user changes their default while the query is running. + TemplateURL default_provider_; + + // TODO(pkasting): http://b/1162970 We shouldn't need this. const TemplateURL* last_default_provider_; - // TODO(pkasting): http://b/1162970 We - // shouldn't need this. // An object we can use to cancel history requests. CancelableRequestConsumer history_request_consumer_; @@ -192,4 +190,4 @@ class SearchProvider : public AutocompleteProvider, DISALLOW_EVIL_CONSTRUCTORS(SearchProvider); }; -#endif // CHROME_BROWSER_AUTOCOMPLETE_SEARCH_PROVIDER_H__ +#endif // CHROME_BROWSER_AUTOCOMPLETE_SEARCH_PROVIDER_H_ |