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

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

Issue 1955123003: Mojo C++ bindings: switch the remaining callsites of the old serialization interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@24_union_and_others
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/serialization_forward.h
diff --git a/mojo/public/cpp/bindings/lib/serialization_forward.h b/mojo/public/cpp/bindings/lib/serialization_forward.h
index 657a7a3524f5f006d452912e26ec8dcdd107b091..266b3a8975709b995f745035cfc4626ddeac8a2c 100644
--- a/mojo/public/cpp/bindings/lib/serialization_forward.h
+++ b/mojo/public/cpp/bindings/lib/serialization_forward.h
@@ -5,11 +5,7 @@
#ifndef MOJO_PUBLIC_CPP_BINDINGS_LIB_SERIALIZATION_FORWARD_H_
#define MOJO_PUBLIC_CPP_BINDINGS_LIB_SERIALIZATION_FORWARD_H_
-#include <stddef.h>
-
#include "mojo/public/cpp/bindings/array_traits.h"
-#include "mojo/public/cpp/bindings/lib/wtf_string_serialization.h"
-#include "mojo/public/cpp/bindings/native_struct.h"
#include "mojo/public/cpp/bindings/string_traits.h"
#include "mojo/public/cpp/bindings/struct_traits.h"
@@ -21,12 +17,6 @@
namespace mojo {
namespace internal {
-class Buffer;
-
-class NativeStruct_Data;
-
-struct SerializationContext;
-
template <typename MojomType, typename MaybeConstUserType>
struct Serializer;
@@ -59,38 +49,6 @@ bool Deserialize(DataType&& input, InputUserType* output, Args&&... args) {
}
} // namespace internal
-
-// TODO(yzshen): The following functions eventually will become simple wrappers
-// of the Serializer interface. Remove them.
-
-// -----------------------------------------------------------------------------
-// Forward declaration for native types.
-
-size_t GetSerializedSize_(const NativeStructPtr& input,
- internal::SerializationContext* context);
-
-void Serialize_(NativeStructPtr input,
- internal::Buffer* buffer,
- internal::NativeStruct_Data** output,
- internal::SerializationContext* context);
-
-bool Deserialize_(internal::NativeStruct_Data* input,
- NativeStructPtr* output,
- internal::SerializationContext* context);
-
-// -----------------------------------------------------------------------------
-// Forward declaration for String.
-
-size_t GetSerializedSize_(const String& input,
- internal::SerializationContext* context);
-void Serialize_(const String& input,
- internal::Buffer* buffer,
- internal::String_Data** output,
- internal::SerializationContext* context);
-bool Deserialize_(internal::String_Data* input,
- String* output,
- internal::SerializationContext* context);
-
} // namespace mojo
#endif // MOJO_PUBLIC_CPP_BINDINGS_LIB_SERIALIZATION_FORWARD_H_
« no previous file with comments | « mojo/public/cpp/bindings/lib/serialization_context.cc ('k') | mojo/public/cpp/bindings/lib/serialization_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698