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