| Index: mojo/public/cpp/bindings/lib/connector.h
|
| diff --git a/mojo/public/cpp/bindings/lib/connector.h b/mojo/public/cpp/bindings/lib/connector.h
|
| index dfbd514aff20810f4b44dcae77005c2046d51f71..7a105c753ef58a4d1973e89a51883fb0a2a24c1f 100644
|
| --- a/mojo/public/cpp/bindings/lib/connector.h
|
| +++ b/mojo/public/cpp/bindings/lib/connector.h
|
| @@ -66,14 +66,16 @@ class Connector : public MessageReceiver {
|
| // Is the connector bound to a MessagePipe handle?
|
| bool is_valid() const { return message_pipe_.is_valid(); }
|
|
|
| - // Waits for the next message on the pipe, blocking until one arrives or an
|
| - // error happens. Returns |true| if a message has been delivered, |false|
|
| - // otherwise.
|
| - bool WaitForIncomingMessage();
|
| + // Waits for the next message on the pipe, blocking until one arrives,
|
| + // |deadline| elapses, or an error happens. Returns |true| if a message has
|
| + // been delivered, |false| otherwise.
|
| + bool WaitForIncomingMessage(MojoDeadline deadline);
|
|
|
| // MessageReceiver implementation:
|
| bool Accept(Message* message) override;
|
|
|
| + MessagePipeHandle handle() const { return message_pipe_.get(); }
|
| +
|
| private:
|
| static void CallOnHandleReady(void* closure, MojoResult result);
|
| void OnHandleReady(MojoResult result);
|
|
|