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

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

Issue 105193002: Replace string16 with base::string16. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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_PROVIDER_H_ 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_PROVIDER_H_
6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_PROVIDER_H_ 6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_PROVIDER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 virtual void AddProviderInfo(ProvidersInfo* provider_info) const; 203 virtual void AddProviderInfo(ProvidersInfo* provider_info) const;
204 204
205 // Called when a new omnibox session starts or the current session ends. 205 // Called when a new omnibox session starts or the current session ends.
206 // This gives the opportunity to reset the internal state, if any, associated 206 // This gives the opportunity to reset the internal state, if any, associated
207 // with the previous session. 207 // with the previous session.
208 virtual void ResetSession(); 208 virtual void ResetSession();
209 209
210 // A convenience function to call net::FormatUrl() with the current set of 210 // A convenience function to call net::FormatUrl() with the current set of
211 // "Accept Languages" when check_accept_lang is true. Otherwise, it's called 211 // "Accept Languages" when check_accept_lang is true. Otherwise, it's called
212 // with an empty list. 212 // with an empty list.
213 string16 StringForURLDisplay(const GURL& url, 213 base::string16 StringForURLDisplay(const GURL& url,
214 bool check_accept_lang, 214 bool check_accept_lang,
215 bool trim_http) const; 215 bool trim_http) const;
216 216
217 // Returns the set of matches for the current query. 217 // Returns the set of matches for the current query.
218 const ACMatches& matches() const { return matches_; } 218 const ACMatches& matches() const { return matches_; }
219 219
220 // Returns whether the provider is done processing the query. 220 // Returns whether the provider is done processing the query.
221 bool done() const { return done_; } 221 bool done() const { return done_; }
222 222
223 // Returns this provider's type. 223 // Returns this provider's type.
224 Type type() const { return type_; } 224 Type type() const { return type_; }
225 225
(...skipping 30 matching lines...) Expand all
256 256
257 Type type_; 257 Type type_;
258 258
259 private: 259 private:
260 DISALLOW_COPY_AND_ASSIGN(AutocompleteProvider); 260 DISALLOW_COPY_AND_ASSIGN(AutocompleteProvider);
261 }; 261 };
262 262
263 typedef std::vector<AutocompleteProvider*> ACProviders; 263 typedef std::vector<AutocompleteProvider*> ACProviders;
264 264
265 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_PROVIDER_H_ 265 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_PROVIDER_H_
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_match.cc ('k') | chrome/browser/autocomplete/autocomplete_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698