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" |
11 #include "base/string16.h" | 11 #include "base/strings/string16.h" |
12 #include "components/browser_context_keyed_service/browser_context_keyed_service
.h" | 12 #include "components/browser_context_keyed_service/browser_context_keyed_service
.h" |
13 | 13 |
14 class AutocompleteController; | 14 class AutocompleteController; |
15 struct AutocompleteMatch; | 15 struct AutocompleteMatch; |
16 class GURL; | 16 class GURL; |
17 class Profile; | 17 class Profile; |
18 | 18 |
19 class AutocompleteClassifier : public BrowserContextKeyedService { | 19 class AutocompleteClassifier : public BrowserContextKeyedService { |
20 public: | 20 public: |
21 // Bitmap of AutocompleteProvider::Type values describing the default set of | 21 // Bitmap of AutocompleteProvider::Type values describing the default set of |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 scoped_ptr<AutocompleteController> controller_; | 57 scoped_ptr<AutocompleteController> controller_; |
58 | 58 |
59 // Are we currently in Classify? Used to verify Classify isn't invoked | 59 // Are we currently in Classify? Used to verify Classify isn't invoked |
60 // recursively, since this can corrupt state and cause crashes. | 60 // recursively, since this can corrupt state and cause crashes. |
61 bool inside_classify_; | 61 bool inside_classify_; |
62 | 62 |
63 DISALLOW_IMPLICIT_CONSTRUCTORS(AutocompleteClassifier); | 63 DISALLOW_IMPLICIT_CONSTRUCTORS(AutocompleteClassifier); |
64 }; | 64 }; |
65 | 65 |
66 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_CLASSIFIER_H_ | 66 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_CLASSIFIER_H_ |
OLD | NEW |