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

Unified Diff: chrome/browser/profiles/profile_io_data.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/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 148459)
+++ chrome/browser/profiles/profile_io_data.h (working copy)
@@ -14,6 +14,7 @@
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "base/synchronization/lock.h"
+#include "chrome/browser/io_thread.h"
#include "chrome/browser/net/chrome_url_request_context.h"
#include "chrome/browser/prefs/pref_member.h"
#include "content/public/browser/resource_context.h"
@@ -24,12 +25,12 @@
class DesktopNotificationService;
class ExtensionInfoMap;
class HostContentSettingsMap;
-class IOThread;
class Profile;
class ProtocolHandlerRegistry;
class TransportSecurityPersister;
namespace chrome_browser_net {
+class CacheStats;
class HttpServerPropertiesManager;
class ResourcePrefetchPredictorObserver;
}
@@ -132,7 +133,7 @@
protected:
class AppRequestContext : public ChromeURLRequestContext {
public:
- AppRequestContext();
+ explicit AppRequestContext(chrome_browser_net::CacheStats* cache_stats);
void SetCookieStore(net::CookieStore* cookie_store);
void SetHttpTransactionFactory(net::HttpTransactionFactory* http_factory);
@@ -235,6 +236,10 @@
return main_request_context_.get();
}
+ chrome_browser_net::CacheStats* cache_stats() const {
+ return cache_stats_;
+ }
+
// Destroys the ResourceContext first, to cancel any URLRequests that are
// using it still, before we destroy the member variables that those
// URLRequests may be accessing.
@@ -287,6 +292,10 @@
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(
+ IOThread::Globals* io_thread_globals) const = 0;
+
// The order *DOES* matter for the majority of these member variables, so
// don't move them around unless you know what you're doing!
// General rules:
@@ -359,6 +368,8 @@
mutable scoped_ptr<chrome_browser_net::ResourcePrefetchPredictorObserver>
resource_prefetch_predictor_observer_;
+ mutable chrome_browser_net::CacheStats* cache_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