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

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

Issue 10416002: Seculative resource prefetching for URLs CL. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Moving to WeakPtrs and RVHD. Created 8 years, 7 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
Index: chrome/browser/profiles/profile_io_data.h
diff --git a/chrome/browser/profiles/profile_io_data.h b/chrome/browser/profiles/profile_io_data.h
index f4702bbb65673bba496ececdeda67c292c177537..4130c3c199af684d034d6139aee389c4634c750a 100644
--- a/chrome/browser/profiles/profile_io_data.h
+++ b/chrome/browser/profiles/profile_io_data.h
@@ -31,6 +31,7 @@ class TransportSecurityPersister;
namespace chrome_browser_net {
class HttpServerPropertiesManager;
+class ResourcePrefetchPredictorObserver;
}
namespace net {
@@ -118,6 +119,11 @@ class ProfileIOData {
return is_incognito_;
}
+ chrome_browser_net::ResourcePrefetchPredictorObserver*
+ resource_prefetch_predictor_observer() const {
+ return resource_prefetch_predictor_observer_.get();
+ }
+
// Initialize the member needed to track the metrics enabled state. This is
// only to be called on the UI thread.
void InitializeMetricsEnabledStateOnUIThread();
@@ -158,6 +164,8 @@ class ProfileIOData {
scoped_refptr<net::SSLConfigService> ssl_config_service;
scoped_refptr<net::CookieMonster::Delegate> cookie_monster_delegate;
scoped_refptr<ExtensionInfoMap> extension_info_map;
+ scoped_ptr<chrome_browser_net::ResourcePrefetchPredictorObserver>
+ resource_prefetch_predictor_observer_;
#if defined(ENABLE_NOTIFICATIONS)
DesktopNotificationService* notification_service;
@@ -351,6 +359,9 @@ class ProfileIOData {
mutable scoped_refptr<ExtensionInfoMap> extension_info_map_;
mutable scoped_refptr<CookieSettings> cookie_settings_;
+ mutable scoped_ptr<chrome_browser_net::ResourcePrefetchPredictorObserver>
+ resource_prefetch_predictor_observer_;
+
// TODO(jhawkins): Remove once crbug.com/102004 is fixed.
bool initialized_on_UI_thread_;

Powered by Google App Engine
This is Rietveld 408576698