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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 url_request_context_getter_ = | 152 url_request_context_getter_ = |
153 new AwURLRequestContextGetter( | 153 new AwURLRequestContextGetter( |
154 cache_path, cookie_store_.get(), | 154 cache_path, cookie_store_.get(), |
155 make_scoped_ptr(CreateProxyConfigService()).Pass()); | 155 make_scoped_ptr(CreateProxyConfigService()).Pass()); |
156 | 156 |
157 data_reduction_proxy_io_data_.reset( | 157 data_reduction_proxy_io_data_.reset( |
158 new data_reduction_proxy::DataReductionProxyIOData( | 158 new data_reduction_proxy::DataReductionProxyIOData( |
159 data_reduction_proxy::Client::WEBVIEW_ANDROID, | 159 data_reduction_proxy::Client::WEBVIEW_ANDROID, |
160 data_reduction_proxy::DataReductionProxyParams::kAllowed, | 160 data_reduction_proxy::DataReductionProxyParams::kAllowed, |
161 url_request_context_getter_->GetNetLog(), | 161 url_request_context_getter_->GetNetLog(), |
| 162 GetAwURLRequestContext(), |
162 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO), | 163 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO), |
163 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI), | 164 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI), |
164 false /* enable_quic */)); | 165 false /* enable_quic */)); |
165 data_reduction_proxy_settings_.reset( | 166 data_reduction_proxy_settings_.reset( |
166 new data_reduction_proxy::DataReductionProxySettings()); | 167 new data_reduction_proxy::DataReductionProxySettings()); |
167 data_reduction_proxy_service_.reset( | 168 data_reduction_proxy_service_.reset( |
168 new data_reduction_proxy::DataReductionProxyService( | 169 new data_reduction_proxy::DataReductionProxyService( |
169 scoped_ptr< | 170 scoped_ptr< |
170 data_reduction_proxy::DataReductionProxyCompressionStats>(), | 171 data_reduction_proxy::DataReductionProxyCompressionStats>(), |
171 data_reduction_proxy_settings_.get(), GetAwURLRequestContext())); | 172 data_reduction_proxy_settings_.get())); |
172 data_reduction_proxy_io_data_->SetDataReductionProxyService( | 173 data_reduction_proxy_io_data_->SetDataReductionProxyService( |
173 data_reduction_proxy_service_->GetWeakPtr()); | 174 data_reduction_proxy_service_->GetWeakPtr()); |
174 | 175 |
175 visitedlink_master_.reset( | 176 visitedlink_master_.reset( |
176 new visitedlink::VisitedLinkMaster(this, this, false)); | 177 new visitedlink::VisitedLinkMaster(this, this, false)); |
177 visitedlink_master_->Init(); | 178 visitedlink_master_->Init(); |
178 | 179 |
179 form_database_service_.reset( | 180 form_database_service_.reset( |
180 new AwFormDatabaseService(context_storage_path_)); | 181 new AwFormDatabaseService(context_storage_path_)); |
181 } | 182 } |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
378 return; | 379 return; |
379 // We don't care about commit_delay for now. It is just a dummy value. | 380 // We don't care about commit_delay for now. It is just a dummy value. |
380 base::TimeDelta commit_delay = base::TimeDelta::FromMinutes(60); | 381 base::TimeDelta commit_delay = base::TimeDelta::FromMinutes(60); |
381 data_reduction_proxy_service->EnableCompressionStatisticsLogging( | 382 data_reduction_proxy_service->EnableCompressionStatisticsLogging( |
382 user_pref_service_.get(), | 383 user_pref_service_.get(), |
383 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI), | 384 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI), |
384 commit_delay); | 385 commit_delay); |
385 } | 386 } |
386 | 387 |
387 } // namespace android_webview | 388 } // namespace android_webview |
OLD | NEW |