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

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

Issue 1751563002: Mojo C++ bindings: support mapping mojo string to WTF::String. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sync & rebase Created 4 years, 9 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 #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/bindings_serialization.h"
12
13 namespace WTF {
14 class String;
15
16 size_t GetSerializedSize_(const WTF::String& input,
17 mojo::internal::SerializationContext* context);
18 void Serialize_(const WTF::String& input,
19 mojo::internal::Buffer* buffer,
20 mojo::internal::String_Data** output,
21 mojo::internal::SerializationContext* context);
22 bool Deserialize_(mojo::internal::String_Data* input,
23 WTF::String* output,
24 mojo::internal::SerializationContext* context);
25
26 } // namespace WTF
27
28 #endif // MOJO_PUBLIC_CPP_BINDINGS_LIB_WTF_STRING_SERIALIZATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698