Lines Matching defs:PolicySchema
20 class DictionaryPolicySchema : public PolicySchema {
22 static scoped_ptr<PolicySchema> Parse(const base::DictionaryValue& schema,
28 virtual const PolicySchema* GetSchemaForAdditionalProperties() const OVERRIDE;
34 scoped_ptr<PolicySchema> additional_properties_;
40 class ListPolicySchema : public PolicySchema {
42 static scoped_ptr<PolicySchema> Parse(const base::DictionaryValue& schema,
47 virtual const PolicySchema* GetSchemaForItems() const OVERRIDE;
52 scoped_ptr<PolicySchema> items_schema_;
81 scoped_ptr<PolicySchema> ParseSchema(const base::DictionaryValue& schema,
86 return scoped_ptr<PolicySchema>();
92 return scoped_ptr<PolicySchema>();
101 return make_scoped_ptr(new PolicySchema(type));
106 : PolicySchema(base::Value::TYPE_DICTIONARY) {}
116 const PolicySchema*
122 scoped_ptr<PolicySchema> DictionaryPolicySchema::Parse(
134 scoped_ptr<PolicySchema> sub_schema = ParseSchema(*dict, error);
136 return scoped_ptr<PolicySchema>();
143 scoped_ptr<PolicySchema> sub_schema = ParseSchema(*dict, error);
145 return scoped_ptr<PolicySchema>();
149 return dict_schema.PassAs<PolicySchema>();
153 : PolicySchema(base::Value::TYPE_LIST) {}
157 const PolicySchema* ListPolicySchema::GetSchemaForItems() const {
161 scoped_ptr<PolicySchema> ListPolicySchema::Parse(
167 return scoped_ptr<PolicySchema>();
169 scoped_ptr<PolicySchema> items_schema = ParseSchema(*dict, error);
171 return scoped_ptr<PolicySchema>();
175 return list_schema.PassAs<PolicySchema>();
180 PolicySchema::PolicySchema(base::Value::Type type)
183 PolicySchema::~PolicySchema() {}
185 const PolicySchemaMap* PolicySchema::GetProperties() const {
190 const PolicySchema* PolicySchema::GetSchemaForAdditionalProperties() const {
195 const PolicySchema* PolicySchema::GetSchemaForProperty(
203 const PolicySchema* PolicySchema::GetSchemaForItems() const {
209 scoped_ptr<PolicySchema> PolicySchema::Parse(const std::string& content,
215 return scoped_ptr<PolicySchema>();
222 return scoped_ptr<PolicySchema>();
230 return scoped_ptr<PolicySchema>();
238 return scoped_ptr<PolicySchema>();