| 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;
|
|
|