OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_CONTROLLER_H_ |
6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_CONTROLLER_H_ | 6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_CONTROLLER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 // Asks the relevant provider to delete |match|, and ensures observers are | 88 // Asks the relevant provider to delete |match|, and ensures observers are |
89 // notified of resulting changes immediately. This should only be called when | 89 // notified of resulting changes immediately. This should only be called when |
90 // no query is running. | 90 // no query is running. |
91 void DeleteMatch(const AutocompleteMatch& match); | 91 void DeleteMatch(const AutocompleteMatch& match); |
92 | 92 |
93 // Removes any entries that were copied from the last result. This is used by | 93 // Removes any entries that were copied from the last result. This is used by |
94 // the popup to ensure it's not showing an out-of-date query. | 94 // the popup to ensure it's not showing an out-of-date query. |
95 void ExpireCopiedEntries(); | 95 void ExpireCopiedEntries(); |
96 | 96 |
97 // AutocompleteProviderListener: | 97 // AutocompleteProviderListener: |
98 virtual void OnProviderUpdate(bool updated_matches) OVERRIDE; | 98 virtual void OnProviderUpdate(bool updated_matches) override; |
99 | 99 |
100 // Called when an omnibox event log entry is generated. | 100 // Called when an omnibox event log entry is generated. |
101 // Populates provider_info with diagnostic information about the status | 101 // Populates provider_info with diagnostic information about the status |
102 // of various providers. In turn, calls | 102 // of various providers. In turn, calls |
103 // AutocompleteProvider::AddProviderInfo() so each provider can add | 103 // AutocompleteProvider::AddProviderInfo() so each provider can add |
104 // provider-specific information, information we want to log for a particular | 104 // provider-specific information, information we want to log for a particular |
105 // provider but not others. | 105 // provider but not others. |
106 void AddProvidersInfo(ProvidersInfo* provider_info) const; | 106 void AddProvidersInfo(ProvidersInfo* provider_info) const; |
107 | 107 |
108 // Called when a new omnibox session starts. | 108 // Called when a new omnibox session starts. |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 // Are we in Start()? This is used to avoid updating |result_| and sending | 249 // Are we in Start()? This is used to avoid updating |result_| and sending |
250 // notifications until Start() has been invoked on all providers. | 250 // notifications until Start() has been invoked on all providers. |
251 bool in_start_; | 251 bool in_start_; |
252 | 252 |
253 TemplateURLService* template_url_service_; | 253 TemplateURLService* template_url_service_; |
254 | 254 |
255 DISALLOW_COPY_AND_ASSIGN(AutocompleteController); | 255 DISALLOW_COPY_AND_ASSIGN(AutocompleteController); |
256 }; | 256 }; |
257 | 257 |
258 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_CONTROLLER_H_ | 258 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_CONTROLLER_H_ |
OLD | NEW |