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

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

Issue 2135113002: [mojo-edk] Close pending merges if the parent channel dies. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert stuff for merge. Created 4 years, 5 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 | « no previous file | mojo/edk/system/node_channel.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 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_NODE_CHANNEL_H_ 5 #ifndef MOJO_EDK_SYSTEM_NODE_CHANNEL_H_
6 #define MOJO_EDK_SYSTEM_NODE_CHANNEL_H_ 6 #define MOJO_EDK_SYSTEM_NODE_CHANNEL_H_
7 7
8 #include <queue> 8 #include <queue>
9 #include <unordered_map> 9 #include <unordered_map>
10 #include <utility> 10 #include <utility>
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 #if defined(OS_WIN) || (defined(OS_MACOSX) && !defined(OS_IOS)) 70 #if defined(OS_WIN) || (defined(OS_MACOSX) && !defined(OS_IOS))
71 virtual void OnRelayPortsMessage(const ports::NodeName& from_node, 71 virtual void OnRelayPortsMessage(const ports::NodeName& from_node,
72 base::ProcessHandle from_process, 72 base::ProcessHandle from_process,
73 const ports::NodeName& destination, 73 const ports::NodeName& destination,
74 Channel::MessagePtr message) = 0; 74 Channel::MessagePtr message) = 0;
75 virtual void OnPortsMessageFromRelay(const ports::NodeName& from_node, 75 virtual void OnPortsMessageFromRelay(const ports::NodeName& from_node,
76 const ports::NodeName& source_node, 76 const ports::NodeName& source_node,
77 Channel::MessagePtr message) = 0; 77 Channel::MessagePtr message) = 0;
78 #endif 78 #endif
79 79
80 virtual void OnChannelError(const ports::NodeName& node) = 0; 80 virtual void OnChannelError(const ports::NodeName& node,
81 NodeChannel* channel) = 0;
81 82
82 #if defined(OS_MACOSX) && !defined(OS_IOS) 83 #if defined(OS_MACOSX) && !defined(OS_IOS)
83 virtual MachPortRelay* GetMachPortRelay() = 0; 84 virtual MachPortRelay* GetMachPortRelay() = 0;
84 #endif 85 #endif
85 }; 86 };
86 87
87 static scoped_refptr<NodeChannel> Create( 88 static scoped_refptr<NodeChannel> Create(
88 Delegate* delegate, 89 Delegate* delegate,
89 ScopedPlatformHandle platform_handle, 90 ScopedPlatformHandle platform_handle,
90 scoped_refptr<base::TaskRunner> io_task_runner, 91 scoped_refptr<base::TaskRunner> io_task_runner,
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 PendingRelayMessageQueue pending_relay_messages_; 203 PendingRelayMessageQueue pending_relay_messages_;
203 #endif 204 #endif
204 205
205 DISALLOW_COPY_AND_ASSIGN(NodeChannel); 206 DISALLOW_COPY_AND_ASSIGN(NodeChannel);
206 }; 207 };
207 208
208 } // namespace edk 209 } // namespace edk
209 } // namespace mojo 210 } // namespace mojo
210 211
211 #endif // MOJO_EDK_SYSTEM_NODE_CHANNEL_H_ 212 #endif // MOJO_EDK_SYSTEM_NODE_CHANNEL_H_
OLDNEW
« no previous file with comments | « no previous file | mojo/edk/system/node_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698