| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "mojo/public/cpp/bindings/lib/pipe_control_message_proxy.h" | 5 #include "mojo/public/cpp/bindings/lib/pipe_control_message_proxy.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 8 #include "mojo/public/cpp/bindings/lib/message_builder.h" | 10 #include "mojo/public/cpp/bindings/lib/message_builder.h" |
| 9 #include "mojo/public/cpp/bindings/message.h" | 11 #include "mojo/public/cpp/bindings/message.h" |
| 10 #include "mojo/public/interfaces/bindings/pipe_control_messages.mojom.h" | 12 #include "mojo/public/interfaces/bindings/pipe_control_messages.mojom.h" |
| 11 | 13 |
| 12 namespace mojo { | 14 namespace mojo { |
| 13 namespace internal { | 15 namespace internal { |
| 14 namespace { | 16 namespace { |
| 15 | 17 |
| 16 void SendRunOrClosePipeMessage(MessageReceiver* receiver, | 18 void SendRunOrClosePipeMessage(MessageReceiver* receiver, |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 | 58 |
| 57 pipe_control::RunOrClosePipeInputPtr input( | 59 pipe_control::RunOrClosePipeInputPtr input( |
| 58 pipe_control::RunOrClosePipeInput::New()); | 60 pipe_control::RunOrClosePipeInput::New()); |
| 59 input->set_associated_endpoint_closed_before_sent_event(event.Pass()); | 61 input->set_associated_endpoint_closed_before_sent_event(event.Pass()); |
| 60 | 62 |
| 61 SendRunOrClosePipeMessage(receiver_, input.Pass()); | 63 SendRunOrClosePipeMessage(receiver_, input.Pass()); |
| 62 } | 64 } |
| 63 | 65 |
| 64 } // namespace internal | 66 } // namespace internal |
| 65 } // namespace mojo | 67 } // namespace mojo |
| OLD | NEW |