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

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

Issue 66963005: Mojo: Implement local passing of MessagePipes. (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
« no previous file with comments | « mojo/system/message_pipe_endpoint.h ('k') | mojo/system/simple_dispatcher_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "mojo/system/channel.h"
9 9
10 namespace mojo { 10 namespace mojo {
11 namespace system { 11 namespace system {
12 12
13 void MessagePipeEndpoint::CancelAllWaiters() { 13 void MessagePipeEndpoint::CancelAllWaiters() {
14 NOTREACHED(); 14 NOTREACHED();
15 } 15 }
16 16
17 MojoResult MessagePipeEndpoint::ReadMessage( 17 MojoResult MessagePipeEndpoint::ReadMessage(
18 void* /*bytes*/, uint32_t* /*num_bytes*/, 18 void* /*bytes*/, uint32_t* /*num_bytes*/,
19 uint32_t /*max_num_dispatchers*/,
20 std::vector<scoped_refptr<Dispatcher> >* /*dispatchers*/, 19 std::vector<scoped_refptr<Dispatcher> >* /*dispatchers*/,
20 uint32_t* /*num_dispatchers*/,
21 MojoReadMessageFlags /*flags*/) { 21 MojoReadMessageFlags /*flags*/) {
22 NOTREACHED(); 22 NOTREACHED();
23 return MOJO_RESULT_INTERNAL; 23 return MOJO_RESULT_INTERNAL;
24 } 24 }
25 25
26 MojoResult MessagePipeEndpoint::AddWaiter(Waiter* /*waiter*/, 26 MojoResult MessagePipeEndpoint::AddWaiter(Waiter* /*waiter*/,
27 MojoWaitFlags /*flags*/, 27 MojoWaitFlags /*flags*/,
28 MojoResult /*wake_result*/) { 28 MojoResult /*wake_result*/) {
29 NOTREACHED(); 29 NOTREACHED();
30 return MOJO_RESULT_INTERNAL; 30 return MOJO_RESULT_INTERNAL;
31 } 31 }
32 32
33 void MessagePipeEndpoint::RemoveWaiter(Waiter* /*waiter*/) { 33 void MessagePipeEndpoint::RemoveWaiter(Waiter* /*waiter*/) {
34 NOTREACHED(); 34 NOTREACHED();
35 } 35 }
36 36
37 void MessagePipeEndpoint::Attach(scoped_refptr<Channel> /*channel*/, 37 void MessagePipeEndpoint::Attach(scoped_refptr<Channel> /*channel*/,
38 MessageInTransit::EndpointId /*local_id*/) { 38 MessageInTransit::EndpointId /*local_id*/) {
39 NOTREACHED(); 39 NOTREACHED();
40 } 40 }
41 41
42 bool MessagePipeEndpoint::Run(MessageInTransit::EndpointId /*remote_id*/) { 42 bool MessagePipeEndpoint::Run(MessageInTransit::EndpointId /*remote_id*/) {
43 NOTREACHED(); 43 NOTREACHED();
44 return true; 44 return true;
45 } 45 }
46 46
47 } // namespace system 47 } // namespace system
48 } // namespace mojo 48 } // namespace mojo
49 49
OLDNEW
« no previous file with comments | « mojo/system/message_pipe_endpoint.h ('k') | mojo/system/simple_dispatcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698