| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_OMNIBOX_BROWSER_KEYWORD_PROVIDER_H_ | 11 #ifndef COMPONENTS_OMNIBOX_BROWSER_KEYWORD_PROVIDER_H_ |
| 12 #define COMPONENTS_OMNIBOX_BROWSER_KEYWORD_PROVIDER_H_ | 12 #define COMPONENTS_OMNIBOX_BROWSER_KEYWORD_PROVIDER_H_ |
| 13 | 13 |
| 14 #include <stddef.h> |
| 15 |
| 14 #include <string> | 16 #include <string> |
| 15 | 17 |
| 16 #include "base/basictypes.h" | |
| 17 #include "base/compiler_specific.h" | 18 #include "base/compiler_specific.h" |
| 19 #include "base/macros.h" |
| 18 #include "base/memory/scoped_ptr.h" | 20 #include "base/memory/scoped_ptr.h" |
| 19 #include "components/metrics/proto/omnibox_input_type.pb.h" | 21 #include "components/metrics/proto/omnibox_input_type.pb.h" |
| 20 #include "components/omnibox/browser/autocomplete_input.h" | 22 #include "components/omnibox/browser/autocomplete_input.h" |
| 21 #include "components/omnibox/browser/autocomplete_provider.h" | 23 #include "components/omnibox/browser/autocomplete_provider.h" |
| 22 #include "components/omnibox/browser/keyword_extensions_delegate.h" | 24 #include "components/omnibox/browser/keyword_extensions_delegate.h" |
| 23 | 25 |
| 24 class AutocompleteProviderClient; | 26 class AutocompleteProviderClient; |
| 25 class AutocompleteProviderListener; | 27 class AutocompleteProviderListener; |
| 26 class KeywordExtensionsDelegate; | 28 class KeywordExtensionsDelegate; |
| 27 class TemplateURL; | 29 class TemplateURL; |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 TemplateURLService* model_; | 149 TemplateURLService* model_; |
| 148 | 150 |
| 149 // Delegate to handle the extensions-only logic for KeywordProvider. | 151 // Delegate to handle the extensions-only logic for KeywordProvider. |
| 150 // NULL when extensions are not enabled. May be NULL for tests. | 152 // NULL when extensions are not enabled. May be NULL for tests. |
| 151 scoped_ptr<KeywordExtensionsDelegate> extensions_delegate_; | 153 scoped_ptr<KeywordExtensionsDelegate> extensions_delegate_; |
| 152 | 154 |
| 153 DISALLOW_COPY_AND_ASSIGN(KeywordProvider); | 155 DISALLOW_COPY_AND_ASSIGN(KeywordProvider); |
| 154 }; | 156 }; |
| 155 | 157 |
| 156 #endif // COMPONENTS_OMNIBOX_BROWSER_KEYWORD_PROVIDER_H_ | 158 #endif // COMPONENTS_OMNIBOX_BROWSER_KEYWORD_PROVIDER_H_ |
| OLD | NEW |