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

Unified Diff: android_webview/common/aw_message_port_messages.h

Issue 956763002: Implement the close() API for Message ports (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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: android_webview/common/aw_message_port_messages.h
diff --git a/android_webview/common/aw_message_port_messages.h b/android_webview/common/aw_message_port_messages.h
index 00ec171a7d7f38edb5b7e2c149ee1ed0258f051b..459c3c70eab8b15782adfbe579410a6ab0e8877f 100644
--- a/android_webview/common/aw_message_port_messages.h
+++ b/android_webview/common/aw_message_port_messages.h
@@ -53,10 +53,11 @@ IPC_MESSAGE_ROUTED3(AwMessagePortMsg_WebToAppMessage,
// are outgoing from Webview to JS.
// TODO(sgurun) when we start supporting other types, use a ListValue instead
// of string16
-IPC_MESSAGE_ROUTED3(AwMessagePortMsg_AppToWebMessage,
+IPC_MESSAGE_ROUTED4(AwMessagePortMsg_AppToWebMessage,
int /* recipient message port id */,
base::string16 /* message */,
- std::vector<int> /* sent message port_ids */)
+ std::vector<int> /* sent message port_ids */,
+ bool /* whether to close the message port */)
mnaganov (inactive) 2015/02/25 10:36:26 As for the port closing message there is no actual
sgurun-gerrit only 2015/02/25 20:06:37 I think a special IPC would also work and the code
//-----------------------------------------------------------------------------
// These are messages sent from the renderer to the browser process.
@@ -68,7 +69,8 @@ IPC_MESSAGE_ROUTED3(AwMessagePortHostMsg_ConvertedWebToAppMessage,
std::vector<int> /* sent message port_ids */)
// Response to AwMessagePortMessage_AppToWebMessage
-IPC_MESSAGE_ROUTED3(AwMessagePortHostMsg_ConvertedAppToWebMessage,
+IPC_MESSAGE_ROUTED4(AwMessagePortHostMsg_ConvertedAppToWebMessage,
int /* recipient message port id */,
base::string16 /* converted message */,
- std::vector<int> /* sent message port_ids */)
+ std::vector<int> /* sent message port_ids */,
+ bool /* whether to close the message port */)

Powered by Google App Engine
This is Rietveld 408576698