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

Side by Side Diff: mojo/public/cpp/bindings/lib/wtf_string_serialization.cc

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 unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698