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

Unified Diff: mojo/public/cpp/bindings/interface_endpoint_client.h

Issue 2280483002: Add FlushForTesting to InterfacePtr and Binding. (Closed)
Patch Set: Created 4 years, 3 months 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
« no previous file with comments | « mojo/public/cpp/bindings/binding_set.h ('k') | mojo/public/cpp/bindings/interface_ptr.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/cpp/bindings/interface_endpoint_client.h
diff --git a/mojo/public/cpp/bindings/interface_endpoint_client.h b/mojo/public/cpp/bindings/interface_endpoint_client.h
index af9347ccc2397b40dab84598be0eb548795bb670..e16bcd0a4884d420bb2782698bfe2d4bd87c6a59 100644
--- a/mojo/public/cpp/bindings/interface_endpoint_client.h
+++ b/mojo/public/cpp/bindings/interface_endpoint_client.h
@@ -18,6 +18,8 @@
#include "base/single_thread_task_runner.h"
#include "base/threading/thread_checker.h"
#include "mojo/public/cpp/bindings/filter_chain.h"
+#include "mojo/public/cpp/bindings/lib/control_message_handler.h"
+#include "mojo/public/cpp/bindings/lib/control_message_proxy.h"
#include "mojo/public/cpp/bindings/message.h"
#include "mojo/public/cpp/bindings/scoped_interface_endpoint_handle.h"
@@ -38,7 +40,8 @@ class InterfaceEndpointClient : public MessageReceiverWithResponder {
MessageReceiverWithResponderStatus* receiver,
std::unique_ptr<MessageReceiver> payload_validator,
bool expect_sync_requests,
- scoped_refptr<base::SingleThreadTaskRunner> runner);
+ scoped_refptr<base::SingleThreadTaskRunner> runner,
+ uint32_t interface_version);
~InterfaceEndpointClient() override;
// Sets the error handler to receive notifications when an error is
@@ -89,6 +92,10 @@ class InterfaceEndpointClient : public MessageReceiverWithResponder {
bool HandleIncomingMessage(Message* message);
void NotifyError();
+ internal::ControlMessageProxy* control_message_proxy() {
+ return &control_message_proxy_;
+ }
+
private:
// Maps from the id of a response to the MessageReceiver that handles the
// response.
@@ -147,6 +154,9 @@ class InterfaceEndpointClient : public MessageReceiverWithResponder {
scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
+ internal::ControlMessageProxy control_message_proxy_;
+ internal::ControlMessageHandler control_message_handler_;
+
base::ThreadChecker thread_checker_;
base::WeakPtrFactory<InterfaceEndpointClient> weak_ptr_factory_;
« no previous file with comments | « mojo/public/cpp/bindings/binding_set.h ('k') | mojo/public/cpp/bindings/interface_ptr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698