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

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

Issue 143413002: Add additional restriction to policy schema internal (part2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@expand-policy-schema
Patch Set: fix comments Created 6 years, 11 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
« no previous file with comments | « no previous file | components/policy/core/common/schema.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/policy/core/common/schema.h
diff --git a/components/policy/core/common/schema.h b/components/policy/core/common/schema.h
index 91dc850087617be85cd1b0fcc23acba4a22f80f1..e4190fbde4a65b4c0b8c0a0de5ebc6a30142d8cd 100644
--- a/components/policy/core/common/schema.h
+++ b/components/policy/core/common/schema.h
@@ -118,6 +118,9 @@ class POLICY_EXPORT Schema {
Schema(const scoped_refptr<const InternalStorage>& storage,
const internal::SchemaNode* node);
+ bool ValidateIntegerRestriction(int index, int value) const;
+ bool ValidateStringRestriction(int index, const char *str) const;
+
scoped_refptr<const InternalStorage> storage_;
const internal::SchemaNode* node_;
};
« no previous file with comments | « no previous file | components/policy/core/common/schema.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698