| Index: mojo/public/cpp/bindings/lib/control_message_proxy.h
|
| diff --git a/mojo/public/cpp/bindings/lib/control_message_proxy.h b/mojo/public/cpp/bindings/lib/control_message_proxy.h
|
| index 5ec6ddca351e7ce675cb143b3fe0a77c406d2f90..dd81bc376d8ca54a5239f70ac9e62786488cbed2 100644
|
| --- a/mojo/public/cpp/bindings/lib/control_message_proxy.h
|
| +++ b/mojo/public/cpp/bindings/lib/control_message_proxy.h
|
| @@ -7,7 +7,7 @@
|
|
|
| #include <stdint.h>
|
|
|
| -#include "base/callback_forward.h"
|
| +#include "base/callback.h"
|
| #include "base/macros.h"
|
| #include "mojo/public/cpp/bindings/lib/serialization_context.h"
|
|
|
| @@ -22,15 +22,25 @@ class ControlMessageProxy {
|
| public:
|
| // Doesn't take ownership of |receiver|. It must outlive this object.
|
| explicit ControlMessageProxy(MessageReceiverWithResponder* receiver);
|
| + ~ControlMessageProxy();
|
|
|
| void QueryVersion(const base::Callback<void(uint32_t)>& callback);
|
| void RequireVersion(uint32_t version);
|
|
|
| + void FlushForTesting();
|
| +
|
| + void OnConnectionError();
|
| +
|
| protected:
|
| // Not owned.
|
| MessageReceiverWithResponder* receiver_;
|
| SerializationContext context_;
|
|
|
| + private:
|
| + void RunFlushForTestingClosure();
|
| +
|
| + base::Closure run_loop_quit_closure_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(ControlMessageProxy);
|
| };
|
|
|
|
|