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

Side by Side Diff: chrome/browser/autocomplete/autocomplete_controller.h

Issue 252913002: Stopgap: Adding back AucocompleteController::input() accessor to unbreak clank. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added bug id to comment. Created 6 years, 7 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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.
124 // crbug.com/367832
125 const AutocompleteInput& input() const { return input_; }
126
120 const AutocompleteResult& result() const { return result_; } 127 const AutocompleteResult& result() const { return result_; }
121 bool done() const { return done_; } 128 bool done() const { return done_; }
122 const ACProviders* providers() const { return &providers_; } 129 const ACProviders* providers() const { return &providers_; }
123 130
124 const base::TimeTicks& last_time_default_match_changed() const { 131 const base::TimeTicks& last_time_default_match_changed() const {
125 return last_time_default_match_changed_; 132 return last_time_default_match_changed_;
126 } 133 }
127 134
128 private: 135 private:
129 friend class AutocompleteProviderTest; 136 friend class AutocompleteProviderTest;
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 // Are we in Start()? This is used to avoid updating |result_| and sending 235 // Are we in Start()? This is used to avoid updating |result_| and sending
229 // notifications until Start() has been invoked on all providers. 236 // notifications until Start() has been invoked on all providers.
230 bool in_start_; 237 bool in_start_;
231 238
232 Profile* profile_; 239 Profile* profile_;
233 240
234 DISALLOW_COPY_AND_ASSIGN(AutocompleteController); 241 DISALLOW_COPY_AND_ASSIGN(AutocompleteController);
235 }; 242 };
236 243
237 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_CONTROLLER_H_ 244 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698