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

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

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_impl_io_data.cc ('k') | chrome/browser/profiles/profile_io_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_io_data.h
===================================================================
--- chrome/browser/profiles/profile_io_data.h (revision 152373)
+++ chrome/browser/profiles/profile_io_data.h (working copy)
@@ -30,7 +30,7 @@
class TransportSecurityPersister;
namespace chrome_browser_net {
-class CacheStats;
+class LoadTimeStats;
class HttpServerPropertiesManager;
class ResourcePrefetchPredictorObserver;
}
@@ -137,7 +137,8 @@
protected:
class AppRequestContext : public ChromeURLRequestContext {
public:
- explicit AppRequestContext(chrome_browser_net::CacheStats* cache_stats);
+ explicit AppRequestContext(
+ chrome_browser_net::LoadTimeStats* load_time_stats);
void SetCookieStore(net::CookieStore* cookie_store);
void SetHttpTransactionFactory(net::HttpTransactionFactory* http_factory);
@@ -240,8 +241,8 @@
return main_request_context_.get();
}
- chrome_browser_net::CacheStats* cache_stats() const {
- return cache_stats_;
+ chrome_browser_net::LoadTimeStats* load_time_stats() const {
+ return load_time_stats_;
}
// Destroys the ResourceContext first, to cancel any URLRequests that are
@@ -296,8 +297,8 @@
ChromeURLRequestContext* main_context,
const std::string& app_id) const = 0;
- // Returns the CacheStats object to be used for this profile.
- virtual chrome_browser_net::CacheStats* GetCacheStats(
+ // Returns the LoadTimeStats object to be used for this profile.
+ virtual chrome_browser_net::LoadTimeStats* GetLoadTimeStats(
IOThread::Globals* io_thread_globals) const = 0;
// The order *DOES* matter for the majority of these member variables, so
@@ -373,7 +374,7 @@
mutable scoped_ptr<chrome_browser_net::ResourcePrefetchPredictorObserver>
resource_prefetch_predictor_observer_;
- mutable chrome_browser_net::CacheStats* cache_stats_;
+ mutable chrome_browser_net::LoadTimeStats* load_time_stats_;
// TODO(jhawkins): Remove once crbug.com/102004 is fixed.
bool initialized_on_UI_thread_;
« no previous file with comments | « chrome/browser/profiles/profile_impl_io_data.cc ('k') | chrome/browser/profiles/profile_io_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698