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

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

Issue 50143010: Added a SchemaMap. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@chrome-policy-schema-5-ref-counted-schema
Patch Set: Created 7 years, 2 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 f0434d3cd84c18563d1e15485ef5ee21d3ac3265..e7f624b198ceadc086ebf0b3e07746a3e4fcf5dc 100644
--- a/components/policy/core/common/schema.h
+++ b/components/policy/core/common/schema.h
@@ -56,6 +56,9 @@ class POLICY_EXPORT Schema {
base::Value::Type type() const;
+ // Returns true if |value| conforms to this Schema.
+ bool Matches(const base::Value& value) const;
dconnelly 2013/10/31 10:04:16 nit: I think the word "validate" is the generally
Joao da Silva 2013/10/31 13:34:56 Done.
+
// Used to iterate over the known properties of TYPE_DICTIONARY schemas.
class POLICY_EXPORT Iterator {
public:

Powered by Google App Engine
This is Rietveld 408576698