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

Unified Diff: mojo/public/cpp/bindings/lib/control_message_proxy.h

Issue 2332353004: Mojo C++ bindings: support closing [Associated]InterfaceRequest with reason. (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/interface_request.h ('k') | mojo/public/cpp/bindings/lib/control_message_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 35a409914180c6eca95eab1c65380963b0904dd0..557d5297288579d77ed64a7aa6609b7bf4c9ff92 100644
--- a/mojo/public/cpp/bindings/lib/control_message_proxy.h
+++ b/mojo/public/cpp/bindings/lib/control_message_proxy.h
@@ -12,11 +12,10 @@
#include "base/callback.h"
#include "base/macros.h"
#include "mojo/public/cpp/bindings/lib/serialization_context.h"
+#include "mojo/public/cpp/bindings/message.h"
namespace mojo {
-class MessageReceiverWithResponder;
-
namespace internal {
// Proxy for request messages defined in interface_control_messages.mojom.
@@ -35,12 +34,15 @@ class ControlMessageProxy {
void OnConnectionError();
+ static Message ConstructDisconnectReasonMessage(
+ uint32_t custom_reason,
+ const std::string& description);
+
private:
void RunFlushForTestingClosure();
// Not owned.
MessageReceiverWithResponder* receiver_;
- SerializationContext context_;
bool encountered_error_ = false;
base::Closure run_loop_quit_closure_;
« no previous file with comments | « mojo/public/cpp/bindings/interface_request.h ('k') | mojo/public/cpp/bindings/lib/control_message_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698