| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "ipc/ipc_message_pipe_reader.h" | 5 #include "ipc/ipc_message_pipe_reader.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| 11 #include "base/bind.h" | 11 #include "base/bind.h" |
| 12 #include "base/bind_helpers.h" | 12 #include "base/bind_helpers.h" |
| 13 #include "base/location.h" | 13 #include "base/location.h" |
| 14 #include "base/logging.h" | 14 #include "base/logging.h" |
| 15 #include "base/macros.h" | 15 #include "base/macros.h" |
| 16 #include "base/memory/ref_counted.h" |
| 16 #include "base/single_thread_task_runner.h" | 17 #include "base/single_thread_task_runner.h" |
| 17 #include "base/threading/thread_task_runner_handle.h" | 18 #include "base/threading/thread_task_runner_handle.h" |
| 19 #include "ipc/ipc.mojom.h" |
| 18 #include "ipc/ipc_channel_mojo.h" | 20 #include "ipc/ipc_channel_mojo.h" |
| 19 #include "mojo/public/cpp/bindings/message.h" | 21 #include "mojo/public/cpp/bindings/message.h" |
| 20 | 22 |
| 21 namespace IPC { | 23 namespace IPC { |
| 22 namespace internal { | 24 namespace internal { |
| 23 | 25 |
| 24 MessagePipeReader::MessagePipeReader( | 26 MessagePipeReader::MessagePipeReader( |
| 25 mojo::MessagePipeHandle pipe, | 27 mojo::MessagePipeHandle pipe, |
| 26 mojom::ChannelAssociatedPtr sender, | 28 mojom::ChannelAssociatedPtr sender, |
| 27 mojo::AssociatedInterfaceRequest<mojom::Channel> receiver, | 29 mojo::AssociatedInterfaceRequest<mojom::Channel> receiver, |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 | 125 |
| 124 Close(); | 126 Close(); |
| 125 | 127 |
| 126 // NOTE: The delegate call below may delete |this|. | 128 // NOTE: The delegate call below may delete |this|. |
| 127 if (delegate_) | 129 if (delegate_) |
| 128 delegate_->OnPipeError(); | 130 delegate_->OnPipeError(); |
| 129 } | 131 } |
| 130 | 132 |
| 131 } // namespace internal | 133 } // namespace internal |
| 132 } // namespace IPC | 134 } // namespace IPC |
| OLD | NEW |