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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: mojo/public/cpp/bindings/lib/wtf_string_serialization.cc
diff --git a/mojo/public/cpp/bindings/lib/wtf_string_serialization.cc b/mojo/public/cpp/bindings/lib/wtf_string_serialization.cc
deleted file mode 100644
index b41ee8f7fc5f82a507ffabc2459fb5b3c5df4dd7..0000000000000000000000000000000000000000
--- a/mojo/public/cpp/bindings/lib/wtf_string_serialization.cc
+++ /dev/null
@@ -1,32 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "mojo/public/cpp/bindings/lib/wtf_string_serialization.h"
-
-#include "mojo/public/cpp/bindings/lib/serialization.h"
-#include "mojo/public/cpp/bindings/lib/wtf_serialization.h"
-#include "mojo/public/cpp/bindings/string.h"
-#include "third_party/WebKit/Source/wtf/text/WTFString.h"
-
-namespace WTF {
-
-size_t GetSerializedSize_(const WTF::String& input,
- mojo::internal::SerializationContext* context) {
- return mojo::internal::PrepareToSerialize<mojo::String>(input, context);
-}
-
-void Serialize_(const WTF::String& input,
- mojo::internal::Buffer* buf,
- mojo::internal::String_Data** output,
- mojo::internal::SerializationContext* context) {
- mojo::internal::Serialize<mojo::String>(input, buf, output, context);
-}
-
-bool Deserialize_(mojo::internal::String_Data* input,
- WTF::String* output,
- mojo::internal::SerializationContext* context) {
- return mojo::internal::Deserialize<mojo::String>(input, output, context);
-}
-
-} // namespace WTF

Powered by Google App Engine
This is Rietveld 408576698