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

Unified Diff: mojo/public/bindings/sample/generated/sample_bar_serialization.cc

Issue 60803002: Simpler bindings, fewer files! (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move more to the .cc file Created 7 years, 1 month 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/bindings/sample/generated/sample_bar_serialization.cc
diff --git a/mojo/public/bindings/sample/generated/sample_bar_serialization.cc b/mojo/public/bindings/sample/generated/sample_bar_serialization.cc
deleted file mode 100644
index ec02505f619c35c9e179359af5176c0524b3978e..0000000000000000000000000000000000000000
--- a/mojo/public/bindings/sample/generated/sample_bar_serialization.cc
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright 2013 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/bindings/sample/generated/sample_bar_serialization.h"
-
-#include <string.h>
-
-#include "mojo/public/bindings/sample/generated/sample_bar.h"
-
-namespace mojo {
-namespace internal {
-
-// static
-size_t ObjectTraits<sample::Bar>::ComputeSizeOf(
- const sample::Bar* bar) {
- return sizeof(*bar);
-}
-
-// static
-sample::Bar* ObjectTraits<sample::Bar>::Clone(
- const sample::Bar* bar, Buffer* buf) {
- sample::Bar* clone = sample::Bar::New(buf);
- memcpy(clone, bar, sizeof(*bar));
- return clone;
-}
-
-// static
-void ObjectTraits<sample::Bar>::EncodePointersAndHandles(
- sample::Bar* bar, std::vector<mojo::Handle>* handles) {
-}
-
-// static
-bool ObjectTraits<sample::Bar>::DecodePointersAndHandles(
- sample::Bar* bar, const mojo::Message& message) {
- return true;
-}
-
-} // namespace internal
-} // namespace mojo

Powered by Google App Engine
This is Rietveld 408576698