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

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

Issue 55603002: Move HasHTTPScheme to AutocompleteInput. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 1 month 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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 // TODO(pkasting): http://b/1111299 , http://b/933133 This should go away once 235 // TODO(pkasting): http://b/1111299 , http://b/933133 This should go away once
236 // we have good relevance heuristics; the controller should handle all 236 // we have good relevance heuristics; the controller should handle all
237 // culling. 237 // culling.
238 static const size_t kMaxMatches; 238 static const size_t kMaxMatches;
239 239
240 protected: 240 protected:
241 friend class base::RefCountedThreadSafe<AutocompleteProvider>; 241 friend class base::RefCountedThreadSafe<AutocompleteProvider>;
242 242
243 virtual ~AutocompleteProvider(); 243 virtual ~AutocompleteProvider();
244 244
245 // Returns whether |input| begins "http:" or "view-source:http:".
246 static bool HasHTTPScheme(const string16& input);
247
248 // Updates the starred state of each of the matches in matches_ from the 245 // Updates the starred state of each of the matches in matches_ from the
249 // profile's bookmark bar model. 246 // profile's bookmark bar model.
250 void UpdateStarredStateOfMatches(); 247 void UpdateStarredStateOfMatches();
251 248
252 // The profile associated with the AutocompleteProvider. Reference is not 249 // The profile associated with the AutocompleteProvider. Reference is not
253 // owned by us. 250 // owned by us.
254 Profile* profile_; 251 Profile* profile_;
255 252
256 AutocompleteProviderListener* listener_; 253 AutocompleteProviderListener* listener_;
257 ACMatches matches_; 254 ACMatches matches_;
258 bool done_; 255 bool done_;
259 256
260 Type type_; 257 Type type_;
261 258
262 private: 259 private:
263 DISALLOW_COPY_AND_ASSIGN(AutocompleteProvider); 260 DISALLOW_COPY_AND_ASSIGN(AutocompleteProvider);
264 }; 261 };
265 262
266 typedef std::vector<AutocompleteProvider*> ACProviders; 263 typedef std::vector<AutocompleteProvider*> ACProviders;
267 264
268 #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_input.cc ('k') | chrome/browser/autocomplete/autocomplete_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698