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

Side by Side Diff: chrome/browser/net/chrome_url_request_context.cc

Issue 5903005: The URLRequestContext for off-the-record mode should... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/net/chrome_url_request_context.h" 5 #include "chrome/browser/net/chrome_url_request_context.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "base/message_loop_proxy.h" 9 #include "base/message_loop_proxy.h"
10 #include "base/string_number_conversions.h" 10 #include "base/string_number_conversions.h"
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 395
396 ChromeURLRequestContext* FactoryForOffTheRecord::Create() { 396 ChromeURLRequestContext* FactoryForOffTheRecord::Create() {
397 ChromeURLRequestContext* context = new ChromeURLRequestContext; 397 ChromeURLRequestContext* context = new ChromeURLRequestContext;
398 ApplyProfileParametersToContext(context); 398 ApplyProfileParametersToContext(context);
399 399
400 ChromeURLRequestContext* original_context = 400 ChromeURLRequestContext* original_context =
401 original_context_getter_->GetIOContext(); 401 original_context_getter_->GetIOContext();
402 402
403 IOThread::Globals* io_thread_globals = io_thread()->globals(); 403 IOThread::Globals* io_thread_globals = io_thread()->globals();
404 404
405 // Share the same proxy service, host resolver, and http_auth_handler_factory 405 // Share the same proxy service, host resolver, cert verifier,
406 // as the original profile. 406 // and http_auth_handler_factory as the original profile.
407 context->set_host_resolver(original_context->host_resolver()); 407 context->set_host_resolver(original_context->host_resolver());
408 context->set_cert_verifier(original_context->cert_verifier());
wtc 2010/12/17 01:11:42 agl: I noticed that you don't copy original_contex
408 context->set_proxy_service(original_context->proxy_service()); 409 context->set_proxy_service(original_context->proxy_service());
409 context->set_http_auth_handler_factory( 410 context->set_http_auth_handler_factory(
410 original_context->http_auth_handler_factory()); 411 original_context->http_auth_handler_factory());
411 412
412 net::HttpCache::BackendFactory* backend = 413 net::HttpCache::BackendFactory* backend =
413 net::HttpCache::DefaultBackend::InMemory(0); 414 net::HttpCache::DefaultBackend::InMemory(0);
414 415
415 net::HttpCache* cache = 416 net::HttpCache* cache =
416 new net::HttpCache(context->host_resolver(), 417 new net::HttpCache(context->host_resolver(),
417 context->cert_verifier(), 418 context->cert_verifier(),
(...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after
945 context->set_host_zoom_map(host_zoom_map_); 946 context->set_host_zoom_map(host_zoom_map_);
946 context->set_transport_security_state( 947 context->set_transport_security_state(
947 transport_security_state_); 948 transport_security_state_);
948 context->set_ssl_config_service(ssl_config_service_); 949 context->set_ssl_config_service(ssl_config_service_);
949 context->set_appcache_service(appcache_service_); 950 context->set_appcache_service(appcache_service_);
950 context->set_database_tracker(database_tracker_); 951 context->set_database_tracker(database_tracker_);
951 context->set_blob_storage_context(blob_storage_context_); 952 context->set_blob_storage_context(blob_storage_context_);
952 context->set_file_system_context(file_system_context_); 953 context->set_file_system_context(file_system_context_);
953 context->set_extension_info_map(extension_info_map_); 954 context->set_extension_info_map(extension_info_map_);
954 } 955 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698