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 // KeywordExtensionsDelegateImpl contains the extensions-only logic used by | 5 // KeywordExtensionsDelegateImpl contains the extensions-only logic used by |
6 // KeywordProvider. Overrides KeywordExtensionsDelegate which does nothing. | 6 // KeywordProvider. Overrides KeywordExtensionsDelegate which does nothing. |
7 | 7 |
8 #ifndef CHROME_BROWSER_AUTOCOMPLETE_KEYWORD_EXTENSIONS_DELEGATE_IMPL_H_ | 8 #ifndef CHROME_BROWSER_AUTOCOMPLETE_KEYWORD_EXTENSIONS_DELEGATE_IMPL_H_ |
9 #define CHROME_BROWSER_AUTOCOMPLETE_KEYWORD_EXTENSIONS_DELEGATE_IMPL_H_ | 9 #define CHROME_BROWSER_AUTOCOMPLETE_KEYWORD_EXTENSIONS_DELEGATE_IMPL_H_ |
10 | 10 |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 14 #include "base/macros.h" |
14 #include "components/omnibox/browser/autocomplete_input.h" | 15 #include "components/omnibox/browser/autocomplete_input.h" |
15 #include "components/omnibox/browser/autocomplete_match.h" | 16 #include "components/omnibox/browser/autocomplete_match.h" |
16 #include "components/omnibox/browser/autocomplete_provider_listener.h" | 17 #include "components/omnibox/browser/autocomplete_provider_listener.h" |
17 #include "components/omnibox/browser/keyword_extensions_delegate.h" | 18 #include "components/omnibox/browser/keyword_extensions_delegate.h" |
18 #include "components/omnibox/browser/keyword_provider.h" | 19 #include "components/omnibox/browser/keyword_provider.h" |
19 #include "content/public/browser/notification_observer.h" | 20 #include "content/public/browser/notification_observer.h" |
20 #include "content/public/browser/notification_registrar.h" | 21 #include "content/public/browser/notification_registrar.h" |
21 | 22 |
22 #if !defined(ENABLE_EXTENSIONS) | 23 #if !defined(ENABLE_EXTENSIONS) |
23 #error "Should not be included when extensions are disabled" | 24 #error "Should not be included when extensions are disabled" |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 content::NotificationRegistrar registrar_; | 81 content::NotificationRegistrar registrar_; |
81 | 82 |
82 // We need our input IDs to be unique across all profiles, so we keep a global | 83 // We need our input IDs to be unique across all profiles, so we keep a global |
83 // UID that each provider uses. | 84 // UID that each provider uses. |
84 static int global_input_uid_; | 85 static int global_input_uid_; |
85 | 86 |
86 DISALLOW_COPY_AND_ASSIGN(KeywordExtensionsDelegateImpl); | 87 DISALLOW_COPY_AND_ASSIGN(KeywordExtensionsDelegateImpl); |
87 }; | 88 }; |
88 | 89 |
89 #endif // CHROME_BROWSER_AUTOCOMPLETE_KEYWORD_EXTENSIONS_DELEGATE_IMPL_H_ | 90 #endif // CHROME_BROWSER_AUTOCOMPLETE_KEYWORD_EXTENSIONS_DELEGATE_IMPL_H_ |
OLD | NEW |