| 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_permission_manager.h" | 8 #include "android_webview/browser/aw_permission_manager.h" |
| 9 #include "android_webview/browser/aw_pref_store.h" | 9 #include "android_webview/browser/aw_pref_store.h" |
| 10 #include "android_webview/browser/aw_quota_manager_bridge.h" | 10 #include "android_webview/browser/aw_quota_manager_bridge.h" |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 cache_path, cookie_store_.get(), | 155 cache_path, cookie_store_.get(), |
| 156 make_scoped_ptr(CreateProxyConfigService()).Pass()); | 156 make_scoped_ptr(CreateProxyConfigService()).Pass()); |
| 157 | 157 |
| 158 data_reduction_proxy_io_data_.reset( | 158 data_reduction_proxy_io_data_.reset( |
| 159 new data_reduction_proxy::DataReductionProxyIOData( | 159 new data_reduction_proxy::DataReductionProxyIOData( |
| 160 data_reduction_proxy::Client::WEBVIEW_ANDROID, | 160 data_reduction_proxy::Client::WEBVIEW_ANDROID, |
| 161 data_reduction_proxy::DataReductionProxyParams::kAllowed, | 161 data_reduction_proxy::DataReductionProxyParams::kAllowed, |
| 162 url_request_context_getter_->GetNetLog(), | 162 url_request_context_getter_->GetNetLog(), |
| 163 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO), | 163 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO), |
| 164 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI), | 164 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI), |
| 165 false /* enable */, |
| 165 false /* enable_quic */, | 166 false /* enable_quic */, |
| 166 GetUserAgent())); | 167 GetUserAgent())); |
| 167 data_reduction_proxy_settings_.reset( | 168 data_reduction_proxy_settings_.reset( |
| 168 new data_reduction_proxy::DataReductionProxySettings()); | 169 new data_reduction_proxy::DataReductionProxySettings()); |
| 169 data_reduction_proxy_service_.reset( | 170 data_reduction_proxy_service_.reset( |
| 170 new data_reduction_proxy::DataReductionProxyService( | 171 new data_reduction_proxy::DataReductionProxyService( |
| 171 scoped_ptr< | 172 scoped_ptr< |
| 172 data_reduction_proxy::DataReductionProxyCompressionStats>(), | 173 data_reduction_proxy::DataReductionProxyCompressionStats>(), |
| 173 data_reduction_proxy_settings_.get(), GetAwURLRequestContext(), | 174 data_reduction_proxy_settings_.get(), GetAwURLRequestContext(), |
| 174 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO))); | 175 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO))); |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 return; | 382 return; |
| 382 // We don't care about commit_delay for now. It is just a dummy value. | 383 // We don't care about commit_delay for now. It is just a dummy value. |
| 383 base::TimeDelta commit_delay = base::TimeDelta::FromMinutes(60); | 384 base::TimeDelta commit_delay = base::TimeDelta::FromMinutes(60); |
| 384 data_reduction_proxy_service->EnableCompressionStatisticsLogging( | 385 data_reduction_proxy_service->EnableCompressionStatisticsLogging( |
| 385 user_pref_service_.get(), | 386 user_pref_service_.get(), |
| 386 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI), | 387 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI), |
| 387 commit_delay); | 388 commit_delay); |
| 388 } | 389 } |
| 389 | 390 |
| 390 } // namespace android_webview | 391 } // namespace android_webview |
| OLD | NEW |