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

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

Issue 10855209: Refactoring: ProtocolHandler::MaybeCreateJob takes NetworkDelegate as argument (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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/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 556 matching lines...) Expand 10 before | Expand all | Expand 10 after
567 chrome_browser_net::CacheStats* ProfileImplIOData::GetCacheStats( 567 chrome_browser_net::CacheStats* ProfileImplIOData::GetCacheStats(
568 IOThread::Globals* io_thread_globals) const { 568 IOThread::Globals* io_thread_globals) const {
569 return io_thread_globals->cache_stats.get(); 569 return io_thread_globals->cache_stats.get();
570 } 570 }
571 571
572 void ProfileImplIOData::CreateFtpProtocolHandler( 572 void ProfileImplIOData::CreateFtpProtocolHandler(
573 net::URLRequestJobFactory* job_factory, 573 net::URLRequestJobFactory* job_factory,
574 net::FtpAuthCache* ftp_auth_cache) const { 574 net::FtpAuthCache* ftp_auth_cache) const {
575 job_factory->SetProtocolHandler( 575 job_factory->SetProtocolHandler(
576 chrome::kFtpScheme, 576 chrome::kFtpScheme,
577 new net::FtpProtocolHandler(network_delegate(), 577 new net::FtpProtocolHandler(ftp_factory_.get(),
578 ftp_factory_.get(),
579 ftp_auth_cache)); 578 ftp_auth_cache));
580 } 579 }
581 580
582 void ProfileImplIOData::ClearNetworkingHistorySinceOnIOThread( 581 void ProfileImplIOData::ClearNetworkingHistorySinceOnIOThread(
583 base::Time time) { 582 base::Time time) {
584 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 583 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
585 LazyInitialize(); 584 LazyInitialize();
586 585
587 DCHECK(transport_security_state()); 586 DCHECK(transport_security_state());
588 transport_security_state()->DeleteSince(time); 587 transport_security_state()->DeleteSince(time);
589 DCHECK(http_server_properties_manager()); 588 DCHECK(http_server_properties_manager());
590 http_server_properties_manager()->Clear(); 589 http_server_properties_manager()->Clear();
591 } 590 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698