More explicit thread checking in SafeBrowsingDatabase.
[chromium-blink-merge.git] / mojo / edk / system / message_pipe_endpoint.cc
blob4b8bc5e0afce17d924d55f0937df44315f790ea0
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.
5 #include "mojo/edk/system/message_pipe_endpoint.h"
7 #include "base/logging.h"
9 namespace mojo {
10 namespace system {
12 void MessagePipeEndpoint::CancelAllAwakables() {
13 NOTREACHED();
16 MojoResult MessagePipeEndpoint::ReadMessage(UserPointer<void> /*bytes*/,
17 UserPointer<uint32_t> /*num_bytes*/,
18 DispatcherVector* /*dispatchers*/,
19 uint32_t* /*num_dispatchers*/,
20 MojoReadMessageFlags /*flags*/) {
21 NOTREACHED();
22 return MOJO_RESULT_INTERNAL;
25 HandleSignalsState MessagePipeEndpoint::GetHandleSignalsState() const {
26 NOTREACHED();
27 return HandleSignalsState();
30 MojoResult MessagePipeEndpoint::AddAwakable(Awakable* /*awakable*/,
31 MojoHandleSignals /*signals*/,
32 uint32_t /*context*/,
33 HandleSignalsState* signals_state) {
34 NOTREACHED();
35 if (signals_state)
36 *signals_state = HandleSignalsState();
37 return MOJO_RESULT_INTERNAL;
40 void MessagePipeEndpoint::RemoveAwakable(Awakable* /*awakable*/,
41 HandleSignalsState* signals_state) {
42 NOTREACHED();
43 if (signals_state)
44 *signals_state = HandleSignalsState();
47 void MessagePipeEndpoint::Attach(ChannelEndpoint* /*channel_endpoint*/) {
48 NOTREACHED();
51 } // namespace system
52 } // namespace mojo