| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef COMPONENTS_POLICY_CORE_COMMON_SCHEMA_H_ | 5 #ifndef COMPONENTS_POLICY_CORE_COMMON_SCHEMA_H_ |
| 6 #define COMPONENTS_POLICY_CORE_COMMON_SCHEMA_H_ | 6 #define COMPONENTS_POLICY_CORE_COMMON_SCHEMA_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | |
| 12 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 13 #include "base/values.h" | 12 #include "base/values.h" |
| 14 #include "components/policy/policy_export.h" | 13 #include "components/policy/policy_export.h" |
| 15 | 14 |
| 16 namespace policy { | 15 namespace policy { |
| 17 namespace internal { | 16 namespace internal { |
| 18 | 17 |
| 19 struct POLICY_EXPORT SchemaData; | 18 struct POLICY_EXPORT SchemaData; |
| 20 struct POLICY_EXPORT SchemaNode; | 19 struct POLICY_EXPORT SchemaNode; |
| 21 struct POLICY_EXPORT PropertyNode; | 20 struct POLICY_EXPORT PropertyNode; |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 bool ValidateIntegerRestriction(int index, int value) const; | 185 bool ValidateIntegerRestriction(int index, int value) const; |
| 187 bool ValidateStringRestriction(int index, const char* str) const; | 186 bool ValidateStringRestriction(int index, const char* str) const; |
| 188 | 187 |
| 189 scoped_refptr<const InternalStorage> storage_; | 188 scoped_refptr<const InternalStorage> storage_; |
| 190 const internal::SchemaNode* node_; | 189 const internal::SchemaNode* node_; |
| 191 }; | 190 }; |
| 192 | 191 |
| 193 } // namespace policy | 192 } // namespace policy |
| 194 | 193 |
| 195 #endif // COMPONENTS_POLICY_CORE_COMMON_SCHEMA_H_ | 194 #endif // COMPONENTS_POLICY_CORE_COMMON_SCHEMA_H_ |
| OLD | NEW |