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

Unified Diff: mojo/public/cpp/bindings/lib/map_serialization.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
Index: mojo/public/cpp/bindings/lib/map_serialization.h
diff --git a/mojo/public/cpp/bindings/lib/map_serialization.h b/mojo/public/cpp/bindings/lib/map_serialization.h
index 60b6364fb4a310a7d2b667ff9657dec996d972f5..5df94cd7f230bf229bba7e2a639d7f748b297be8 100644
--- a/mojo/public/cpp/bindings/lib/map_serialization.h
+++ b/mojo/public/cpp/bindings/lib/map_serialization.h
@@ -107,13 +107,10 @@ struct Serializer<Map<Key, Value>, MaybeConstUserType> {
return struct_overhead + keys_size + values_size;
}
- // We don't need an ArrayValidateParams instance for key validation since
- // we can deduce it from the Key type. (which can only be primitive types or
- // non-nullable strings.)
static void Serialize(MaybeConstUserType& input,
Buffer* buf,
Data** output,
- const ArrayValidateParams* validate_params,
+ const ContainerValidateParams* validate_params,
SerializationContext* context) {
DCHECK(validate_params->key_validate_params);
DCHECK(validate_params->element_validate_params);
« no previous file with comments | « mojo/public/cpp/bindings/lib/map_data_internal.h ('k') | mojo/public/cpp/bindings/lib/native_struct_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698