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

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

Issue 11415216: Make Blacklist::IsBlacklist asynchronous (it will need to be for safe (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix another test Created 8 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 | Annotate | Revision Log
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 "chrome/browser/extensions/management_policy.h" 8 #include "chrome/browser/extensions/management_policy.h"
9 9
10 namespace extensions { 10 namespace extensions {
11 11
12 class Blacklist; 12 class Blacklist;
13 class Extension; 13 class Extension;
14 class ExtensionPrefs; 14 class ExtensionPrefs;
15 15
16 // The standard management policy provider, which takes into account the 16 // The standard management policy provider, which takes into account the
17 // extension black/whitelists and admin black/whitelists. 17 // extension black/whitelists and admin black/whitelists.
18 class StandardManagementPolicyProvider : public ManagementPolicy::Provider { 18 class StandardManagementPolicyProvider : public ManagementPolicy::Provider {
19 public: 19 public:
20 // |prefs| and |blacklist| must outlive this. 20 // |prefs| must outlive this.
21 StandardManagementPolicyProvider(ExtensionPrefs* prefs, 21 explicit StandardManagementPolicyProvider(ExtensionPrefs* prefs);
22 Blacklist* blacklist);
23 22
24 virtual ~StandardManagementPolicyProvider(); 23 virtual ~StandardManagementPolicyProvider();
25 24
26 // ManagementPolicy::Provider implementation. 25 // ManagementPolicy::Provider implementation.
27 virtual std::string GetDebugPolicyProviderName() const OVERRIDE; 26 virtual std::string GetDebugPolicyProviderName() const OVERRIDE;
28 virtual bool UserMayLoad(const Extension* extension, 27 virtual bool UserMayLoad(const Extension* extension,
29 string16* error) const OVERRIDE; 28 string16* error) const OVERRIDE;
30 virtual bool UserMayModifySettings(const Extension* extension, 29 virtual bool UserMayModifySettings(const Extension* extension,
31 string16* error) const OVERRIDE; 30 string16* error) const OVERRIDE;
32 virtual bool MustRemainEnabled(const Extension* extension, 31 virtual bool MustRemainEnabled(const Extension* extension,
33 string16* error) const OVERRIDE; 32 string16* error) const OVERRIDE;
34 33
35 private: 34 private:
36 ExtensionPrefs* const prefs_; 35 ExtensionPrefs* const prefs_;
37
38 Blacklist* const blacklist_;
39 }; 36 };
40 37
41 } // namespace extensions 38 } // namespace extensions
42 39
43 #endif // CHROME_BROWSER_EXTENSIONS_STANDARD_MANAGEMENT_POLICY_PROVIDER_H_ 40 #endif // CHROME_BROWSER_EXTENSIONS_STANDARD_MANAGEMENT_POLICY_PROVIDER_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_system.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