Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(312)

Unified Diff: components/policy/core/common/schema.h

Issue 205923004: Add regex support in policy schema (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@json-schema-regex
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/policy/core/common/schema.h
diff --git a/components/policy/core/common/schema.h b/components/policy/core/common/schema.h
index 82ee38fca63ee7d3a8f74512a2e0cd30b5332815..c711377cb8bcf32b8cd5ed8a50f8030982027dba 100644
--- a/components/policy/core/common/schema.h
+++ b/components/policy/core/common/schema.h
@@ -148,6 +148,10 @@ class POLICY_EXPORT Schema {
// property name then the returned Schema is not valid.
Schema GetKnownProperty(const std::string& key) const;
+ // Returns the Schema for pattern properties. If there are no matched
+ // pattern properties for |key| then the returned Schema is not valid.
+ Schema GetPatternProperty(const std::string& key) const;
Joao da Silva 2014/03/21 12:58:12 This should return a vector of Schemas, with all t
binjin 2014/04/01 12:29:36 Done.
+
// Returns the Schema for additional properties. If additional properties are
// not allowed for this Schema then the Schema returned is not valid.
Schema GetAdditionalProperties() const;

Powered by Google App Engine
This is Rietveld 408576698