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 #include "mojo/public/cpp/bindings/lib/wtf_string_serialization.h" | |
6 | |
7 #include "mojo/public/cpp/bindings/lib/serialization.h" | |
8 #include "mojo/public/cpp/bindings/lib/wtf_serialization.h" | |
9 #include "mojo/public/cpp/bindings/string.h" | |
10 #include "third_party/WebKit/Source/wtf/text/WTFString.h" | |
11 | |
12 namespace WTF { | |
13 | |
14 size_t GetSerializedSize_(const WTF::String& input, | |
15 mojo::internal::SerializationContext* context) { | |
16 return mojo::internal::PrepareToSerialize<mojo::String>(input, context); | |
17 } | |
18 | |
19 void Serialize_(const WTF::String& input, | |
20 mojo::internal::Buffer* buf, | |
21 mojo::internal::String_Data** output, | |
22 mojo::internal::SerializationContext* context) { | |
23 mojo::internal::Serialize<mojo::String>(input, buf, output, context); | |
24 } | |
25 | |
26 bool Deserialize_(mojo::internal::String_Data* input, | |
27 WTF::String* output, | |
28 mojo::internal::SerializationContext* context) { | |
29 return mojo::internal::Deserialize<mojo::String>(input, output, context); | |
30 } | |
31 | |
32 } // namespace WTF | |
OLD | NEW |