OLD | NEW |
---|---|
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 Loading... | |
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 */) | |
OLD | NEW |