Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(119)

Side by Side Diff: chrome/browser/profiles/profile_impl_io_data.cc

Issue 981633002: Created new URLRequestContext for secure proxy check (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved Secure Proxy check to separate class. Addressed comments. Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "chrome/browser/profiles/profile_impl_io_data.h" 5 #include "chrome/browser/profiles/profile_impl_io_data.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 if (io_data_->domain_reliability_monitor_) 183 if (io_data_->domain_reliability_monitor_)
184 io_data_->domain_reliability_monitor_->MoveToNetworkThread(); 184 io_data_->domain_reliability_monitor_->MoveToNetworkThread();
185 185
186 // TODO(tbansal): Move this to IO thread once the data reduction proxy 186 // TODO(tbansal): Move this to IO thread once the data reduction proxy
187 // params are unified into a single object. 187 // params are unified into a single object.
188 bool enable_quic_for_data_reduction_proxy = 188 bool enable_quic_for_data_reduction_proxy =
189 IOThread::ShouldEnableQuicForDataReductionProxy(); 189 IOThread::ShouldEnableQuicForDataReductionProxy();
190 190
191 io_data_->set_data_reduction_proxy_io_data( 191 io_data_->set_data_reduction_proxy_io_data(
192 CreateDataReductionProxyChromeIOData( 192 CreateDataReductionProxyChromeIOData(
193 profile_->GetRequestContext(),
193 g_browser_process->io_thread()->net_log(), profile_->GetPrefs(), 194 g_browser_process->io_thread()->net_log(), profile_->GetPrefs(),
194 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO), 195 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO),
195 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI), 196 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI),
196 enable_quic_for_data_reduction_proxy) 197 enable_quic_for_data_reduction_proxy)
197 .Pass()); 198 .Pass());
198 199
199 DataReductionProxyChromeSettingsFactory::GetForBrowserContext(profile_)-> 200 DataReductionProxyChromeSettingsFactory::GetForBrowserContext(profile_)->
200 InitDataReductionProxySettings( 201 InitDataReductionProxySettings(
201 io_data_->data_reduction_proxy_io_data(), profile_->GetPrefs(), 202 io_data_->data_reduction_proxy_io_data(), profile_->GetPrefs(),
202 profile_->GetRequestContext(),
203 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI)); 203 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI));
204 } 204 }
205 205
206 content::ResourceContext* 206 content::ResourceContext*
207 ProfileImplIOData::Handle::GetResourceContext() const { 207 ProfileImplIOData::Handle::GetResourceContext() const {
208 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 208 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
209 LazyInitialize(); 209 LazyInitialize();
210 return GetResourceContextNoInit(); 210 return GetResourceContextNoInit();
211 } 211 }
212 212
(...skipping 636 matching lines...) Expand 10 before | Expand all | Expand 10 after
849 const base::Closure& completion) { 849 const base::Closure& completion) {
850 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 850 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
851 DCHECK(initialized()); 851 DCHECK(initialized());
852 852
853 DCHECK(transport_security_state()); 853 DCHECK(transport_security_state());
854 // Completes synchronously. 854 // Completes synchronously.
855 transport_security_state()->DeleteAllDynamicDataSince(time); 855 transport_security_state()->DeleteAllDynamicDataSince(time);
856 DCHECK(http_server_properties_manager_); 856 DCHECK(http_server_properties_manager_);
857 http_server_properties_manager_->Clear(completion); 857 http_server_properties_manager_->Clear(completion);
858 } 858 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698