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

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

Issue 6825038: Create a content::ResourceContext. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix dependencies. Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/message_loop.h" 7 #include "base/message_loop.h"
8 #include "base/message_loop_proxy.h" 8 #include "base/message_loop_proxy.h"
9 #include "chrome/browser/browser_process.h" 9 #include "chrome/browser/browser_process.h"
10 #include "chrome/browser/io_thread.h" 10 #include "chrome/browser/io_thread.h"
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 : is_incognito_(false) { 367 : is_incognito_(false) {
368 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 368 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
369 } 369 }
370 370
371 void ChromeURLRequestContext::CopyFrom(ChromeURLRequestContext* other) { 371 void ChromeURLRequestContext::CopyFrom(ChromeURLRequestContext* other) {
372 URLRequestContext::CopyFrom(other); 372 URLRequestContext::CopyFrom(other);
373 373
374 // Copy ChromeURLRequestContext parameters. 374 // Copy ChromeURLRequestContext parameters.
375 set_user_script_dir_path(other->user_script_dir_path()); 375 set_user_script_dir_path(other->user_script_dir_path());
376 set_appcache_service(other->appcache_service()); 376 set_appcache_service(other->appcache_service());
377 set_database_tracker(other->database_tracker());
378 set_host_content_settings_map(other->host_content_settings_map()); 377 set_host_content_settings_map(other->host_content_settings_map());
379 set_host_zoom_map(other->host_zoom_map_); 378 set_host_zoom_map(other->host_zoom_map_);
380 set_blob_storage_context(other->blob_storage_context()); 379 set_blob_storage_context(other->blob_storage_context());
381 set_file_system_context(other->file_system_context()); 380 set_file_system_context(other->file_system_context());
382 set_extension_info_map(other->extension_info_map_); 381 set_extension_info_map(other->extension_info_map_);
383 set_prerender_manager(other->prerender_manager()); 382 set_prerender_manager(other->prerender_manager());
384 // ChromeURLDataManagerBackend is unique per context. 383 // ChromeURLDataManagerBackend is unique per context.
385 set_is_incognito(other->is_incognito()); 384 set_is_incognito(other->is_incognito());
386 } 385 }
387 386
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 net::HttpUtil::GenerateAcceptLanguageHeader(accept_language)); 431 net::HttpUtil::GenerateAcceptLanguageHeader(accept_language));
433 } 432 }
434 433
435 void ChromeURLRequestContext::OnDefaultCharsetChange( 434 void ChromeURLRequestContext::OnDefaultCharsetChange(
436 const std::string& default_charset) { 435 const std::string& default_charset) {
437 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 436 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
438 set_referrer_charset(default_charset); 437 set_referrer_charset(default_charset);
439 set_accept_charset( 438 set_accept_charset(
440 net::HttpUtil::GenerateAcceptCharsetHeader(default_charset)); 439 net::HttpUtil::GenerateAcceptCharsetHeader(default_charset));
441 } 440 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698