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

Unified Diff: mojo/system/local_message_pipe_endpoint.h

Issue 60103005: Mojo: First stab at making MessagePipes work across OS pipes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years, 1 month 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/local_message_pipe_endpoint.h
diff --git a/mojo/system/local_message_pipe_endpoint.h b/mojo/system/local_message_pipe_endpoint.h
index caed81df6e6de527957b3bd4aa073318fd5133a1..7e8703dd573bef539abf81d6d0a689156a5a8b5f 100644
--- a/mojo/system/local_message_pipe_endpoint.h
+++ b/mojo/system/local_message_pipe_endpoint.h
@@ -10,30 +10,26 @@
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "mojo/public/system/core.h"
+#include "mojo/public/system/system_export.h"
#include "mojo/system/message_pipe_endpoint.h"
#include "mojo/system/waiter_list.h"
namespace mojo {
namespace system {
-class MessageInTransit;
-
-class LocalMessagePipeEndpoint : public MessagePipeEndpoint {
+class MOJO_SYSTEM_EXPORT LocalMessagePipeEndpoint : public MessagePipeEndpoint {
public:
LocalMessagePipeEndpoint();
virtual ~LocalMessagePipeEndpoint();
// |MessagePipeEndpoint| implementation:
- virtual void OnPeerClose() OVERRIDE;
- virtual MojoResult EnqueueMessage(
- const void* bytes, uint32_t num_bytes,
- const MojoHandle* handles, uint32_t num_handles,
- MojoWriteMessageFlags flags) OVERRIDE;
+ virtual void Close() OVERRIDE;
+ virtual bool OnPeerClose() OVERRIDE;
+ virtual MojoResult EnqueueMessage(MessageInTransit* message) OVERRIDE;
// There's a dispatcher for |LocalMessagePipeEndpoint|s, so we have to
// implement/override these:
virtual void CancelAllWaiters() OVERRIDE;
- virtual void Close() OVERRIDE;
virtual MojoResult ReadMessage(void* bytes, uint32_t* num_bytes,
MojoHandle* handles, uint32_t* num_handles,
MojoReadMessageFlags flags) OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698