| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "android_webview/browser/aw_browser_context.h" | 5 #include "android_webview/browser/aw_browser_context.h" |
| 6 | 6 |
| 7 #include "android_webview/browser/aw_form_database_service.h" | 7 #include "android_webview/browser/aw_form_database_service.h" |
| 8 #include "android_webview/browser/aw_pref_store.h" | 8 #include "android_webview/browser/aw_pref_store.h" |
| 9 #include "android_webview/browser/aw_quota_manager_bridge.h" | 9 #include "android_webview/browser/aw_quota_manager_bridge.h" |
| 10 #include "android_webview/browser/aw_resource_context.h" | 10 #include "android_webview/browser/aw_resource_context.h" |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 } | 174 } |
| 175 | 175 |
| 176 AwFormDatabaseService* AwBrowserContext::GetFormDatabaseService() { | 176 AwFormDatabaseService* AwBrowserContext::GetFormDatabaseService() { |
| 177 return form_database_service_.get(); | 177 return form_database_service_.get(); |
| 178 } | 178 } |
| 179 | 179 |
| 180 DataReductionProxySettings* AwBrowserContext::GetDataReductionProxySettings() { | 180 DataReductionProxySettings* AwBrowserContext::GetDataReductionProxySettings() { |
| 181 return data_reduction_proxy_settings_.get(); | 181 return data_reduction_proxy_settings_.get(); |
| 182 } | 182 } |
| 183 | 183 |
| 184 AwURLRequestContextGetter* AwBrowserContext::GetAwURLRequestContext() { |
| 185 return url_request_context_getter_.get(); |
| 186 } |
| 187 |
| 184 // Create user pref service for autofill functionality. | 188 // Create user pref service for autofill functionality. |
| 185 void AwBrowserContext::CreateUserPrefServiceIfNecessary() { | 189 void AwBrowserContext::CreateUserPrefServiceIfNecessary() { |
| 186 if (user_pref_service_) | 190 if (user_pref_service_) |
| 187 return; | 191 return; |
| 188 | 192 |
| 189 PrefRegistrySimple* pref_registry = new PrefRegistrySimple(); | 193 PrefRegistrySimple* pref_registry = new PrefRegistrySimple(); |
| 190 // We only use the autocomplete feature of the Autofill, which is | 194 // We only use the autocomplete feature of the Autofill, which is |
| 191 // controlled via the manager_delegate. We don't use the rest | 195 // controlled via the manager_delegate. We don't use the rest |
| 192 // of autofill, which is why it is hardcoded as disabled here. | 196 // of autofill, which is why it is hardcoded as disabled here. |
| 193 pref_registry->RegisterBooleanPref( | 197 pref_registry->RegisterBooleanPref( |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 | 291 |
| 288 void AwBrowserContext::RebuildTable( | 292 void AwBrowserContext::RebuildTable( |
| 289 const scoped_refptr<URLEnumerator>& enumerator) { | 293 const scoped_refptr<URLEnumerator>& enumerator) { |
| 290 // Android WebView rebuilds from WebChromeClient.getVisitedHistory. The client | 294 // Android WebView rebuilds from WebChromeClient.getVisitedHistory. The client |
| 291 // can change in the lifetime of this WebView and may not yet be set here. | 295 // can change in the lifetime of this WebView and may not yet be set here. |
| 292 // Therefore this initialization path is not used. | 296 // Therefore this initialization path is not used. |
| 293 enumerator->OnComplete(true); | 297 enumerator->OnComplete(true); |
| 294 } | 298 } |
| 295 | 299 |
| 296 } // namespace android_webview | 300 } // namespace android_webview |
| OLD | NEW |