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/chrome_autocomplete_provider_client.h" | 5 #include "chrome/browser/autocomplete/chrome_autocomplete_provider_client.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 #include "chrome/browser/history/top_sites_factory.h" | 21 #include "chrome/browser/history/top_sites_factory.h" |
22 #include "chrome/browser/profiles/profile.h" | 22 #include "chrome/browser/profiles/profile.h" |
23 #include "chrome/browser/search_engines/template_url_service_factory.h" | 23 #include "chrome/browser/search_engines/template_url_service_factory.h" |
24 #include "chrome/browser/sync/profile_sync_service_factory.h" | 24 #include "chrome/browser/sync/profile_sync_service_factory.h" |
25 #include "chrome/common/pref_names.h" | 25 #include "chrome/common/pref_names.h" |
26 #include "chrome/common/url_constants.h" | 26 #include "chrome/common/url_constants.h" |
27 #include "components/browser_sync/browser/profile_sync_service.h" | 27 #include "components/browser_sync/browser/profile_sync_service.h" |
28 #include "components/history/core/browser/history_service.h" | 28 #include "components/history/core/browser/history_service.h" |
29 #include "components/omnibox/browser/autocomplete_classifier.h" | 29 #include "components/omnibox/browser/autocomplete_classifier.h" |
30 #include "components/prefs/pref_service.h" | 30 #include "components/prefs/pref_service.h" |
31 #include "components/sync_driver/sync_service_utils.h" | 31 #include "components/sync/driver/sync_service_utils.h" |
32 #include "content/public/browser/notification_service.h" | 32 #include "content/public/browser/notification_service.h" |
33 | 33 |
34 #if defined(ENABLE_EXTENSIONS) | 34 #if defined(ENABLE_EXTENSIONS) |
35 #include "chrome/browser/autocomplete/keyword_extensions_delegate_impl.h" | 35 #include "chrome/browser/autocomplete/keyword_extensions_delegate_impl.h" |
36 #endif | 36 #endif |
37 | 37 |
38 #if !defined(OS_ANDROID) | 38 #if !defined(OS_ANDROID) |
39 namespace { | 39 namespace { |
40 | 40 |
41 // This list should be kept in sync with chrome/common/url_constants.h. | 41 // This list should be kept in sync with chrome/common/url_constants.h. |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 image_service->Prefetch(url); | 236 image_service->Prefetch(url); |
237 } | 237 } |
238 | 238 |
239 void ChromeAutocompleteProviderClient::OnAutocompleteControllerResultReady( | 239 void ChromeAutocompleteProviderClient::OnAutocompleteControllerResultReady( |
240 AutocompleteController* controller) { | 240 AutocompleteController* controller) { |
241 content::NotificationService::current()->Notify( | 241 content::NotificationService::current()->Notify( |
242 chrome::NOTIFICATION_AUTOCOMPLETE_CONTROLLER_RESULT_READY, | 242 chrome::NOTIFICATION_AUTOCOMPLETE_CONTROLLER_RESULT_READY, |
243 content::Source<AutocompleteController>(controller), | 243 content::Source<AutocompleteController>(controller), |
244 content::NotificationService::NoDetails()); | 244 content::NotificationService::NoDetails()); |
245 } | 245 } |
OLD | NEW |