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

Side by Side Diff: chrome/browser/extensions/standard_management_policy_provider.h

Issue 706623004: Add minimum version to extension management (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ext-update-url
Patch Set: rebase Created 6 years 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 unified diff | Download patch
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_EXTENSIONS_STANDARD_MANAGEMENT_POLICY_PROVIDER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_STANDARD_MANAGEMENT_POLICY_PROVIDER_H_
6 #define CHROME_BROWSER_EXTENSIONS_STANDARD_MANAGEMENT_POLICY_PROVIDER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_STANDARD_MANAGEMENT_POLICY_PROVIDER_H_
7 7
8 #include <string>
9
10 #include "base/strings/string16.h"
8 #include "extensions/browser/management_policy.h" 11 #include "extensions/browser/management_policy.h"
9 12
10 namespace extensions { 13 namespace extensions {
11 14
12 class Blacklist; 15 class Blacklist;
13 class Extension; 16 class Extension;
14 class ExtensionManagement; 17 class ExtensionManagement;
15 18
16 // The standard management policy provider, which takes into account the 19 // The standard management policy provider, which takes into account the
17 // extension black/whitelists and admin black/whitelists. 20 // extension black/whitelists and admin black/whitelists.
18 class StandardManagementPolicyProvider : public ManagementPolicy::Provider { 21 class StandardManagementPolicyProvider : public ManagementPolicy::Provider {
19 public: 22 public:
20 explicit StandardManagementPolicyProvider( 23 explicit StandardManagementPolicyProvider(
21 const ExtensionManagement* settings); 24 const ExtensionManagement* settings);
22 25
23 ~StandardManagementPolicyProvider() override; 26 ~StandardManagementPolicyProvider() override;
24 27
25 // ManagementPolicy::Provider implementation. 28 // ManagementPolicy::Provider implementation.
26 std::string GetDebugPolicyProviderName() const override; 29 std::string GetDebugPolicyProviderName() const override;
27 bool UserMayLoad(const Extension* extension, 30 bool UserMayLoad(const Extension* extension,
28 base::string16* error) const override; 31 base::string16* error) const override;
29 bool UserMayModifySettings(const Extension* extension, 32 bool UserMayModifySettings(const Extension* extension,
30 base::string16* error) const override; 33 base::string16* error) const override;
31 bool MustRemainEnabled(const Extension* extension, 34 bool MustRemainEnabled(const Extension* extension,
32 base::string16* error) const override; 35 base::string16* error) const override;
36 bool MustRemainDisabled(const Extension* extension,
37 Extension::DisableReason* reason,
38 base::string16* error) const override;
33 bool MustRemainInstalled(const Extension* extension, 39 bool MustRemainInstalled(const Extension* extension,
34 base::string16* error) const override; 40 base::string16* error) const override;
35 41
36 private: 42 private:
37 const ExtensionManagement* settings_; 43 const ExtensionManagement* settings_;
38 }; 44 };
39 45
40 } // namespace extensions 46 } // namespace extensions
41 47
42 #endif // CHROME_BROWSER_EXTENSIONS_STANDARD_MANAGEMENT_POLICY_PROVIDER_H_ 48 #endif // CHROME_BROWSER_EXTENSIONS_STANDARD_MANAGEMENT_POLICY_PROVIDER_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_service.cc ('k') | chrome/browser/extensions/standard_management_policy_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698