OLD | NEW |
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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 void Classify(const base::string16& text, | 48 void Classify(const base::string16& text, |
49 bool prefer_keyword, | 49 bool prefer_keyword, |
50 bool allow_exact_keyword_match, | 50 bool allow_exact_keyword_match, |
51 metrics::OmniboxEventProto::PageClassification | 51 metrics::OmniboxEventProto::PageClassification |
52 page_classification, | 52 page_classification, |
53 AutocompleteMatch* match, | 53 AutocompleteMatch* match, |
54 GURL* alternate_nav_url); | 54 GURL* alternate_nav_url); |
55 | 55 |
56 private: | 56 private: |
57 // KeyedService: | 57 // KeyedService: |
58 virtual void Shutdown() OVERRIDE; | 58 virtual void Shutdown() override; |
59 | 59 |
60 scoped_ptr<AutocompleteController> controller_; | 60 scoped_ptr<AutocompleteController> controller_; |
61 scoped_ptr<AutocompleteSchemeClassifier> scheme_classifier_; | 61 scoped_ptr<AutocompleteSchemeClassifier> scheme_classifier_; |
62 | 62 |
63 // Are we currently in Classify? Used to verify Classify isn't invoked | 63 // Are we currently in Classify? Used to verify Classify isn't invoked |
64 // recursively, since this can corrupt state and cause crashes. | 64 // recursively, since this can corrupt state and cause crashes. |
65 bool inside_classify_; | 65 bool inside_classify_; |
66 | 66 |
67 DISALLOW_IMPLICIT_CONSTRUCTORS(AutocompleteClassifier); | 67 DISALLOW_IMPLICIT_CONSTRUCTORS(AutocompleteClassifier); |
68 }; | 68 }; |
69 | 69 |
70 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_CLASSIFIER_H_ | 70 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_CLASSIFIER_H_ |
OLD | NEW |