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

Side by Side Diff: mojo/public/cpp/bindings/lib/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 2014 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/string_serialization.h"
6
7 #include "mojo/public/cpp/bindings/lib/serialization.h"
8
9 namespace mojo {
10
11 size_t GetSerializedSize_(const String& input,
12 internal::SerializationContext* context) {
13 return internal::PrepareToSerialize<String>(input, context);
14 }
15
16 void Serialize_(const String& input,
17 internal::Buffer* buf,
18 internal::String_Data** output,
19 internal::SerializationContext* context) {
20 internal::Serialize<String>(input, buf, output, context);
21 }
22
23 bool Deserialize_(internal::String_Data* input,
24 String* output,
25 internal::SerializationContext* context) {
26 return internal::Deserialize<String>(input, output, context);
27 }
28
29 } // namespace mojo
OLDNEW
« 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