diff options
author | Luis Hector Chavez <lhchavez@google.com> | 2017-07-26 17:38:05 +0000 |
---|---|---|
committer | Luis Hector Chavez <lhchavez@google.com> | 2017-07-26 17:38:05 +0000 |
commit | 21a249e4d9cb0b2ec6f0ff84ed5f7939ea67ac52 (patch) | |
tree | d380c2689495d31fd250cf8f1d0ceebbdd4cf250 /mojo/public/cpp/bindings/lib/control_message_proxy.h | |
parent | 8ac9103e05b66812c25348943383f9365d1ce3e0 (diff) | |
download | libmojo-21a249e4d9cb0b2ec6f0ff84ed5f7939ea67ac52.tar.gz |
Revert "libmojo: Uprev the library to r456626 from Chromium"
This reverts commit 8ac9103e05b66812c25348943383f9365d1ce3e0.
Reason for revert: Broke the mac_sdk
Exempt-From-Owner-Approval: Fixing mac_sdk
Change-Id: I0b74d1abaa66933a93fd6f82ff018e8948c1204e
Diffstat (limited to 'mojo/public/cpp/bindings/lib/control_message_proxy.h')
-rw-r--r-- | mojo/public/cpp/bindings/lib/control_message_proxy.h | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/mojo/public/cpp/bindings/lib/control_message_proxy.h b/mojo/public/cpp/bindings/lib/control_message_proxy.h index 2f9314e..5ec6ddc 100644 --- a/mojo/public/cpp/bindings/lib/control_message_proxy.h +++ b/mojo/public/cpp/bindings/lib/control_message_proxy.h @@ -7,9 +7,8 @@ #include <stdint.h> -#include "base/callback.h" +#include "base/callback_forward.h" #include "base/macros.h" -#include "mojo/public/cpp/bindings/bindings_export.h" #include "mojo/public/cpp/bindings/lib/serialization_context.h" namespace mojo { @@ -19,26 +18,18 @@ class MessageReceiverWithResponder; namespace internal { // Proxy for request messages defined in interface_control_messages.mojom. -class MOJO_CPP_BINDINGS_EXPORT ControlMessageProxy { +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(); - - private: - void RunFlushForTestingClosure(); - + protected: // Not owned. MessageReceiverWithResponder* receiver_; - bool encountered_error_ = false; - - base::Closure run_loop_quit_closure_; + SerializationContext context_; DISALLOW_COPY_AND_ASSIGN(ControlMessageProxy); }; |