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

Unified Diff: mojo/public/cpp/bindings/lib/validation_util.h

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/public/cpp/bindings/lib/validate_params.h ('k') | mojo/public/cpp/bindings/tests/array_common_test.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/cpp/bindings/lib/validation_util.h
diff --git a/mojo/public/cpp/bindings/lib/validation_util.h b/mojo/public/cpp/bindings/lib/validation_util.h
index ffb62280641fef64fbac90a2048047e41be97161..5f7dc3781fad0a1d107dc59ccd3110518641d9bd 100644
--- a/mojo/public/cpp/bindings/lib/validation_util.h
+++ b/mojo/public/cpp/bindings/lib/validation_util.h
@@ -91,7 +91,7 @@ bool ValidateInterfaceIdNonNullable(InterfaceId input,
template <typename T>
bool ValidateArray(const Pointer<Array_Data<T>>& input,
BoundsChecker* bounds_checker,
- const ArrayValidateParams* validate_params) {
+ const ContainerValidateParams* validate_params) {
if (!ValidateEncodedPointer(&input.offset)) {
ReportValidationError(VALIDATION_ERROR_ILLEGAL_POINTER);
return false;
@@ -104,7 +104,7 @@ bool ValidateArray(const Pointer<Array_Data<T>>& input,
template <typename T>
bool ValidateMap(const Pointer<T>& input,
BoundsChecker* bounds_checker,
- const ArrayValidateParams* validate_params) {
+ const ContainerValidateParams* validate_params) {
if (!ValidateEncodedPointer(&input.offset)) {
ReportValidationError(VALIDATION_ERROR_ILLEGAL_POINTER);
return false;
« no previous file with comments | « mojo/public/cpp/bindings/lib/validate_params.h ('k') | mojo/public/cpp/bindings/tests/array_common_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698