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

Side by Side Diff: mojo/edk/system/ports/node.h

Issue 1975073002: [mojo-edk] Broadcast surprise port disruptions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@reenable-clean-shutdown
Patch Set: rebase Created 4 years, 7 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_PORTS_NODE_H_ 5 #ifndef MOJO_EDK_SYSTEM_PORTS_NODE_H_
6 #define MOJO_EDK_SYSTEM_PORTS_NODE_H_ 6 #define MOJO_EDK_SYSTEM_PORTS_NODE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 int AcceptPort(const PortName& port_name, 169 int AcceptPort(const PortName& port_name,
170 const PortDescriptor& port_descriptor); 170 const PortDescriptor& port_descriptor);
171 171
172 int WillSendMessage_Locked(Port* port, 172 int WillSendMessage_Locked(Port* port,
173 const PortName& port_name, 173 const PortName& port_name,
174 Message* message); 174 Message* message);
175 int BeginProxying_Locked(Port* port, const PortName& port_name); 175 int BeginProxying_Locked(Port* port, const PortName& port_name);
176 int ForwardMessages_Locked(Port* port, const PortName& port_name); 176 int ForwardMessages_Locked(Port* port, const PortName& port_name);
177 void InitiateProxyRemoval_Locked(Port* port, const PortName& port_name); 177 void InitiateProxyRemoval_Locked(Port* port, const PortName& port_name);
178 void MaybeRemoveProxy_Locked(Port* port, const PortName& port_name); 178 void MaybeRemoveProxy_Locked(Port* port, const PortName& port_name);
179 void DestroyAllPortsWithPeer(const NodeName& node_name,
180 const PortName& port_name);
179 181
180 ScopedMessage NewInternalMessage_Helper(const PortName& port_name, 182 ScopedMessage NewInternalMessage_Helper(const PortName& port_name,
181 const EventType& type, 183 const EventType& type,
182 const void* data, 184 const void* data,
183 size_t num_data_bytes); 185 size_t num_data_bytes);
184 186
185 ScopedMessage NewInternalMessage(const PortName& port_name, 187 ScopedMessage NewInternalMessage(const PortName& port_name,
186 const EventType& type) { 188 const EventType& type) {
187 return NewInternalMessage_Helper(port_name, type, nullptr, 0); 189 return NewInternalMessage_Helper(port_name, type, nullptr, 0);
188 } 190 }
(...skipping 16 matching lines...) Expand all
205 std::unordered_map<PortName, scoped_refptr<Port>> ports_; 207 std::unordered_map<PortName, scoped_refptr<Port>> ports_;
206 208
207 DISALLOW_COPY_AND_ASSIGN(Node); 209 DISALLOW_COPY_AND_ASSIGN(Node);
208 }; 210 };
209 211
210 } // namespace ports 212 } // namespace ports
211 } // namespace edk 213 } // namespace edk
212 } // namespace mojo 214 } // namespace mojo
213 215
214 #endif // MOJO_EDK_SYSTEM_PORTS_NODE_H_ 216 #endif // MOJO_EDK_SYSTEM_PORTS_NODE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698