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

Side by Side Diff: chrome/browser/autocomplete/autocomplete_classifier.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_CLASSIFIER_H_ 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_CLASSIFIER_H_
6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_CLASSIFIER_H_ 6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_CLASSIFIER_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/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 21 matching lines...) Expand all
32 // comments on AutocompleteController::Start(). 32 // comments on AutocompleteController::Start().
33 // |allow_exact_keyword_match| should be true when treating the string as a 33 // |allow_exact_keyword_match| should be true when treating the string as a
34 // potential keyword search is valid; see 34 // potential keyword search is valid; see
35 // AutocompleteInput::allow_exact_keyword_match(). |match| should be a 35 // AutocompleteInput::allow_exact_keyword_match(). |match| should be a
36 // non-NULL outparam that will be set to the default match for this input, if 36 // non-NULL outparam that will be set to the default match for this input, if
37 // any (for invalid input, there will be no default match, and |match| will be 37 // any (for invalid input, there will be no default match, and |match| will be
38 // left unchanged). |alternate_nav_url| is a possibly-NULL outparam that, if 38 // left unchanged). |alternate_nav_url| is a possibly-NULL outparam that, if
39 // non-NULL, will be set to the navigational URL (if any) in case of an 39 // non-NULL, will be set to the navigational URL (if any) in case of an
40 // accidental search; see comments on 40 // accidental search; see comments on
41 // AutocompleteResult::alternate_nav_url_ in autocomplete.h. 41 // AutocompleteResult::alternate_nav_url_ in autocomplete.h.
42 void Classify(const string16& text, 42 void Classify(const base::string16& text,
43 bool prefer_keyword, 43 bool prefer_keyword,
44 bool allow_exact_keyword_match, 44 bool allow_exact_keyword_match,
45 AutocompleteMatch* match, 45 AutocompleteMatch* match,
46 GURL* alternate_nav_url); 46 GURL* alternate_nav_url);
47 47
48 private: 48 private:
49 // BrowserContextKeyedService: 49 // BrowserContextKeyedService:
50 virtual void Shutdown() OVERRIDE; 50 virtual void Shutdown() OVERRIDE;
51 51
52 scoped_ptr<AutocompleteController> controller_; 52 scoped_ptr<AutocompleteController> controller_;
53 53
54 // Are we currently in Classify? Used to verify Classify isn't invoked 54 // Are we currently in Classify? Used to verify Classify isn't invoked
55 // recursively, since this can corrupt state and cause crashes. 55 // recursively, since this can corrupt state and cause crashes.
56 bool inside_classify_; 56 bool inside_classify_;
57 57
58 DISALLOW_IMPLICIT_CONSTRUCTORS(AutocompleteClassifier); 58 DISALLOW_IMPLICIT_CONSTRUCTORS(AutocompleteClassifier);
59 }; 59 };
60 60
61 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_CLASSIFIER_H_ 61 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_CLASSIFIER_H_
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_browsertest.cc ('k') | chrome/browser/autocomplete/autocomplete_classifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698