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

Unified Diff: chrome/browser/profiles/profile_impl_io_data.cc

Issue 10736066: Adding histograms showing fraction of page load times (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/profiles/profile_impl_io_data.h ('k') | chrome/browser/profiles/profile_io_data.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_impl_io_data.cc
===================================================================
--- chrome/browser/profiles/profile_impl_io_data.cc (revision 148459)
+++ chrome/browser/profiles/profile_impl_io_data.cc (working copy)
@@ -267,7 +267,8 @@
ProfileParams* profile_params) const {
ChromeURLRequestContext* main_context = main_request_context();
ChromeURLRequestContext* extensions_context = extensions_request_context();
- media_request_context_.reset(new ChromeURLRequestContext);
+ media_request_context_.reset(new ChromeURLRequestContext(
+ ChromeURLRequestContext::CONTEXT_TYPE_MEDIA, cache_stats()));
IOThread* const io_thread = profile_params->io_thread;
IOThread::Globals* const io_thread_globals = io_thread->globals();
@@ -477,7 +478,7 @@
ProfileImplIOData::InitializeAppRequestContext(
ChromeURLRequestContext* main_context,
const std::string& app_id) const {
- AppRequestContext* context = new AppRequestContext;
+ AppRequestContext* context = new AppRequestContext(cache_stats());
// If this is for a guest process, we should not persist cookies and http
// cache.
@@ -564,6 +565,11 @@
return app_request_context;
}
+chrome_browser_net::CacheStats* ProfileImplIOData::GetCacheStats(
+ IOThread::Globals* io_thread_globals) const {
+ return io_thread_globals->cache_stats.get();
+}
+
void ProfileImplIOData::CreateFtpProtocolHandler(
net::URLRequestJobFactory* job_factory,
net::FtpAuthCache* ftp_auth_cache) const {
« no previous file with comments | « chrome/browser/profiles/profile_impl_io_data.h ('k') | chrome/browser/profiles/profile_io_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698