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

Unified Diff: chrome/browser/extensions/permissions_based_management_policy_provider.h

Issue 595363002: Add policy controlled permission block list for extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ext-fix
Patch Set: more minor format fix Created 6 years, 2 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/extensions/permissions_based_management_policy_provider.h
diff --git a/chrome/browser/extensions/permissions_based_management_policy_provider.h b/chrome/browser/extensions/permissions_based_management_policy_provider.h
new file mode 100644
index 0000000000000000000000000000000000000000..ea152d14fe68ecf08efe83ab67037d5b9a14ba5b
--- /dev/null
+++ b/chrome/browser/extensions/permissions_based_management_policy_provider.h
@@ -0,0 +1,36 @@
+// Copyright 2014 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_EXTENSIONS_PERMISSIONS_BASED_MANAGEMENT_POLICY_PROVIDER_H_
+#define CHROME_BROWSER_EXTENSIONS_PERMISSIONS_BASED_MANAGEMENT_POLICY_PROVIDER_H_
+
+#include "base/macros.h"
+#include "extensions/browser/management_policy.h"
+
+namespace extensions {
+
+class Extension;
+class ExtensionManagement;
+
+class PermissionsBasedManagementPolicyProvider
Joao da Silva 2014/10/15 14:39:26 Document this class
binjin 2014/10/16 18:13:58 Done.
+ : public ManagementPolicy::Provider {
+ public:
+ explicit PermissionsBasedManagementPolicyProvider(
+ ExtensionManagement* settings);
+ virtual ~PermissionsBasedManagementPolicyProvider();
+
+ // ManagementPolicy::Provider implementation.
+ virtual std::string GetDebugPolicyProviderName() const OVERRIDE;
Joao da Silva 2014/10/15 14:39:26 override (also below)
binjin 2014/10/16 18:13:58 Done.
+ virtual bool UserMayLoad(const Extension* extension,
+ base::string16* error) const OVERRIDE;
+
+ private:
+ ExtensionManagement* settings_;
+
+ DISALLOW_COPY_AND_ASSIGN(PermissionsBasedManagementPolicyProvider);
+};
+
+} // namespace extensions
+
+#endif // CHROME_BROWSER_EXTENSIONS_PERMISSIONS_BASED_MANAGEMENT_POLICY_PROVIDER_H_

Powered by Google App Engine
This is Rietveld 408576698