| 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 "mojo/system/channel_endpoint.h" | 5 #include "mojo/system/channel_endpoint.h" |
| 6 | 6 |
| 7 #include "mojo/system/channel.h" | 7 #include "mojo/system/channel.h" |
| 8 #include "mojo/system/message_in_transit_queue.h" | 8 #include "mojo/system/message_in_transit_queue.h" |
| 9 | 9 |
| 10 namespace mojo { | 10 namespace mojo { |
| 11 namespace system { | 11 namespace system { |
| 12 | 12 |
| 13 ChannelEndpoint::ChannelEndpoint(MessagePipe* message_pipe, unsigned port) | 13 ChannelEndpoint::ChannelEndpoint(const scoped_refptr<MessagePipe>& message_pipe, |
| 14 unsigned port) |
| 14 : state_(STATE_NORMAL), message_pipe_(message_pipe), port_(port) { | 15 : state_(STATE_NORMAL), message_pipe_(message_pipe), port_(port) { |
| 15 } | 16 } |
| 16 | 17 |
| 17 ChannelEndpoint::~ChannelEndpoint() { | 18 ChannelEndpoint::~ChannelEndpoint() { |
| 18 } | 19 } |
| 19 | 20 |
| 20 } // namespace system | 21 } // namespace system |
| 21 } // namespace mojo | 22 } // namespace mojo |
| OLD | NEW |