| 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 142 ChromeAutocompleteProviderClient::GetKeywordExtensionsDelegate( | 142 ChromeAutocompleteProviderClient::GetKeywordExtensionsDelegate( | 
| 143     KeywordProvider* keyword_provider) { | 143     KeywordProvider* keyword_provider) { | 
| 144 #if defined(ENABLE_EXTENSIONS) | 144 #if defined(ENABLE_EXTENSIONS) | 
| 145   return base::WrapUnique( | 145   return base::WrapUnique( | 
| 146       new KeywordExtensionsDelegateImpl(profile_, keyword_provider)); | 146       new KeywordExtensionsDelegateImpl(profile_, keyword_provider)); | 
| 147 #else | 147 #else | 
| 148   return nullptr; | 148   return nullptr; | 
| 149 #endif | 149 #endif | 
| 150 } | 150 } | 
| 151 | 151 | 
|  | 152 PhysicalWebDataSource* | 
|  | 153 ChromeAutocompleteProviderClient::GetPhysicalWebDataSource() { | 
|  | 154   return nullptr; | 
|  | 155 } | 
|  | 156 | 
| 152 std::string ChromeAutocompleteProviderClient::GetAcceptLanguages() const { | 157 std::string ChromeAutocompleteProviderClient::GetAcceptLanguages() const { | 
| 153   return profile_->GetPrefs()->GetString(prefs::kAcceptLanguages); | 158   return profile_->GetPrefs()->GetString(prefs::kAcceptLanguages); | 
| 154 } | 159 } | 
| 155 | 160 | 
| 156 std::string | 161 std::string | 
| 157 ChromeAutocompleteProviderClient::GetEmbedderRepresentationOfAboutScheme() { | 162 ChromeAutocompleteProviderClient::GetEmbedderRepresentationOfAboutScheme() { | 
| 158   return content::kChromeUIScheme; | 163   return content::kChromeUIScheme; | 
| 159 } | 164 } | 
| 160 | 165 | 
| 161 std::vector<base::string16> ChromeAutocompleteProviderClient::GetBuiltinURLs() { | 166 std::vector<base::string16> ChromeAutocompleteProviderClient::GetBuiltinURLs() { | 
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 236   image_service->Prefetch(url); | 241   image_service->Prefetch(url); | 
| 237 } | 242 } | 
| 238 | 243 | 
| 239 void ChromeAutocompleteProviderClient::OnAutocompleteControllerResultReady( | 244 void ChromeAutocompleteProviderClient::OnAutocompleteControllerResultReady( | 
| 240     AutocompleteController* controller) { | 245     AutocompleteController* controller) { | 
| 241   content::NotificationService::current()->Notify( | 246   content::NotificationService::current()->Notify( | 
| 242       chrome::NOTIFICATION_AUTOCOMPLETE_CONTROLLER_RESULT_READY, | 247       chrome::NOTIFICATION_AUTOCOMPLETE_CONTROLLER_RESULT_READY, | 
| 243       content::Source<AutocompleteController>(controller), | 248       content::Source<AutocompleteController>(controller), | 
| 244       content::NotificationService::NoDetails()); | 249       content::NotificationService::NoDetails()); | 
| 245 } | 250 } | 
| OLD | NEW | 
|---|