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

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

Issue 2318793002: Mojo C++ bindings: support disconnect with a 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
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 c3260d1095f9dc65d8f9b82f551696af1be52627..35a409914180c6eca95eab1c65380963b0904dd0 100644
--- a/mojo/public/cpp/bindings/lib/control_message_proxy.h
+++ b/mojo/public/cpp/bindings/lib/control_message_proxy.h
@@ -7,6 +7,8 @@
#include <stdint.h>
+#include <string>
+
#include "base/callback.h"
#include "base/macros.h"
#include "mojo/public/cpp/bindings/lib/serialization_context.h"
@@ -28,6 +30,8 @@ class ControlMessageProxy {
void RequireVersion(uint32_t version);
void FlushForTesting();
+ void SendDisconnectReason(uint32_t custom_reason,
+ const std::string& description);
void OnConnectionError();
« no previous file with comments | « mojo/public/cpp/bindings/lib/control_message_handler.cc ('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