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 // This file contains the keyword autocomplete provider. The keyword provider | 5 // This file contains the keyword autocomplete provider. The keyword provider |
6 // is responsible for remembering/suggesting user "search keyword queries" | 6 // is responsible for remembering/suggesting user "search keyword queries" |
7 // (e.g. "imdb Godzilla") and then fixing them up into valid URLs. An | 7 // (e.g. "imdb Godzilla") and then fixing them up into valid URLs. An |
8 // instance of it gets created and managed by the autocomplete controller. | 8 // instance of it gets created and managed by the autocomplete controller. |
9 // KeywordProvider uses a TemplateURLService to find the set of keywords. | 9 // KeywordProvider uses a TemplateURLService to find the set of keywords. |
10 | 10 |
11 #ifndef CHROME_BROWSER_AUTOCOMPLETE_KEYWORD_PROVIDER_H_ | 11 #ifndef CHROME_BROWSER_AUTOCOMPLETE_KEYWORD_PROVIDER_H_ |
12 #define CHROME_BROWSER_AUTOCOMPLETE_KEYWORD_PROVIDER_H_ | 12 #define CHROME_BROWSER_AUTOCOMPLETE_KEYWORD_PROVIDER_H_ |
13 | 13 |
14 #include <string> | 14 #include <string> |
15 | 15 |
16 #include "base/basictypes.h" | 16 #include "base/basictypes.h" |
17 #include "base/compiler_specific.h" | 17 #include "base/compiler_specific.h" |
18 #include "base/memory/scoped_ptr.h" | 18 #include "base/memory/scoped_ptr.h" |
19 #include "components/autocomplete/autocomplete_input.h" | |
20 #include "components/autocomplete/autocomplete_provider.h" | |
21 #include "components/metrics/proto/omnibox_input_type.pb.h" | 19 #include "components/metrics/proto/omnibox_input_type.pb.h" |
| 20 #include "components/omnibox/autocomplete_input.h" |
| 21 #include "components/omnibox/autocomplete_provider.h" |
22 | 22 |
23 class AutocompleteProviderListener; | 23 class AutocompleteProviderListener; |
24 class KeywordExtensionsDelegate; | 24 class KeywordExtensionsDelegate; |
25 class Profile; | 25 class Profile; |
26 class TemplateURL; | 26 class TemplateURL; |
27 class TemplateURLService; | 27 class TemplateURLService; |
28 | 28 |
29 // Autocomplete provider for keyword input. | 29 // Autocomplete provider for keyword input. |
30 // | 30 // |
31 // After construction, the autocomplete controller repeatedly calls Start() | 31 // After construction, the autocomplete controller repeatedly calls Start() |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 TemplateURLService* model_; | 148 TemplateURLService* model_; |
149 | 149 |
150 // Delegate to handle the extensions-only logic for KeywordProvider. | 150 // Delegate to handle the extensions-only logic for KeywordProvider. |
151 // NULL when extensions are not enabled. May be NULL for tests. | 151 // NULL when extensions are not enabled. May be NULL for tests. |
152 scoped_ptr<KeywordExtensionsDelegate> extensions_delegate_; | 152 scoped_ptr<KeywordExtensionsDelegate> extensions_delegate_; |
153 | 153 |
154 DISALLOW_COPY_AND_ASSIGN(KeywordProvider); | 154 DISALLOW_COPY_AND_ASSIGN(KeywordProvider); |
155 }; | 155 }; |
156 | 156 |
157 #endif // CHROME_BROWSER_AUTOCOMPLETE_KEYWORD_PROVIDER_H_ | 157 #endif // CHROME_BROWSER_AUTOCOMPLETE_KEYWORD_PROVIDER_H_ |
OLD | NEW |