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

Unified Diff: chrome/browser/policy/managed_mode_policy_provider_factory.h

Issue 10510006: Add ManagedModePolicyProvider and extension API to get and set policies. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: test Created 8 years, 6 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/policy/managed_mode_policy_provider_factory.h
diff --git a/chrome/browser/policy/managed_mode_policy_provider_factory.h b/chrome/browser/policy/managed_mode_policy_provider_factory.h
new file mode 100644
index 0000000000000000000000000000000000000000..dba7695b159305418290cb4e80f2ba227af184ca
--- /dev/null
+++ b/chrome/browser/policy/managed_mode_policy_provider_factory.h
@@ -0,0 +1,34 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_POLICY_MANAGED_MODE_POLICY_PROVIDER_FACTORY_H_
+#define CHROME_BROWSER_POLICY_MANAGED_MODE_POLICY_PROVIDER_FACTORY_H_
+#pragma once
+
+#include "base/memory/singleton.h"
+#include "chrome/browser/profiles/profile_keyed_service_factory.h"
+
+class Profile;
+
+namespace policy {
+class ManagedModePolicyProvider;
+}
+
+class ManagedModePolicyProviderFactory : public ProfileKeyedServiceFactory {
+ public:
+ static ManagedModePolicyProviderFactory* GetInstance();
+
+ static policy::ManagedModePolicyProvider* GetForProfile(Profile* profile);
+
+ private:
+ friend struct DefaultSingletonTraits<ManagedModePolicyProviderFactory>;
+
+ ManagedModePolicyProviderFactory();
+ virtual ~ManagedModePolicyProviderFactory();
+
+ virtual ProfileKeyedService* BuildServiceInstanceFor(
+ Profile* profile) const OVERRIDE;
Mattias Nissler (ping if slow) 2012/06/13 04:53:44 DISALLOW_COPY_AND_ASSIGN?
Bernhard Bauer 2012/06/13 14:42:29 Done (I always forget this one).
+};
+
+#endif // CHROME_BROWSER_POLICY_MANAGED_MODE_POLICY_PROVIDER_FACTORY_H_

Powered by Google App Engine
This is Rietveld 408576698