| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #include "mojo/public/cpp/bindings/lib/native_struct_data.h" | 5 #include "mojo/public/cpp/bindings/lib/native_struct_data.h" |
| 6 | 6 |
| 7 #include "mojo/public/cpp/bindings/lib/bounds_checker.h" | 7 #include "mojo/public/cpp/bindings/lib/bounds_checker.h" |
| 8 #include "mojo/public/cpp/bindings/lib/buffer.h" | 8 #include "mojo/public/cpp/bindings/lib/buffer.h" |
| 9 | 9 |
| 10 namespace mojo { | 10 namespace mojo { |
| 11 namespace internal { | 11 namespace internal { |
| 12 | 12 |
| 13 // static | 13 // static |
| 14 bool NativeStruct_Data::Validate(const void* data, | 14 bool NativeStruct_Data::Validate(const void* data, |
| 15 BoundsChecker* bounds_checker) { | 15 BoundsChecker* bounds_checker) { |
| 16 const ArrayValidateParams data_validate_params(0, false, nullptr); | 16 const ContainerValidateParams data_validate_params(0, false, nullptr); |
| 17 return Array_Data<uint8_t>::Validate(data, bounds_checker, | 17 return Array_Data<uint8_t>::Validate(data, bounds_checker, |
| 18 &data_validate_params); | 18 &data_validate_params); |
| 19 } | 19 } |
| 20 | 20 |
| 21 } // namespace internal | 21 } // namespace internal |
| 22 } // namespace mojo | 22 } // namespace mojo |
| OLD | NEW |