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

Unified Diff: mojo/system/message_pipe.h

Issue 240133005: Mojo: Make some attempts towards fixing remote message pipe closure. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
Index: mojo/system/message_pipe.h
diff --git a/mojo/system/message_pipe.h b/mojo/system/message_pipe.h
index 85cce0ae3d7d01cbc01c2cfe32df907d78fcccf1..6392ab3530391c79303b29607d6b65a17ca32595 100644
--- a/mojo/system/message_pipe.h
+++ b/mojo/system/message_pipe.h
@@ -81,10 +81,11 @@ class MOJO_SYSTEM_IMPL_EXPORT MessagePipe :
std::vector<DispatcherTransport>* transports);
// These are used by |Channel|.
- void Attach(unsigned port,
+ bool Attach(unsigned port,
scoped_refptr<Channel> channel,
MessageInTransit::EndpointId local_id);
void Run(unsigned port, MessageInTransit::EndpointId remote_id);
+ void OnRemove(unsigned port);
private:
friend class base::RefCountedThreadSafe<MessagePipe>;

Powered by Google App Engine
This is Rietveld 408576698