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 #include "chrome/browser/autocomplete/keyword_extensions_delegate_impl.h" | 5 #include "chrome/browser/autocomplete/keyword_extensions_delegate_impl.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
10 #include "chrome/browser/extensions/api/omnibox/omnibox_api.h" | 10 #include "chrome/browser/extensions/api/omnibox/omnibox_api.h" |
11 #include "chrome/browser/extensions/extension_service.h" | 11 #include "chrome/browser/extensions/extension_service.h" |
12 #include "chrome/browser/extensions/extension_util.h" | |
13 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
14 #include "content/public/browser/notification_details.h" | 13 #include "content/public/browser/notification_details.h" |
15 #include "content/public/browser/notification_source.h" | 14 #include "content/public/browser/notification_source.h" |
16 #include "extensions/browser/extension_registry.h" | 15 #include "extensions/browser/extension_registry.h" |
| 16 #include "extensions/browser/extension_util.h" |
17 #include "extensions/browser/notification_types.h" | 17 #include "extensions/browser/notification_types.h" |
18 | 18 |
19 namespace omnibox_api = extensions::api::omnibox; | 19 namespace omnibox_api = extensions::api::omnibox; |
20 | 20 |
21 int KeywordExtensionsDelegateImpl::global_input_uid_ = 0; | 21 int KeywordExtensionsDelegateImpl::global_input_uid_ = 0; |
22 | 22 |
23 KeywordExtensionsDelegateImpl::KeywordExtensionsDelegateImpl( | 23 KeywordExtensionsDelegateImpl::KeywordExtensionsDelegateImpl( |
24 Profile* profile, | 24 Profile* profile, |
25 KeywordProvider* provider) | 25 KeywordProvider* provider) |
26 : KeywordExtensionsDelegate(provider), | 26 : KeywordExtensionsDelegate(provider), |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 | 211 |
212 default: | 212 default: |
213 NOTREACHED(); | 213 NOTREACHED(); |
214 return; | 214 return; |
215 } | 215 } |
216 } | 216 } |
217 | 217 |
218 void KeywordExtensionsDelegateImpl::OnProviderUpdate(bool updated_matches) { | 218 void KeywordExtensionsDelegateImpl::OnProviderUpdate(bool updated_matches) { |
219 provider_->listener_->OnProviderUpdate(updated_matches); | 219 provider_->listener_->OnProviderUpdate(updated_matches); |
220 } | 220 } |
OLD | NEW |