Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(100)

Side by Side Diff: mojo/system/message_pipe_endpoint.cc

Issue 60103005: Mojo: First stab at making MessagePipes work across OS pipes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 9
9 namespace mojo { 10 namespace mojo {
10 namespace system { 11 namespace system {
11 12
12 void MessagePipeEndpoint::CancelAllWaiters() { 13 void MessagePipeEndpoint::CancelAllWaiters() {
13 NOTREACHED(); 14 NOTREACHED();
14 } 15 }
15 16
16 void MessagePipeEndpoint::Close() {
17 NOTREACHED();
18 }
19
20 MojoResult MessagePipeEndpoint::ReadMessage( 17 MojoResult MessagePipeEndpoint::ReadMessage(
21 void* /*bytes*/, uint32_t* /*num_bytes*/, 18 void* /*bytes*/, uint32_t* /*num_bytes*/,
22 MojoHandle* /*handles*/, uint32_t* /*num_handles*/, 19 MojoHandle* /*handles*/, uint32_t* /*num_handles*/,
23 MojoReadMessageFlags /*flags*/) { 20 MojoReadMessageFlags /*flags*/) {
24 NOTREACHED(); 21 NOTREACHED();
25 return MOJO_RESULT_INTERNAL; 22 return MOJO_RESULT_INTERNAL;
26 } 23 }
27 24
28 MojoResult MessagePipeEndpoint::AddWaiter(Waiter* /*waiter*/, 25 MojoResult MessagePipeEndpoint::AddWaiter(Waiter* /*waiter*/,
29 MojoWaitFlags /*flags*/, 26 MojoWaitFlags /*flags*/,
30 MojoResult /*wake_result*/) { 27 MojoResult /*wake_result*/) {
31 NOTREACHED(); 28 NOTREACHED();
32 return MOJO_RESULT_INTERNAL; 29 return MOJO_RESULT_INTERNAL;
33 } 30 }
34 31
35 void MessagePipeEndpoint::RemoveWaiter(Waiter* /*waiter*/) { 32 void MessagePipeEndpoint::RemoveWaiter(Waiter* /*waiter*/) {
36 NOTREACHED(); 33 NOTREACHED();
37 } 34 }
38 35
36 void MessagePipeEndpoint::Attach(scoped_refptr<Channel> /*channel*/,
37 MessageInTransit::EndpointId /*local_id*/) {
38 NOTREACHED();
39 }
40
41 bool MessagePipeEndpoint::Run(MessageInTransit::EndpointId /*remote_id*/) {
42 NOTREACHED();
43 return true;
44 }
45
39 } // namespace system 46 } // namespace system
40 } // namespace mojo 47 } // namespace mojo
41 48
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698