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

Unified Diff: mojo/system/raw_channel.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/raw_channel.h
diff --git a/mojo/system/raw_channel.h b/mojo/system/raw_channel.h
index 0c19ad03906d01c75d337853eda9288c3ce75bb7..f6b1b4a07fbce9a53ac7464cf45c6674cd413adf 100644
--- a/mojo/system/raw_channel.h
+++ b/mojo/system/raw_channel.h
@@ -46,7 +46,7 @@ class MOJO_SYSTEM_EXPORT RawChannel {
// The |Delegate| is only accessed on the same thread as the message loop
// (passed in on creation).
- class Delegate {
+ class MOJO_SYSTEM_EXPORT Delegate {
public:
enum FatalError {
FATAL_ERROR_UNKNOWN = 0,
@@ -73,8 +73,9 @@ class MOJO_SYSTEM_EXPORT RawChannel {
Delegate* delegate,
base::MessageLoop* message_loop);
- // This must be called (on the I/O thread) before this object is used.
- virtual void Init() = 0;
+ // This must be called (on the I/O thread) before this object is used. Returns
+ // true on success. On failure, |Shutdown()| should *not* be called.
+ virtual bool Init() = 0;
// This must be called (on the I/O thread) before this object is destroyed.
virtual void Shutdown() = 0;

Powered by Google App Engine
This is Rietveld 408576698