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

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

Issue 1953493002: Mojo C++ bindings: custom type mapping for array - part 2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@21_simplify
Patch Set: Created 4 years, 7 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/wtf_array_serialization.h
diff --git a/mojo/public/cpp/bindings/lib/wtf_array_serialization.h b/mojo/public/cpp/bindings/lib/wtf_array_serialization.h
deleted file mode 100644
index 12949b148c7f35bc8948d05db8b6eaae66dd3a48..0000000000000000000000000000000000000000
--- a/mojo/public/cpp/bindings/lib/wtf_array_serialization.h
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef MOJO_PUBLIC_CPP_BINDINGS_LIB_WTF_ARRAY_SERIALIZATION_H_
-#define MOJO_PUBLIC_CPP_BINDINGS_LIB_WTF_ARRAY_SERIALIZATION_H_
-
-#include <stddef.h>
-
-#include "mojo/public/cpp/bindings/lib/array_serialization_traits.h"
-#include "mojo/public/cpp/bindings/wtf_array.h"
-
-namespace mojo {
-
-template <typename E>
-inline size_t GetSerializedSize_(const WTFArray<E>& input,
- internal::SerializationContext* context) {
- return internal::ArraySerializationImpl<
- WTFArray<E>, WTFArray<E>>::GetSerializedSize(input, context);
-}
-
-template <typename E>
-inline void SerializeArray_(
- WTFArray<E> input,
- internal::Buffer* buf,
- typename WTFArray<E>::Data_** output,
- const internal::ArrayValidateParams* validate_params,
- internal::SerializationContext* context) {
- return internal::ArraySerializationImpl<WTFArray<E>, WTFArray<E>>::Serialize(
- std::move(input), buf, output, validate_params, context);
-}
-
-template <typename E>
-inline bool Deserialize_(typename WTFArray<E>::Data_* input,
- WTFArray<E>* output,
- internal::SerializationContext* context) {
- return internal::ArraySerializationImpl<WTFArray<E>,
- WTFArray<E>>::Deserialize(input,
- output,
- context);
-}
-
-} // namespace mojo
-
-#endif // MOJO_PUBLIC_CPP_BINDINGS_LIB_WTF_ARRAY_SERIALIZATION_H_
« no previous file with comments | « mojo/public/cpp/bindings/lib/serialization_util.cc ('k') | mojo/public/cpp/bindings/lib/wtf_serialization.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698