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

Unified Diff: chrome/browser/net/chrome_url_request_context.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/net/chrome_url_request_context.h ('k') | chrome/browser/net/load_time_stats.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/chrome_url_request_context.cc
===================================================================
--- chrome/browser/net/chrome_url_request_context.cc (revision 152373)
+++ chrome/browser/net/chrome_url_request_context.cc (working copy)
@@ -10,7 +10,7 @@
#include "base/message_loop_proxy.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/io_thread.h"
-#include "chrome/browser/net/cache_stats.h"
+#include "chrome/browser/net/load_time_stats.h"
#include "chrome/browser/prefs/pref_service.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_io_data.h"
@@ -293,19 +293,19 @@
ChromeURLRequestContext::ChromeURLRequestContext(
ContextType type,
- chrome_browser_net::CacheStats* cache_stats)
+ chrome_browser_net::LoadTimeStats* load_time_stats)
: ALLOW_THIS_IN_INITIALIZER_LIST(weak_factory_(this)),
is_incognito_(false),
- cache_stats_(cache_stats) {
+ load_time_stats_(load_time_stats) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
- if (cache_stats_)
- cache_stats_->RegisterURLRequestContext(this, type);
+ if (load_time_stats_)
+ load_time_stats_->RegisterURLRequestContext(this, type);
}
ChromeURLRequestContext::~ChromeURLRequestContext() {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
- if (cache_stats_)
- cache_stats_->UnregisterURLRequestContext(this);
+ if (load_time_stats_)
+ load_time_stats_->UnregisterURLRequestContext(this);
}
void ChromeURLRequestContext::CopyFrom(ChromeURLRequestContext* other) {
« no previous file with comments | « chrome/browser/net/chrome_url_request_context.h ('k') | chrome/browser/net/load_time_stats.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698