| 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 "base/prefs/pref_service.h" | 7 #include "base/prefs/pref_service.h" |
| 8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
| 9 #include "chrome/browser/autocomplete/autocomplete_classifier.h" | |
| 10 #include "chrome/browser/autocomplete/autocomplete_classifier_factory.h" | 9 #include "chrome/browser/autocomplete/autocomplete_classifier_factory.h" |
| 11 #include "chrome/browser/autocomplete/in_memory_url_index_factory.h" | 10 #include "chrome/browser/autocomplete/in_memory_url_index_factory.h" |
| 12 #include "chrome/browser/autocomplete/shortcuts_backend_factory.h" | 11 #include "chrome/browser/autocomplete/shortcuts_backend_factory.h" |
| 13 #include "chrome/browser/bitmap_fetcher/bitmap_fetcher_service.h" | 12 #include "chrome/browser/bitmap_fetcher/bitmap_fetcher_service.h" |
| 14 #include "chrome/browser/bitmap_fetcher/bitmap_fetcher_service_factory.h" | 13 #include "chrome/browser/bitmap_fetcher/bitmap_fetcher_service_factory.h" |
| 15 #include "chrome/browser/bookmarks/bookmark_model_factory.h" | 14 #include "chrome/browser/bookmarks/bookmark_model_factory.h" |
| 16 #include "chrome/browser/chrome_notification_types.h" | 15 #include "chrome/browser/chrome_notification_types.h" |
| 17 #include "chrome/browser/history/history_service_factory.h" | 16 #include "chrome/browser/history/history_service_factory.h" |
| 18 #include "chrome/browser/history/top_sites_factory.h" | 17 #include "chrome/browser/history/top_sites_factory.h" |
| 19 #include "chrome/browser/profiles/profile.h" | 18 #include "chrome/browser/profiles/profile.h" |
| 20 #include "chrome/browser/search_engines/template_url_service_factory.h" | 19 #include "chrome/browser/search_engines/template_url_service_factory.h" |
| 21 #include "chrome/browser/sync/profile_sync_service.h" | 20 #include "chrome/browser/sync/profile_sync_service.h" |
| 22 #include "chrome/browser/sync/profile_sync_service_factory.h" | 21 #include "chrome/browser/sync/profile_sync_service_factory.h" |
| 23 #include "chrome/common/pref_names.h" | 22 #include "chrome/common/pref_names.h" |
| 24 #include "chrome/common/url_constants.h" | 23 #include "chrome/common/url_constants.h" |
| 25 #include "components/history/core/browser/history_service.h" | 24 #include "components/history/core/browser/history_service.h" |
| 25 #include "components/omnibox/autocomplete_classifier.h" |
| 26 #include "content/public/browser/notification_service.h" | 26 #include "content/public/browser/notification_service.h" |
| 27 | 27 |
| 28 #if defined(ENABLE_EXTENSIONS) | 28 #if defined(ENABLE_EXTENSIONS) |
| 29 #include "chrome/browser/autocomplete/keyword_extensions_delegate_impl.h" | 29 #include "chrome/browser/autocomplete/keyword_extensions_delegate_impl.h" |
| 30 #endif | 30 #endif |
| 31 | 31 |
| 32 #if !defined(OS_ANDROID) | 32 #if !defined(OS_ANDROID) |
| 33 namespace { | 33 namespace { |
| 34 | 34 |
| 35 // This list should be kept in sync with chrome/common/url_constants.h. | 35 // This list should be kept in sync with chrome/common/url_constants.h. |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 image_service->Prefetch(url); | 239 image_service->Prefetch(url); |
| 240 } | 240 } |
| 241 | 241 |
| 242 void ChromeAutocompleteProviderClient::OnAutocompleteControllerResultReady( | 242 void ChromeAutocompleteProviderClient::OnAutocompleteControllerResultReady( |
| 243 AutocompleteController* controller) { | 243 AutocompleteController* controller) { |
| 244 content::NotificationService::current()->Notify( | 244 content::NotificationService::current()->Notify( |
| 245 chrome::NOTIFICATION_AUTOCOMPLETE_CONTROLLER_RESULT_READY, | 245 chrome::NOTIFICATION_AUTOCOMPLETE_CONTROLLER_RESULT_READY, |
| 246 content::Source<AutocompleteController>(controller), | 246 content::Source<AutocompleteController>(controller), |
| 247 content::NotificationService::NoDetails()); | 247 content::NotificationService::NoDetails()); |
| 248 } | 248 } |
| OLD | NEW |