summaryrefslogtreecommitdiffstats
path: root/chrome/browser/profiles/profile.h
diff options
context:
space:
mode:
authorbauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-31 14:41:55 +0000
committerbauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-31 14:41:55 +0000
commit21d3a88076587737d437cfd5d0819f0dda10c823 (patch)
tree621bbcdb56ceacdb3cb286d895fb9711000b7eb8 /chrome/browser/profiles/profile.h
parentcdaf13d1e037f0119bc8724d0907e31a2729b233 (diff)
downloadchromium_src-21d3a88076587737d437cfd5d0819f0dda10c823.zip
chromium_src-21d3a88076587737d437cfd5d0819f0dda10c823.tar.gz
chromium_src-21d3a88076587737d437cfd5d0819f0dda10c823.tar.bz2
Make PolicyService per-profile.
At the moment, all the policy services are identical, but this will allow us to add different policies per profile. BUG=128318 TEST=none Review URL: https://chromiumcodereview.appspot.com/10444008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@139783 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/profiles/profile.h')
-rw-r--r--chrome/browser/profiles/profile.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/chrome/browser/profiles/profile.h b/chrome/browser/profiles/profile.h
index 8d75eee..fb8a28b 100644
--- a/chrome/browser/profiles/profile.h
+++ b/chrome/browser/profiles/profile.h
@@ -74,6 +74,10 @@ namespace net {
class SSLConfigService;
}
+namespace policy {
+class PolicyService;
+}
+
class Profile : public content::BrowserContext {
public:
// Profile services are accessed with the following parameter. This parameter
@@ -262,10 +266,11 @@ class Profile : public content::BrowserContext {
// this profile need to be sure they refcount the returned value.
virtual history::ShortcutsBackend* GetShortcutsBackend() = 0;
+ // Returns the PolicyService that provides policies for this profile.
+ virtual policy::PolicyService* GetPolicyService() = 0;
// Retrieves a pointer to the PrefService that manages the preferences
- // for this user profile. The PrefService is lazily created the first
- // time that this method is called.
+ // for this user profile.
virtual PrefService* GetPrefs() = 0;
// Retrieves a pointer to the PrefService that manages the preferences