OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 COMPONENTS_POLICY_CORE_COMMON_POLICY_DETAILS_H_ | 5 #ifndef COMPONENTS_POLICY_CORE_COMMON_POLICY_DETAILS_H_ |
6 #define COMPONENTS_POLICY_CORE_COMMON_POLICY_DETAILS_H_ | 6 #define COMPONENTS_POLICY_CORE_COMMON_POLICY_DETAILS_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 |
8 #include <string> | 10 #include <string> |
9 | 11 |
10 #include "base/basictypes.h" | |
11 #include "base/callback_forward.h" | 12 #include "base/callback_forward.h" |
12 #include "components/policy/policy_export.h" | 13 #include "components/policy/policy_export.h" |
13 #include "policy/risk_tag.h" | 14 #include "policy/risk_tag.h" |
14 | 15 |
15 namespace policy { | 16 namespace policy { |
16 | 17 |
17 // Contains read-only metadata about a Chrome policy. | 18 // Contains read-only metadata about a Chrome policy. |
18 struct POLICY_EXPORT PolicyDetails { | 19 struct POLICY_EXPORT PolicyDetails { |
19 // True if this policy has been deprecated. | 20 // True if this policy has been deprecated. |
20 bool is_deprecated; | 21 bool is_deprecated; |
(...skipping 17 matching lines...) Expand all Loading... |
38 // A typedef for functions that match the signature of | 39 // A typedef for functions that match the signature of |
39 // GetChromePolicyDetails(). This can be used to inject that | 40 // GetChromePolicyDetails(). This can be used to inject that |
40 // function into objects, so that it can be easily mocked for | 41 // function into objects, so that it can be easily mocked for |
41 // tests. | 42 // tests. |
42 typedef base::Callback<const PolicyDetails*(const std::string&)> | 43 typedef base::Callback<const PolicyDetails*(const std::string&)> |
43 GetChromePolicyDetailsCallback; | 44 GetChromePolicyDetailsCallback; |
44 | 45 |
45 } // namespace policy | 46 } // namespace policy |
46 | 47 |
47 #endif // COMPONENTS_POLICY_CORE_COMMON_POLICY_DETAILS_H_ | 48 #endif // COMPONENTS_POLICY_CORE_COMMON_POLICY_DETAILS_H_ |
OLD | NEW |