OLD | NEW |
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_POLICY_POLICY_BUNDLE_H_ | 5 #ifndef CHROME_BROWSER_POLICY_POLICY_BUNDLE_H_ |
6 #define CHROME_BROWSER_POLICY_POLICY_BUNDLE_H_ | 6 #define CHROME_BROWSER_POLICY_POLICY_BUNDLE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "chrome/browser/policy/policy_service.h" | 12 #include "chrome/browser/policy/policy_map.h" |
| 13 #include "chrome/browser/policy/policy_namespace.h" |
13 | 14 |
14 namespace policy { | 15 namespace policy { |
15 | 16 |
16 class PolicyMap; | |
17 | |
18 // Maps policy namespaces to PolicyMaps. | 17 // Maps policy namespaces to PolicyMaps. |
19 class PolicyBundle { | 18 class PolicyBundle { |
20 public: | 19 public: |
21 typedef std::map<PolicyNamespace, PolicyMap*> MapType; | 20 typedef std::map<PolicyNamespace, PolicyMap*> MapType; |
22 typedef MapType::const_iterator const_iterator; | 21 typedef MapType::const_iterator const_iterator; |
23 | 22 |
24 PolicyBundle(); | 23 PolicyBundle(); |
25 virtual ~PolicyBundle(); | 24 virtual ~PolicyBundle(); |
26 | 25 |
27 // Returns the PolicyMap for namespace |ns|. | 26 // Returns the PolicyMap for namespace |ns|. |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 // An empty PolicyMap that is returned by const Get() for namespaces that | 59 // An empty PolicyMap that is returned by const Get() for namespaces that |
61 // do not exist in |policy_bundle_|. | 60 // do not exist in |policy_bundle_|. |
62 const PolicyMap kEmpty_; | 61 const PolicyMap kEmpty_; |
63 | 62 |
64 DISALLOW_COPY_AND_ASSIGN(PolicyBundle); | 63 DISALLOW_COPY_AND_ASSIGN(PolicyBundle); |
65 }; | 64 }; |
66 | 65 |
67 } // namespace policy | 66 } // namespace policy |
68 | 67 |
69 #endif // CHROME_BROWSER_POLICY_POLICY_BUNDLE_H_ | 68 #endif // CHROME_BROWSER_POLICY_POLICY_BUNDLE_H_ |
OLD | NEW |