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

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

Issue 7467012: Modifying prefetch to account for multi-profile. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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
Index: chrome/browser/profiles/profile_io_data.h
===================================================================
--- chrome/browser/profiles/profile_io_data.h (revision 89645)
+++ chrome/browser/profiles/profile_io_data.h (working copy)
@@ -30,6 +30,10 @@
class IOThread;
class ProtocolHandlerRegistry;
+namespace chrome_browser_net {
+class Predictor;
+}
+
namespace fileapi {
class FileSystemContext;
} // namespace fileapi
@@ -96,6 +100,11 @@
HostContentSettingsMap* GetHostContentSettingsMap() const;
DesktopNotificationService* GetNotificationService() const;
+ // These functions interact with the Predictor for the associated profile.
+ // The profile_io_data_ owns this predictor.
+ chrome_browser_net::Predictor* GetPredictor();
willchan no longer on Chromium 2011/07/21 12:10:53 This should move to the ProfileImplIOData class si
rpetterson 2011/08/10 02:24:46 Done.
+ void SetPredictor(chrome_browser_net::Predictor* predictor);
+
protected:
friend class base::RefCountedThreadSafe<ProfileIOData>;
@@ -268,6 +277,8 @@
mutable scoped_refptr<RequestContext> main_request_context_;
mutable scoped_refptr<RequestContext> extensions_request_context_;
+ mutable scoped_ptr<chrome_browser_net::Predictor> predictor_;
+
DISALLOW_COPY_AND_ASSIGN(ProfileIOData);
};

Powered by Google App Engine
This is Rietveld 408576698