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

Unified Diff: chrome/browser/net/chrome_url_request_context.h

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/net/chrome_network_delegate.cc ('k') | chrome/browser/net/chrome_url_request_context.cc » ('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.h
===================================================================
--- chrome/browser/net/chrome_url_request_context.h (revision 148459)
+++ chrome/browser/net/chrome_url_request_context.h (working copy)
@@ -20,6 +20,10 @@
class Profile;
class ProfileIOData;
+namespace chrome_browser_net {
+class CacheStats;
+}
+
// Subclass of net::URLRequestContext which can be used to store extra
// information for requests.
//
@@ -27,7 +31,14 @@
// including the constructor and destructor.
class ChromeURLRequestContext : public net::URLRequestContext {
public:
- ChromeURLRequestContext();
+ enum ContextType {
+ CONTEXT_TYPE_MAIN,
+ CONTEXT_TYPE_MEDIA,
+ CONTEXT_TYPE_EXTENSIONS,
+ CONTEXT_TYPE_APP
+ };
+ ChromeURLRequestContext(ContextType type,
+ chrome_browser_net::CacheStats* cache_stats);
virtual ~ChromeURLRequestContext();
base::WeakPtr<ChromeURLRequestContext> GetWeakPtr() {
@@ -70,6 +81,7 @@
ChromeURLDataManagerBackend* chrome_url_data_manager_backend_;
bool is_incognito_;
+ chrome_browser_net::CacheStats* cache_stats_;
// ---------------------------------------------------------------------------
// Important: When adding any new members above, consider whether they need to
« no previous file with comments | « chrome/browser/net/chrome_network_delegate.cc ('k') | chrome/browser/net/chrome_url_request_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698