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

Side by Side Diff: mojo/edk/system/message_pipe_dispatcher.h

Issue 1915153002: EDK: Add Dispatcher::SupportsEntrypointClass(). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 8 months 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
« no previous file with comments | « mojo/edk/system/dispatcher.h ('k') | mojo/edk/system/message_pipe_dispatcher.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 #ifndef MOJO_EDK_SYSTEM_MESSAGE_PIPE_DISPATCHER_H_ 5 #ifndef MOJO_EDK_SYSTEM_MESSAGE_PIPE_DISPATCHER_H_
6 #define MOJO_EDK_SYSTEM_MESSAGE_PIPE_DISPATCHER_H_ 6 #define MOJO_EDK_SYSTEM_MESSAGE_PIPE_DISPATCHER_H_
7 7
8 #include "mojo/edk/system/dispatcher.h" 8 #include "mojo/edk/system/dispatcher.h"
9 #include "mojo/edk/system/memory.h" 9 #include "mojo/edk/system/memory.h"
10 #include "mojo/edk/util/ref_ptr.h" 10 #include "mojo/edk/util/ref_ptr.h"
(...skipping 29 matching lines...) Expand all
40 static MojoResult ValidateCreateOptions( 40 static MojoResult ValidateCreateOptions(
41 UserPointer<const MojoCreateMessagePipeOptions> in_options, 41 UserPointer<const MojoCreateMessagePipeOptions> in_options,
42 MojoCreateMessagePipeOptions* out_options); 42 MojoCreateMessagePipeOptions* out_options);
43 43
44 // Must be called before any other methods. (This method is not thread-safe.) 44 // Must be called before any other methods. (This method is not thread-safe.)
45 void Init(util::RefPtr<MessagePipe>&& message_pipe, 45 void Init(util::RefPtr<MessagePipe>&& message_pipe,
46 unsigned port) MOJO_NOT_THREAD_SAFE; 46 unsigned port) MOJO_NOT_THREAD_SAFE;
47 47
48 // |Dispatcher| public methods: 48 // |Dispatcher| public methods:
49 Type GetType() const override; 49 Type GetType() const override;
50 bool SupportsEntrypointClass(EntrypointClass entrypoint_class) const override;
50 51
51 // Creates a |MessagePipe| with a local endpoint (at port 0) and a proxy 52 // Creates a |MessagePipe| with a local endpoint (at port 0) and a proxy
52 // endpoint, and creates/initializes a |MessagePipeDispatcher| (attached to 53 // endpoint, and creates/initializes a |MessagePipeDispatcher| (attached to
53 // the message pipe, port 0). 54 // the message pipe, port 0).
54 // TODO(vtl): This currently uses |kDefaultCreateOptions|, which is okay since 55 // TODO(vtl): This currently uses |kDefaultCreateOptions|, which is okay since
55 // there aren't any options, but eventually options should be plumbed through. 56 // there aren't any options, but eventually options should be plumbed through.
56 static util::RefPtr<MessagePipeDispatcher> CreateRemoteMessagePipe( 57 static util::RefPtr<MessagePipeDispatcher> CreateRemoteMessagePipe(
57 util::RefPtr<ChannelEndpoint>* channel_endpoint); 58 util::RefPtr<ChannelEndpoint>* channel_endpoint);
58 59
59 // The "opposite" of |SerializeAndClose()|. (Typically this is called by 60 // The "opposite" of |SerializeAndClose()|. (Typically this is called by
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 return static_cast<MessagePipeDispatcher*>(dispatcher()); 131 return static_cast<MessagePipeDispatcher*>(dispatcher());
131 } 132 }
132 133
133 // Copy and assign allowed. 134 // Copy and assign allowed.
134 }; 135 };
135 136
136 } // namespace system 137 } // namespace system
137 } // namespace mojo 138 } // namespace mojo
138 139
139 #endif // MOJO_EDK_SYSTEM_MESSAGE_PIPE_DISPATCHER_H_ 140 #endif // MOJO_EDK_SYSTEM_MESSAGE_PIPE_DISPATCHER_H_
OLDNEW
« no previous file with comments | « mojo/edk/system/dispatcher.h ('k') | mojo/edk/system/message_pipe_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698