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

Unified Diff: mojo/public/bindings/sample/generated/sample_service_stub.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_service_stub.cc
diff --git a/mojo/public/bindings/sample/generated/sample_service_stub.cc b/mojo/public/bindings/sample/generated/sample_service_stub.cc
deleted file mode 100644
index c26a26d02747ee399b0dd5bcc860971ffa4e1f8c..0000000000000000000000000000000000000000
--- a/mojo/public/bindings/sample/generated/sample_service_stub.cc
+++ /dev/null
@@ -1,28 +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_service_stub.h"
-
-#include "mojo/public/bindings/sample/generated/sample_service_serialization.h"
-
-namespace sample {
-
-bool ServiceStub::Accept(mojo::Message* message) {
- switch (message->data->header.name) {
- case internal::kService_Frobinate_Name: {
- internal::Service_Frobinate_Params* params =
- reinterpret_cast<internal::Service_Frobinate_Params*>(
- message->data->payload);
-
- if (!mojo::internal::DecodePointersAndHandles(params, *message))
- return false;
-
- Frobinate(params->foo(), params->baz(), params->port());
- break;
- }
- }
- return true;
-}
-
-} // namespace sample

Powered by Google App Engine
This is Rietveld 408576698