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

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

Issue 282103004: Rename ProtocolInterceptJobFactory and make it not use ProtocolHandlers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Response to jam's comments (And a merge) Created 6 years, 6 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 | Annotate | Revision Log
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/off_the_record_profile_impl.h" 5 #include "chrome/browser/profiles/off_the_record_profile_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 return DownloadServiceFactory::GetForBrowserContext(this)-> 276 return DownloadServiceFactory::GetForBrowserContext(this)->
277 GetDownloadManagerDelegate(); 277 GetDownloadManagerDelegate();
278 } 278 }
279 279
280 net::URLRequestContextGetter* OffTheRecordProfileImpl::GetRequestContext() { 280 net::URLRequestContextGetter* OffTheRecordProfileImpl::GetRequestContext() {
281 return GetDefaultStoragePartition(this)->GetURLRequestContext(); 281 return GetDefaultStoragePartition(this)->GetURLRequestContext();
282 } 282 }
283 283
284 net::URLRequestContextGetter* OffTheRecordProfileImpl::CreateRequestContext( 284 net::URLRequestContextGetter* OffTheRecordProfileImpl::CreateRequestContext(
285 content::ProtocolHandlerMap* protocol_handlers, 285 content::ProtocolHandlerMap* protocol_handlers,
286 content::ProtocolHandlerScopedVector protocol_interceptors) { 286 content::URLRequestInterceptorScopedVector request_interceptors) {
287 return io_data_->CreateMainRequestContextGetter( 287 return io_data_->CreateMainRequestContextGetter(
288 protocol_handlers, protocol_interceptors.Pass()).get(); 288 protocol_handlers, request_interceptors.Pass()).get();
289 } 289 }
290 290
291 net::URLRequestContextGetter* 291 net::URLRequestContextGetter*
292 OffTheRecordProfileImpl::GetRequestContextForRenderProcess( 292 OffTheRecordProfileImpl::GetRequestContextForRenderProcess(
293 int renderer_child_id) { 293 int renderer_child_id) {
294 content::RenderProcessHost* rph = content::RenderProcessHost::FromID( 294 content::RenderProcessHost* rph = content::RenderProcessHost::FromID(
295 renderer_child_id); 295 renderer_child_id);
296 return rph->GetStoragePartition()->GetURLRequestContext(); 296 return rph->GetStoragePartition()->GetURLRequestContext();
297 } 297 }
298 298
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 net::URLRequestContextGetter* 380 net::URLRequestContextGetter*
381 OffTheRecordProfileImpl::GetRequestContextForExtensions() { 381 OffTheRecordProfileImpl::GetRequestContextForExtensions() {
382 return io_data_->GetExtensionsRequestContextGetter().get(); 382 return io_data_->GetExtensionsRequestContextGetter().get();
383 } 383 }
384 384
385 net::URLRequestContextGetter* 385 net::URLRequestContextGetter*
386 OffTheRecordProfileImpl::CreateRequestContextForStoragePartition( 386 OffTheRecordProfileImpl::CreateRequestContextForStoragePartition(
387 const base::FilePath& partition_path, 387 const base::FilePath& partition_path,
388 bool in_memory, 388 bool in_memory,
389 content::ProtocolHandlerMap* protocol_handlers, 389 content::ProtocolHandlerMap* protocol_handlers,
390 content::ProtocolHandlerScopedVector protocol_interceptors) { 390 content::URLRequestInterceptorScopedVector request_interceptors) {
391 return io_data_->CreateIsolatedAppRequestContextGetter( 391 return io_data_->CreateIsolatedAppRequestContextGetter(
392 partition_path, 392 partition_path,
393 in_memory, 393 in_memory,
394 protocol_handlers, 394 protocol_handlers,
395 protocol_interceptors.Pass()).get(); 395 request_interceptors.Pass()).get();
396 } 396 }
397 397
398 content::ResourceContext* OffTheRecordProfileImpl::GetResourceContext() { 398 content::ResourceContext* OffTheRecordProfileImpl::GetResourceContext() {
399 return io_data_->GetResourceContext(); 399 return io_data_->GetResourceContext();
400 } 400 }
401 401
402 net::SSLConfigService* OffTheRecordProfileImpl::GetSSLConfigService() { 402 net::SSLConfigService* OffTheRecordProfileImpl::GetSSLConfigService() {
403 return profile_->GetSSLConfigService(); 403 return profile_->GetSSLConfigService();
404 } 404 }
405 405
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
583 PrefProxyConfigTracker* OffTheRecordProfileImpl::CreateProxyConfigTracker() { 583 PrefProxyConfigTracker* OffTheRecordProfileImpl::CreateProxyConfigTracker() {
584 #if defined(OS_CHROMEOS) 584 #if defined(OS_CHROMEOS)
585 if (chromeos::ProfileHelper::IsSigninProfile(this)) { 585 if (chromeos::ProfileHelper::IsSigninProfile(this)) {
586 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfLocalState( 586 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfLocalState(
587 g_browser_process->local_state()); 587 g_browser_process->local_state());
588 } 588 }
589 #endif // defined(OS_CHROMEOS) 589 #endif // defined(OS_CHROMEOS)
590 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfProfile( 590 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfProfile(
591 GetPrefs(), g_browser_process->local_state()); 591 GetPrefs(), g_browser_process->local_state());
592 } 592 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/off_the_record_profile_impl.h ('k') | chrome/browser/profiles/off_the_record_profile_io_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698