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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Multiply-included file, no traditional include guard. 5 // Multiply-included file, no traditional include guard.
6 #include <vector> 6 #include <vector>
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "ipc/ipc_message_macros.h" 9 #include "ipc/ipc_message_macros.h"
10 10
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 IPC_MESSAGE_ROUTED3(AwMessagePortMsg_WebToAppMessage, 46 IPC_MESSAGE_ROUTED3(AwMessagePortMsg_WebToAppMessage,
47 int /* recipient message port id */, 47 int /* recipient message port id */,
48 base::string16 /* message */, 48 base::string16 /* message */,
49 std::vector<int> /* sent message port_ids */) 49 std::vector<int> /* sent message port_ids */)
50 50
51 // Tells the renderer to convert the message from a String16 51 // Tells the renderer to convert the message from a String16
52 // format to a WebSerializedScriptValue. This IPC is used for messages that 52 // format to a WebSerializedScriptValue. This IPC is used for messages that
53 // are outgoing from Webview to JS. 53 // are outgoing from Webview to JS.
54 // TODO(sgurun) when we start supporting other types, use a ListValue instead 54 // TODO(sgurun) when we start supporting other types, use a ListValue instead
55 // of string16 55 // of string16
56 IPC_MESSAGE_ROUTED3(AwMessagePortMsg_AppToWebMessage, 56 IPC_MESSAGE_ROUTED4(AwMessagePortMsg_AppToWebMessage,
57 int /* recipient message port id */, 57 int /* recipient message port id */,
58 base::string16 /* message */, 58 base::string16 /* message */,
59 std::vector<int> /* sent message port_ids */) 59 std::vector<int> /* sent message port_ids */,
60 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
60 61
61 //----------------------------------------------------------------------------- 62 //-----------------------------------------------------------------------------
62 // These are messages sent from the renderer to the browser process. 63 // These are messages sent from the renderer to the browser process.
63 64
64 // Response to AwMessagePortMessage_WebToAppMessage 65 // Response to AwMessagePortMessage_WebToAppMessage
65 IPC_MESSAGE_ROUTED3(AwMessagePortHostMsg_ConvertedWebToAppMessage, 66 IPC_MESSAGE_ROUTED3(AwMessagePortHostMsg_ConvertedWebToAppMessage,
66 int /* recipient message port id */, 67 int /* recipient message port id */,
67 base::ListValue /* converted message */, 68 base::ListValue /* converted message */,
68 std::vector<int> /* sent message port_ids */) 69 std::vector<int> /* sent message port_ids */)
69 70
70 // Response to AwMessagePortMessage_AppToWebMessage 71 // Response to AwMessagePortMessage_AppToWebMessage
71 IPC_MESSAGE_ROUTED3(AwMessagePortHostMsg_ConvertedAppToWebMessage, 72 IPC_MESSAGE_ROUTED4(AwMessagePortHostMsg_ConvertedAppToWebMessage,
72 int /* recipient message port id */, 73 int /* recipient message port id */,
73 base::string16 /* converted message */, 74 base::string16 /* converted message */,
74 std::vector<int> /* sent message port_ids */) 75 std::vector<int> /* sent message port_ids */,
76 bool /* whether to close the message port */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698