Lines Matching defs:policy
14 #include "components/policy/core/common/cloud/resource_cache.h"
15 #include "components/policy/core/common/policy_bundle.h"
16 #include "components/policy/core/common/policy_namespace.h"
17 #include "components/policy/policy_export.h"
25 namespace policy {
27 // Validates protobufs for external policy data, validates the data itself, and
35 // Invoked whenever the policies served by policy() have changed, except
50 // dm_protocol policy type that corresponds to |domain| is stored in
54 // Returns true if |policy_type| corresponds to a policy domain that can be
61 const PolicyBundle& policy() const { return policy_bundle_; }
73 // Loads and validates all the currently cached protobufs and policy data.
74 // This is performed synchronously, and policy() will return the cached
101 // Validates |proto| and returns the corresponding policy namespace in |ns|,
121 // Validates the JSON policy serialized in |data|, and verifies its hash
123 // parsed policies in |policy|.
126 PolicyMap* policy);
128 // Parses the JSON policy in |data| into |policy|, and returns true if the
130 bool ParsePolicy(const std::string& data, PolicyMap* policy);
143 } // namespace policy