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

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

Issue 1483823004: EDK: Move {platform_handle,scoped_platform_handle}.* to //mojo/edk/platform. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years 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/message_pipe.cc ('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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 void RemoveAwakableImplNoLock(Awakable* awakable, 99 void RemoveAwakableImplNoLock(Awakable* awakable,
100 HandleSignalsState* signals_state) override; 100 HandleSignalsState* signals_state) override;
101 void StartSerializeImplNoLock(Channel* channel, 101 void StartSerializeImplNoLock(Channel* channel,
102 size_t* max_size, 102 size_t* max_size,
103 size_t* max_platform_handles) override 103 size_t* max_platform_handles) override
104 MOJO_NOT_THREAD_SAFE; 104 MOJO_NOT_THREAD_SAFE;
105 bool EndSerializeAndCloseImplNoLock( 105 bool EndSerializeAndCloseImplNoLock(
106 Channel* channel, 106 Channel* channel,
107 void* destination, 107 void* destination,
108 size_t* actual_size, 108 size_t* actual_size,
109 std::vector<embedder::ScopedPlatformHandle>* platform_handles) override 109 std::vector<platform::ScopedPlatformHandle>* platform_handles) override
110 MOJO_NOT_THREAD_SAFE; 110 MOJO_NOT_THREAD_SAFE;
111 111
112 // This will be null if closed. 112 // This will be null if closed.
113 util::RefPtr<MessagePipe> message_pipe_ MOJO_GUARDED_BY(mutex()); 113 util::RefPtr<MessagePipe> message_pipe_ MOJO_GUARDED_BY(mutex());
114 unsigned port_ MOJO_GUARDED_BY(mutex()); 114 unsigned port_ MOJO_GUARDED_BY(mutex());
115 115
116 MOJO_DISALLOW_COPY_AND_ASSIGN(MessagePipeDispatcher); 116 MOJO_DISALLOW_COPY_AND_ASSIGN(MessagePipeDispatcher);
117 }; 117 };
118 118
119 class MessagePipeDispatcherTransport : public DispatcherTransport { 119 class MessagePipeDispatcherTransport : public DispatcherTransport {
(...skipping 10 matching lines...) Expand all
130 return static_cast<MessagePipeDispatcher*>(dispatcher()); 130 return static_cast<MessagePipeDispatcher*>(dispatcher());
131 } 131 }
132 132
133 // Copy and assign allowed. 133 // Copy and assign allowed.
134 }; 134 };
135 135
136 } // namespace system 136 } // namespace system
137 } // namespace mojo 137 } // namespace mojo
138 138
139 #endif // MOJO_EDK_SYSTEM_MESSAGE_PIPE_DISPATCHER_H_ 139 #endif // MOJO_EDK_SYSTEM_MESSAGE_PIPE_DISPATCHER_H_
OLDNEW
« no previous file with comments | « mojo/edk/system/message_pipe.cc ('k') | mojo/edk/system/message_pipe_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698