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

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

Issue 31273002: Generate the Chrome policy schema at compile time. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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_internal.h
diff --git a/components/policy/core/common/schema_internal.h b/components/policy/core/common/schema_internal.h
index 025a4373ee75cc50475c824c380f09c635d3e665..40f29aad3a5923cc460ced3ab2e058ef53fa0102 100644
--- a/components/policy/core/common/schema_internal.h
+++ b/components/policy/core/common/schema_internal.h
@@ -16,27 +16,24 @@ namespace internal {
struct POLICY_EXPORT SchemaNode {
base::Value::Type type;
-
- // If |type| is TYPE_LIST then this is a SchemaNode* describing the
- // element type.
- //
- // If |type| is TYPE_DICTIONARY then this is a PropertiesNode* that can
- // contain any number of named properties and optionally a SchemaNode* for
- // additional properties.
- //
- // This is NULL if |type| has any other values.
- const void* extra;
+ int extra;
};
struct POLICY_EXPORT PropertyNode {
const char* key;
- const SchemaNode* schema;
+ int schema;
};
struct POLICY_EXPORT PropertiesNode {
- const PropertyNode* begin;
- const PropertyNode* end;
- const SchemaNode* additional;
+ int begin;
+ int end;
+ int additional;
+};
+
+struct POLICY_EXPORT SchemaData {
+ const SchemaNode* schema_nodes;
+ const PropertyNode* property_nodes;
+ const PropertiesNode* properties_nodes;
};
} // namespace internal

Powered by Google App Engine
This is Rietveld 408576698