OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/message_pipe_endpoint.h" | 5 #include "mojo/system/message_pipe_endpoint.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "mojo/system/channel.h" | 8 #include "mojo/system/channel.h" |
9 | 9 |
10 namespace mojo { | 10 namespace mojo { |
11 namespace system { | 11 namespace system { |
12 | 12 |
| 13 void MessagePipeEndpoint::Close() { |
| 14 NOTREACHED(); |
| 15 } |
| 16 |
13 void MessagePipeEndpoint::CancelAllWaiters() { | 17 void MessagePipeEndpoint::CancelAllWaiters() { |
14 NOTREACHED(); | 18 NOTREACHED(); |
15 } | 19 } |
16 | 20 |
17 MojoResult MessagePipeEndpoint::ReadMessage( | 21 MojoResult MessagePipeEndpoint::ReadMessage( |
18 void* /*bytes*/, uint32_t* /*num_bytes*/, | 22 void* /*bytes*/, uint32_t* /*num_bytes*/, |
19 std::vector<scoped_refptr<Dispatcher> >* /*dispatchers*/, | 23 std::vector<scoped_refptr<Dispatcher> >* /*dispatchers*/, |
20 uint32_t* /*num_dispatchers*/, | 24 uint32_t* /*num_dispatchers*/, |
21 MojoReadMessageFlags /*flags*/) { | 25 MojoReadMessageFlags /*flags*/) { |
22 NOTREACHED(); | 26 NOTREACHED(); |
23 return MOJO_RESULT_INTERNAL; | 27 return MOJO_RESULT_INTERNAL; |
24 } | 28 } |
25 | 29 |
26 MojoResult MessagePipeEndpoint::AddWaiter(Waiter* /*waiter*/, | 30 MojoResult MessagePipeEndpoint::AddWaiter(Waiter* /*waiter*/, |
27 MojoWaitFlags /*flags*/, | 31 MojoWaitFlags /*flags*/, |
28 MojoResult /*wake_result*/) { | 32 MojoResult /*wake_result*/) { |
29 NOTREACHED(); | 33 NOTREACHED(); |
30 return MOJO_RESULT_INTERNAL; | 34 return MOJO_RESULT_INTERNAL; |
31 } | 35 } |
32 | 36 |
33 void MessagePipeEndpoint::RemoveWaiter(Waiter* /*waiter*/) { | 37 void MessagePipeEndpoint::RemoveWaiter(Waiter* /*waiter*/) { |
34 NOTREACHED(); | 38 NOTREACHED(); |
35 } | 39 } |
36 | 40 |
37 void MessagePipeEndpoint::Attach(scoped_refptr<Channel> /*channel*/, | 41 void MessagePipeEndpoint::Attach(scoped_refptr<Channel> /*channel*/, |
38 MessageInTransit::EndpointId /*local_id*/) { | 42 MessageInTransit::EndpointId /*local_id*/) { |
39 NOTREACHED(); | 43 NOTREACHED(); |
40 } | 44 } |
41 | 45 |
42 void MessagePipeEndpoint::Run(MessageInTransit::EndpointId /*remote_id*/) { | 46 bool MessagePipeEndpoint::Run(MessageInTransit::EndpointId /*remote_id*/) { |
| 47 NOTREACHED(); |
| 48 return true; |
| 49 } |
| 50 |
| 51 void MessagePipeEndpoint::OnRemove() { |
43 NOTREACHED(); | 52 NOTREACHED(); |
44 } | 53 } |
45 | 54 |
46 } // namespace system | 55 } // namespace system |
47 } // namespace mojo | 56 } // namespace mojo |
48 | 57 |
OLD | NEW |