• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
9 namespace mojo {
10 namespace system {
11 
Close()12 void MessagePipeEndpoint::Close() {
13   NOTREACHED();
14 }
15 
CancelAllWaiters()16 void MessagePipeEndpoint::CancelAllWaiters() {
17   NOTREACHED();
18 }
19 
ReadMessage(UserPointer<void>,UserPointer<uint32_t>,DispatcherVector *,uint32_t *,MojoReadMessageFlags)20 MojoResult MessagePipeEndpoint::ReadMessage(UserPointer<void> /*bytes*/,
21                                             UserPointer<uint32_t> /*num_bytes*/,
22                                             DispatcherVector* /*dispatchers*/,
23                                             uint32_t* /*num_dispatchers*/,
24                                             MojoReadMessageFlags /*flags*/) {
25   NOTREACHED();
26   return MOJO_RESULT_INTERNAL;
27 }
28 
GetHandleSignalsState() const29 HandleSignalsState MessagePipeEndpoint::GetHandleSignalsState() const {
30   NOTREACHED();
31   return HandleSignalsState();
32 }
33 
AddWaiter(Waiter *,MojoHandleSignals,uint32_t,HandleSignalsState * signals_state)34 MojoResult MessagePipeEndpoint::AddWaiter(Waiter* /*waiter*/,
35                                           MojoHandleSignals /*signals*/,
36                                           uint32_t /*context*/,
37                                           HandleSignalsState* signals_state) {
38   NOTREACHED();
39   if (signals_state)
40     *signals_state = HandleSignalsState();
41   return MOJO_RESULT_INTERNAL;
42 }
43 
RemoveWaiter(Waiter *,HandleSignalsState * signals_state)44 void MessagePipeEndpoint::RemoveWaiter(Waiter* /*waiter*/,
45                                        HandleSignalsState* signals_state) {
46   NOTREACHED();
47   if (signals_state)
48     *signals_state = HandleSignalsState();
49 }
50 
Attach(ChannelEndpoint *)51 void MessagePipeEndpoint::Attach(ChannelEndpoint* /*channel_endpoint*/) {
52   NOTREACHED();
53 }
54 
55 }  // namespace system
56 }  // namespace mojo
57