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

Side by Side Diff: mojo/public/cpp/bindings/lib/native_struct_data.cc

Issue 2030873002: Mojo C++ bindings: rename ArrayValidateParams for clarity (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cc-enums
Patch Set: Rebase Created 4 years, 6 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 unified diff | Download patch
OLDNEW
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
OLDNEW
« no previous file with comments | « mojo/public/cpp/bindings/lib/map_serialization.h ('k') | mojo/public/cpp/bindings/lib/native_struct_serialization.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698