Chromium Code Reviews| 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 110 // navigates to the selected match. | 110 // navigates to the selected match. |
| 111 void UpdateMatchDestinationURL(base::TimeDelta query_formulation_time, | 111 void UpdateMatchDestinationURL(base::TimeDelta query_formulation_time, |
| 112 AutocompleteMatch* match) const; | 112 AutocompleteMatch* match) const; |
| 113 | 113 |
| 114 HistoryURLProvider* history_url_provider() const { | 114 HistoryURLProvider* history_url_provider() const { |
| 115 return history_url_provider_; | 115 return history_url_provider_; |
| 116 } | 116 } |
| 117 KeywordProvider* keyword_provider() const { return keyword_provider_; } | 117 KeywordProvider* keyword_provider() const { return keyword_provider_; } |
| 118 SearchProvider* search_provider() const { return search_provider_; } | 118 SearchProvider* search_provider() const { return search_provider_; } |
| 119 | 119 |
| 120 // Deprecated. Do not use that method! It's provided temporarily as clank | |
| 121 // migrates. If you need to access the aucomplete input you should keep a | |
| 122 // local copy of it. | |
| 123 // TODO(beaudoin): Remove this method once clank no longer rely on it. | |
|
Feng Qian
2014/04/28 17:05:31
can you put bug id in comments?
beaudoin
2014/04/28 17:09:24
Done.
| |
| 124 const AutocompleteInput& input() const { return input_; } | |
| 125 | |
| 120 const AutocompleteResult& result() const { return result_; } | 126 const AutocompleteResult& result() const { return result_; } |
| 121 bool done() const { return done_; } | 127 bool done() const { return done_; } |
| 122 const ACProviders* providers() const { return &providers_; } | 128 const ACProviders* providers() const { return &providers_; } |
| 123 | 129 |
| 124 const base::TimeTicks& last_time_default_match_changed() const { | 130 const base::TimeTicks& last_time_default_match_changed() const { |
| 125 return last_time_default_match_changed_; | 131 return last_time_default_match_changed_; |
| 126 } | 132 } |
| 127 | 133 |
| 128 private: | 134 private: |
| 129 friend class AutocompleteProviderTest; | 135 friend class AutocompleteProviderTest; |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 228 // Are we in Start()? This is used to avoid updating |result_| and sending | 234 // Are we in Start()? This is used to avoid updating |result_| and sending |
| 229 // notifications until Start() has been invoked on all providers. | 235 // notifications until Start() has been invoked on all providers. |
| 230 bool in_start_; | 236 bool in_start_; |
| 231 | 237 |
| 232 Profile* profile_; | 238 Profile* profile_; |
| 233 | 239 |
| 234 DISALLOW_COPY_AND_ASSIGN(AutocompleteController); | 240 DISALLOW_COPY_AND_ASSIGN(AutocompleteController); |
| 235 }; | 241 }; |
| 236 | 242 |
| 237 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_CONTROLLER_H_ | 243 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_CONTROLLER_H_ |
| OLD | NEW |