OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_POLICY_POLICY_DOMAIN_DESCRIPTOR_H_ | |
6 #define CHROME_BROWSER_POLICY_POLICY_DOMAIN_DESCRIPTOR_H_ | |
7 | |
8 #include <map> | |
9 #include <string> | |
10 | |
11 #include "base/basictypes.h" | |
12 #include "base/memory/ref_counted.h" | |
13 #include "base/memory/scoped_ptr.h" | |
14 #include "chrome/browser/policy/policy_service.h" | |
15 | |
16 namespace policy { | |
17 | |
18 class PolicyBundle; | |
19 class PolicySchema; | |
20 | |
21 class PolicyDomainDescriptor : public base::RefCounted<PolicyDomainDescriptor> { | |
Mattias Nissler (ping if slow)
2013/05/15 10:24:06
This should have a class comment explaining what i
Joao da Silva
2013/05/19 13:17:55
I had that in some commit before uploading but los
| |
22 public: | |
23 typedef std::map<std::string, const PolicySchema*> SchemaMap; | |
24 | |
25 explicit PolicyDomainDescriptor(PolicyDomain domain); | |
26 | |
27 PolicyDomain domain() const { return domain_; } | |
28 const SchemaMap& components() const { return schema_map_; } | |
29 | |
30 void AddComponent(const std::string& component_id, | |
Mattias Nissler (ping if slow)
2013/05/15 10:24:06
Given the implementation, this should probably be
Joao da Silva
2013/05/19 13:17:55
Done.
bartfab (slow)
2013/05/21 12:14:19
I just noticed that my suggestion of |AddComponent
| |
31 scoped_ptr<PolicySchema> schema); | |
32 | |
33 void FilterBundle(PolicyBundle* bundle) const; | |
34 | |
35 private: | |
36 friend class base::RefCounted<PolicyDomainDescriptor>; | |
37 ~PolicyDomainDescriptor(); | |
38 | |
39 PolicyDomain domain_; | |
40 SchemaMap schema_map_; | |
41 | |
42 DISALLOW_COPY_AND_ASSIGN(PolicyDomainDescriptor); | |
43 }; | |
44 | |
45 } // namespace policy | |
46 | |
47 #endif // CHROME_BROWSER_POLICY_POLICY_DOMAIN_DESCRIPTOR_H_ | |
OLD | NEW |