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

Side by Side Diff: extensions/browser/test_management_policy.h

Issue 82773002: Move some dependencies of ExtensionService down to extensions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Presubmit check fixed Created 7 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_TEST_MANAGEMENT_POLICY_H_ 5 #ifndef EXTENSIONS_BROWSER_TEST_MANAGEMENT_POLICY_H_
6 #define CHROME_BROWSER_EXTENSIONS_TEST_MANAGEMENT_POLICY_H_ 6 #define EXTENSIONS_BROWSER_TEST_MANAGEMENT_POLICY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
11 #include "chrome/browser/extensions/extension_service.h" 11 #include "chrome/browser/extensions/extension_service.h"
12 #include "chrome/browser/extensions/management_policy.h" 12 #include "extensions/browser/management_policy.h"
13 13
14 namespace extensions { 14 namespace extensions {
15 15
16 // This class provides a simple way to create providers with specific 16 // This class provides a simple way to create providers with specific
17 // restrictions and a known error message, for use in testing. 17 // restrictions and a known error message, for use in testing.
18 class TestManagementPolicyProvider : public ManagementPolicy::Provider { 18 class TestManagementPolicyProvider : public ManagementPolicy::Provider {
19 public: 19 public:
20 enum AllowedActionFlag { 20 enum AllowedActionFlag {
21 ALLOW_ALL = 0, 21 ALLOW_ALL = 0,
22 PROHIBIT_LOAD = 1 << 0, 22 PROHIBIT_LOAD = 1 << 0,
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 bool may_modify_status_; 55 bool may_modify_status_;
56 bool must_remain_enabled_; 56 bool must_remain_enabled_;
57 bool must_remain_disabled_; 57 bool must_remain_disabled_;
58 Extension::DisableReason disable_reason_; 58 Extension::DisableReason disable_reason_;
59 59
60 string16 error_message_; 60 string16 error_message_;
61 }; 61 };
62 62
63 } // namespace extensions 63 } // namespace extensions
64 64
65 #endif // CHROME_BROWSER_EXTENSIONS_TEST_MANAGEMENT_POLICY_H_ 65 #endif // EXTENSIONS_BROWSER_TEST_MANAGEMENT_POLICY_H_
OLDNEW
« no previous file with comments | « extensions/browser/management_policy_unittest.cc ('k') | extensions/browser/test_management_policy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698