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

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

Issue 399063002: Remove BaseSearchProvider::set_in_app_list (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix typo Created 6 years, 5 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 | Annotate | Revision Log
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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 107
108 // Called when a new omnibox session starts. 108 // Called when a new omnibox session starts.
109 // We start a new session when the user first begins modifying the omnibox 109 // We start a new session when the user first begins modifying the omnibox
110 // content; see |OmniboxEditModel::user_input_in_progress_|. 110 // content; see |OmniboxEditModel::user_input_in_progress_|.
111 void ResetSession(); 111 void ResetSession();
112 112
113 // Constructs the final destination URL for a given match using additional 113 // Constructs the final destination URL for a given match using additional
114 // parameters otherwise not available at initial construction time. This 114 // parameters otherwise not available at initial construction time. This
115 // method should be called from OmniboxEditModel::OpenMatch() before the user 115 // method should be called from OmniboxEditModel::OpenMatch() before the user
116 // navigates to the selected match. 116 // navigates to the selected match.
117 void UpdateMatchDestinationURL(base::TimeDelta query_formulation_time, 117 void UpdateMatchDestinationURLWithQueryFormulationTime(
118 AutocompleteMatch* match) const; 118 base::TimeDelta query_formulation_time,
119 AutocompleteMatch* match) const;
120
121 // Constructs the final destination URL for a given match using additional
122 // parameters otherwise not available at initial construction time.
123 void UpdateMatchDestinationURL(
124 const TemplateURLRef::SearchTermsArgs& search_terms_args,
125 AutocompleteMatch* match) const;
119 126
120 HistoryURLProvider* history_url_provider() const { 127 HistoryURLProvider* history_url_provider() const {
121 return history_url_provider_; 128 return history_url_provider_;
122 } 129 }
123 KeywordProvider* keyword_provider() const { return keyword_provider_; } 130 KeywordProvider* keyword_provider() const { return keyword_provider_; }
124 SearchProvider* search_provider() const { return search_provider_; } 131 SearchProvider* search_provider() const { return search_provider_; }
125 132
126 // Deprecated. Do not use that method! It's provided temporarily as clank 133 // Deprecated. Do not use that method! It's provided temporarily as clank
127 // migrates. If you need to access the aucomplete input you should keep a 134 // migrates. If you need to access the aucomplete input you should keep a
128 // local copy of it. 135 // local copy of it.
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 // 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
243 // notifications until Start() has been invoked on all providers. 250 // notifications until Start() has been invoked on all providers.
244 bool in_start_; 251 bool in_start_;
245 252
246 TemplateURLService* template_url_service_; 253 TemplateURLService* template_url_service_;
247 254
248 DISALLOW_COPY_AND_ASSIGN(AutocompleteController); 255 DISALLOW_COPY_AND_ASSIGN(AutocompleteController);
249 }; 256 };
250 257
251 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_CONTROLLER_H_ 258 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698