OLD | NEW |
| (Empty) |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef MOJO_PUBLIC_CPP_BINDINGS_LIB_WTF_STRING_SERIALIZATION_H_ | |
6 #define MOJO_PUBLIC_CPP_BINDINGS_LIB_WTF_STRING_SERIALIZATION_H_ | |
7 | |
8 #include <stddef.h> | |
9 | |
10 #include "mojo/public/cpp/bindings/lib/array_internal.h" | |
11 #include "mojo/public/cpp/bindings/lib/serialization_util.h" | |
12 | |
13 namespace WTF { | |
14 class String; | |
15 | |
16 // TODO(yzshen): These methods are simply wrappers of the Serialzer interface. | |
17 // Remove them. | |
18 size_t GetSerializedSize_(const WTF::String& input, | |
19 mojo::internal::SerializationContext* context); | |
20 void Serialize_(const WTF::String& input, | |
21 mojo::internal::Buffer* buffer, | |
22 mojo::internal::String_Data** output, | |
23 mojo::internal::SerializationContext* context); | |
24 bool Deserialize_(mojo::internal::String_Data* input, | |
25 WTF::String* output, | |
26 mojo::internal::SerializationContext* context); | |
27 | |
28 } // namespace WTF | |
29 | |
30 #endif // MOJO_PUBLIC_CPP_BINDINGS_LIB_WTF_STRING_SERIALIZATION_H_ | |
OLD | NEW |