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

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

Issue 7838030: WIP: Introduce per-TabContents PrefService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 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.h
diff --git a/chrome/browser/profiles/profile.h b/chrome/browser/profiles/profile.h
index c2ba480cdc5f74c232749f987fdaa115965cf0d3..12c919b2e69638181c5f86e938418dbd7c6aa666 100644
--- a/chrome/browser/profiles/profile.h
+++ b/chrome/browser/profiles/profile.h
@@ -35,13 +35,13 @@ class SandboxedFileSystemContext;
}
namespace history {
-class TopSites;
class ShortcutsBackend;
+class TopSites;
}
namespace net {
-class TransportSecurityState;
class SSLConfigService;
+class TransportSecurityState;
}
namespace prerender {
@@ -82,6 +82,7 @@ class ProtocolHandlerRegistry;
class SQLitePersistentCookieStore;
class SSLConfigServiceManager;
class SpellCheckHost;
+class TabContents;
class TemplateURLFetcher;
class TokenService;
class TransportSecurityPersister;
@@ -344,6 +345,16 @@ class Profile : public content::BrowserContext {
// time that this method is called.
virtual PrefService* GetOffTheRecordPrefs() = 0;
+ // Retrieves a pointer to a special PrefService with overrides per
+ // TabContents. Non-user pref sources such as policy, command-line and
+ // extensions are shared with the profile's main pref service.
+ //
+ // Ideally, this would live in a per-TabContest context object, but since on
Avi (use Gerrit) 2011/09/07 18:00:56 What is a "per-TabContent (typo) context object"?
Mattias Nissler (ping if slow) 2011/09/07 18:24:46 Ah, I wasn't aware of TabContentsWrapper :) I'll m
+ // the Chrome side there is no per-TabContents context object, it's here in
+ // Profile, which is the content::BrowserContext shared by potentially several
+ // TabContents.
+ virtual PrefService* GetPrefsForTabContents(TabContents* contents) = 0;
Mattias Nissler (ping if slow) 2011/09/07 17:54:24 This is the accessor for getting the per-TabConten
+
// Returns the TemplateURLFetcher for this profile. This is owned by the
// profile.
virtual TemplateURLFetcher* GetTemplateURLFetcher() = 0;

Powered by Google App Engine
This is Rietveld 408576698