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 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 user_pref_service_ = pref_service_factory.Create(pref_registry).Pass(); | 273 user_pref_service_ = pref_service_factory.Create(pref_registry).Pass(); |
274 | 274 |
275 user_prefs::UserPrefs::Set(this, user_pref_service_.get()); | 275 user_prefs::UserPrefs::Set(this, user_pref_service_.get()); |
276 | 276 |
277 if (data_reduction_proxy_settings_) { | 277 if (data_reduction_proxy_settings_) { |
278 data_reduction_proxy_settings_->InitDataReductionProxySettings( | 278 data_reduction_proxy_settings_->InitDataReductionProxySettings( |
279 user_pref_service_.get(), | 279 user_pref_service_.get(), |
280 scoped_ptr<data_reduction_proxy::DataReductionProxyStatisticsPrefs>(), | 280 scoped_ptr<data_reduction_proxy::DataReductionProxyStatisticsPrefs>(), |
281 GetRequestContext(), | 281 GetRequestContext(), |
282 GetAwURLRequestContext()->GetNetLog(), | 282 GetAwURLRequestContext()->GetNetLog(), |
283 data_reduction_proxy_io_data_->event_store()); | 283 data_reduction_proxy_io_data_->event_store(), |
| 284 false /* disable QUIC for WebView */); |
284 data_reduction_proxy_settings_->MaybeActivateDataReductionProxy(true); | 285 data_reduction_proxy_settings_->MaybeActivateDataReductionProxy(true); |
285 | 286 |
286 SetDataReductionProxyEnabled(data_reduction_proxy_enabled_); | 287 SetDataReductionProxyEnabled(data_reduction_proxy_enabled_); |
287 } | 288 } |
288 } | 289 } |
289 | 290 |
290 scoped_ptr<content::ZoomLevelDelegate> | 291 scoped_ptr<content::ZoomLevelDelegate> |
291 AwBrowserContext::CreateZoomLevelDelegate( | 292 AwBrowserContext::CreateZoomLevelDelegate( |
292 const base::FilePath& partition_path) { | 293 const base::FilePath& partition_path) { |
293 return nullptr; | 294 return nullptr; |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
381 base::TimeDelta commit_delay = base::TimeDelta::FromMinutes(60); | 382 base::TimeDelta commit_delay = base::TimeDelta::FromMinutes(60); |
382 GetDataReductionProxySettings()->EnableCompressionStatisticsLogging( | 383 GetDataReductionProxySettings()->EnableCompressionStatisticsLogging( |
383 user_pref_service_.get(), | 384 user_pref_service_.get(), |
384 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI), | 385 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI), |
385 commit_delay); | 386 commit_delay); |
386 GetDataReductionProxyIOData()->SetDataReductionProxyStatisticsPrefs( | 387 GetDataReductionProxyIOData()->SetDataReductionProxyStatisticsPrefs( |
387 GetDataReductionProxySettings()->statistics_prefs()); | 388 GetDataReductionProxySettings()->statistics_prefs()); |
388 } | 389 } |
389 | 390 |
390 } // namespace android_webview | 391 } // namespace android_webview |
OLD | NEW |