| 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..dba516c6f857bdab53eac38f3b04cd6704c701e0
|
| --- /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(), params->port());
|
| + break;
|
| + }
|
| + }
|
| + return true;
|
| +}
|
| +
|
| +} // namespace sample
|
|
|