summaryrefslogtreecommitdiffstats
path: root/mojo/edk/system/message_pipe_endpoint.cc
blob: df623d4b659b70002c77a209ef67263d2a37be4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "mojo/edk/system/message_pipe_endpoint.h"

#include "base/logging.h"

namespace mojo {
namespace system {

void MessagePipeEndpoint::CancelAllWaiters() {
  NOTREACHED();
}

MojoResult MessagePipeEndpoint::ReadMessage(UserPointer<void> /*bytes*/,
                                            UserPointer<uint32_t> /*num_bytes*/,
                                            DispatcherVector* /*dispatchers*/,
                                            uint32_t* /*num_dispatchers*/,
                                            MojoReadMessageFlags /*flags*/) {
  NOTREACHED();
  return MOJO_RESULT_INTERNAL;
}

HandleSignalsState MessagePipeEndpoint::GetHandleSignalsState() const {
  NOTREACHED();
  return HandleSignalsState();
}

MojoResult MessagePipeEndpoint::AddWaiter(Waiter* /*waiter*/,
                                          MojoHandleSignals /*signals*/,
                                          uint32_t /*context*/,
                                          HandleSignalsState* signals_state) {
  NOTREACHED();
  if (signals_state)
    *signals_state = HandleSignalsState();
  return MOJO_RESULT_INTERNAL;
}

void MessagePipeEndpoint::RemoveWaiter(Waiter* /*waiter*/,
                                       HandleSignalsState* signals_state) {
  NOTREACHED();
  if (signals_state)
    *signals_state = HandleSignalsState();
}

void MessagePipeEndpoint::Attach(ChannelEndpoint* /*channel_endpoint*/) {
  NOTREACHED();
}

}  // namespace system
}  // namespace mojo