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

Unified Diff: mojo/public/cpp/bindings/lib/array_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
« no previous file with comments | « mojo/public/cpp/bindings/lib/array_internal.h ('k') | mojo/public/cpp/bindings/lib/map_data_internal.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/cpp/bindings/lib/array_serialization.h
diff --git a/mojo/public/cpp/bindings/lib/array_serialization.h b/mojo/public/cpp/bindings/lib/array_serialization.h
index 00257401b89dc35276bb2f18866853183028b799..158056871bcf37abd74aa984bac45c70151bd41f 100644
--- a/mojo/public/cpp/bindings/lib/array_serialization.h
+++ b/mojo/public/cpp/bindings/lib/array_serialization.h
@@ -114,7 +114,7 @@ struct ArraySerializer<MojomType,
static void SerializeElements(UserTypeReader* input,
Buffer* buf,
Data* output,
- const ArrayValidateParams* validate_params,
+ const ContainerValidateParams* validate_params,
SerializationContext* context) {
DCHECK(!validate_params->element_is_nullable)
<< "Primitive type should be non-nullable";
@@ -174,7 +174,7 @@ struct ArraySerializer<MojomType,
static void SerializeElements(UserTypeReader* input,
Buffer* buf,
Data* output,
- const ArrayValidateParams* validate_params,
+ const ContainerValidateParams* validate_params,
SerializationContext* context) {
DCHECK(!validate_params->element_is_nullable)
<< "Primitive type should be non-nullable";
@@ -220,7 +220,7 @@ struct ArraySerializer<MojomType,
static void SerializeElements(UserTypeReader* input,
Buffer* buf,
Data* output,
- const ArrayValidateParams* validate_params,
+ const ContainerValidateParams* validate_params,
SerializationContext* context) {
DCHECK(!validate_params->element_validate_params)
<< "Handle type should not have array validate params";
@@ -279,7 +279,7 @@ struct ArraySerializer<MojomType,
static void SerializeElements(UserTypeReader* input,
Buffer* buf,
Data* output,
- const ArrayValidateParams* validate_params,
+ const ContainerValidateParams* validate_params,
SerializationContext* context) {
size_t size = input->GetSize();
for (size_t i = 0; i < size; ++i) {
@@ -321,7 +321,7 @@ struct ArraySerializer<MojomType,
static void Run(InputElementType&& input,
Buffer* buf,
DataElement* output,
- const ArrayValidateParams* validate_params,
+ const ContainerValidateParams* validate_params,
SerializationContext* context) {
Serialize<T>(std::forward<InputElementType>(input), buf, output, context);
}
@@ -333,7 +333,7 @@ struct ArraySerializer<MojomType,
static void Run(InputElementType&& input,
Buffer* buf,
DataElement* output,
- const ArrayValidateParams* validate_params,
+ const ContainerValidateParams* validate_params,
SerializationContext* context) {
Serialize<T>(std::forward<InputElementType>(input), buf, output,
validate_params, context);
@@ -373,7 +373,7 @@ struct ArraySerializer<MojomType,
static void SerializeElements(UserTypeReader* input,
Buffer* buf,
Data* output,
- const ArrayValidateParams* validate_params,
+ const ContainerValidateParams* validate_params,
SerializationContext* context) {
size_t size = input->GetSize();
for (size_t i = 0; i < size; ++i) {
@@ -425,7 +425,7 @@ struct Serializer<Array<Element>, MaybeConstUserType> {
static void Serialize(MaybeConstUserType& input,
Buffer* buf,
Data** output,
- const ArrayValidateParams* validate_params,
+ const ContainerValidateParams* validate_params,
SerializationContext* context) {
if (!CallIsNullIfExists<Traits>(input)) {
MOJO_INTERNAL_DLOG_SERIALIZATION_WARNING(
« no previous file with comments | « mojo/public/cpp/bindings/lib/array_internal.h ('k') | mojo/public/cpp/bindings/lib/map_data_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698