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

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

Issue 9372002: Give the media context an ftp job factory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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
« 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) 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/profiles/profile_impl_io_data.h" 5 #include "chrome/browser/profiles/profile_impl_io_data.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/file_util.h" 9 #include "base/file_util.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 } 407 }
408 408
409 main_http_factory_.reset(main_cache); 409 main_http_factory_.reset(main_cache);
410 media_http_factory_.reset(media_cache); 410 media_http_factory_.reset(media_cache);
411 main_context->set_http_transaction_factory(main_cache); 411 main_context->set_http_transaction_factory(main_cache);
412 media_request_context_->set_http_transaction_factory(media_cache); 412 media_request_context_->set_http_transaction_factory(media_cache);
413 413
414 ftp_factory_.reset( 414 ftp_factory_.reset(
415 new net::FtpNetworkLayer(io_thread_globals->host_resolver.get())); 415 new net::FtpNetworkLayer(io_thread_globals->host_resolver.get()));
416 main_context->set_ftp_transaction_factory(ftp_factory_.get()); 416 main_context->set_ftp_transaction_factory(ftp_factory_.get());
417 media_request_context_->set_ftp_transaction_factory(ftp_factory_.get());
417 418
418 main_context->set_chrome_url_data_manager_backend( 419 main_context->set_chrome_url_data_manager_backend(
419 chrome_url_data_manager_backend()); 420 chrome_url_data_manager_backend());
420 421
421 main_context->set_job_factory(job_factory()); 422 main_context->set_job_factory(job_factory());
422 media_request_context_->set_job_factory(job_factory()); 423 media_request_context_->set_job_factory(job_factory());
423 extensions_context->set_job_factory(job_factory()); 424 extensions_context->set_job_factory(job_factory());
424 425
425 job_factory()->AddInterceptor( 426 job_factory()->AddInterceptor(
426 new chrome_browser_net::ConnectInterceptor(predictor_.get())); 427 new chrome_browser_net::ConnectInterceptor(predictor_.get()));
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 scoped_refptr<ChromeURLRequestContext> 504 scoped_refptr<ChromeURLRequestContext>
504 ProfileImplIOData::AcquireIsolatedAppRequestContext( 505 ProfileImplIOData::AcquireIsolatedAppRequestContext(
505 scoped_refptr<ChromeURLRequestContext> main_context, 506 scoped_refptr<ChromeURLRequestContext> main_context,
506 const std::string& app_id) const { 507 const std::string& app_id) const {
507 // We create per-app contexts on demand, unlike the others above. 508 // We create per-app contexts on demand, unlike the others above.
508 scoped_refptr<ChromeURLRequestContext> app_request_context = 509 scoped_refptr<ChromeURLRequestContext> app_request_context =
509 InitializeAppRequestContext(main_context, app_id); 510 InitializeAppRequestContext(main_context, app_id);
510 DCHECK(app_request_context); 511 DCHECK(app_request_context);
511 return app_request_context; 512 return app_request_context;
512 } 513 }
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