Index: mojo/public/bindings/generated/sample_service_stub.cc |
diff --git a/mojo/public/bindings/generated/sample_service_stub.cc b/mojo/public/bindings/generated/sample_service_stub.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..ee8f97ed6a7f0f48dee643342c0467968c342373 |
--- /dev/null |
+++ b/mojo/public/bindings/generated/sample_service_stub.cc |
@@ -0,0 +1,28 @@ |
+// 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/generated/sample_service_stub.h" |
+ |
+#include "mojo/public/bindings/generated/sample_service_internal.h" |
+ |
+namespace sample { |
+ |
+bool ServiceStub::OnMessageReceived(const mojo::Message& message) { |
+ switch (message.name) { |
+ case internal::kService_Frobinate_Name: { |
+ internal::Service_Frobinate_Params* params = |
+ reinterpret_cast<internal::Service_Frobinate_Params*>( |
+ message.data_start); |
+ |
+ if (!mojo::internal::DecodePointersAndHandles(params, message)) |
+ return false; |
+ |
+ Frobinate(params->foo(), params->baz()); |
+ break; |
+ } |
+ } |
+ return true; |
+} |
+ |
+} // namespace sample |