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

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

Issue 10834313: Add histograms for network activity, and total/cumulative (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/profiles/profile_io_data.h ('k') | chrome/browser/ui/tab_contents/tab_contents.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_io_data.cc
===================================================================
--- chrome/browser/profiles/profile_io_data.cc (revision 152373)
+++ chrome/browser/profiles/profile_io_data.cc (working copy)
@@ -28,12 +28,12 @@
#include "chrome/browser/extensions/extension_resource_protocols.h"
#include "chrome/browser/extensions/extension_system.h"
#include "chrome/browser/io_thread.h"
-#include "chrome/browser/net/cache_stats.h"
#include "chrome/browser/net/chrome_cookie_notification_details.h"
#include "chrome/browser/net/chrome_fraudulent_certificate_reporter.h"
#include "chrome/browser/net/chrome_net_log.h"
#include "chrome/browser/net/chrome_network_delegate.h"
#include "chrome/browser/net/http_server_properties_manager.h"
+#include "chrome/browser/net/load_time_stats.h"
#include "chrome/browser/net/proxy_service_factory.h"
#include "chrome/browser/net/resource_prefetch_predictor_observer.h"
#include "chrome/browser/net/transport_security_persister.h"
@@ -226,9 +226,9 @@
}
ProfileIOData::AppRequestContext::AppRequestContext(
- chrome_browser_net::CacheStats* cache_stats)
+ chrome_browser_net::LoadTimeStats* load_time_stats)
: ChromeURLRequestContext(ChromeURLRequestContext::CONTEXT_TYPE_APP,
- cache_stats) {
+ load_time_stats) {
}
void ProfileIOData::AppRequestContext::SetCookieStore(
@@ -466,16 +466,16 @@
IOThread* const io_thread = profile_params_->io_thread;
IOThread::Globals* const io_thread_globals = io_thread->globals();
const CommandLine& command_line = *CommandLine::ForCurrentProcess();
- cache_stats_ = GetCacheStats(io_thread_globals);
+ load_time_stats_ = GetLoadTimeStats(io_thread_globals);
// Create the common request contexts.
main_request_context_.reset(
new ChromeURLRequestContext(ChromeURLRequestContext::CONTEXT_TYPE_MAIN,
- cache_stats_));
+ load_time_stats_));
extensions_request_context_.reset(
new ChromeURLRequestContext(
ChromeURLRequestContext::CONTEXT_TYPE_EXTENSIONS,
- cache_stats_));
+ load_time_stats_));
chrome_url_data_manager_backend_.reset(new ChromeURLDataManagerBackend);
@@ -491,7 +491,7 @@
profile_params_->profile,
profile_params_->cookie_settings,
&enable_referrers_,
- cache_stats_));
+ load_time_stats_));
fraudulent_certificate_reporter_.reset(
new chrome_browser_net::ChromeFraudulentCertificateReporter(
« no previous file with comments | « chrome/browser/profiles/profile_io_data.h ('k') | chrome/browser/ui/tab_contents/tab_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698