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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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_ROUTED3(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 | 60 |
61 // Used to defer message port closing until after all in-flight messages | |
62 // are flushed from renderer to browser. Renderer piggy-backs the message | |
63 // to browser. | |
64 IPC_MESSAGE_ROUTED1(AwMessagePortMsg_ClosePort, | |
65 int /* message port id */) | |
66 | |
61 //----------------------------------------------------------------------------- | 67 //----------------------------------------------------------------------------- |
62 // These are messages sent from the renderer to the browser process. | 68 // These are messages sent from the renderer to the browser process. |
63 | 69 |
64 // Response to AwMessagePortMessage_WebToAppMessage | 70 // Response to AwMessagePortMessage_WebToAppMessage |
65 IPC_MESSAGE_ROUTED3(AwMessagePortHostMsg_ConvertedWebToAppMessage, | 71 IPC_MESSAGE_ROUTED3(AwMessagePortHostMsg_ConvertedWebToAppMessage, |
66 int /* recipient message port id */, | 72 int /* recipient message port id */, |
67 base::ListValue /* converted message */, | 73 base::ListValue /* converted message */, |
68 std::vector<int> /* sent message port_ids */) | 74 std::vector<int> /* sent message port_ids */) |
69 | 75 |
70 // Response to AwMessagePortMessage_AppToWebMessage | 76 // Response to AwMessagePortMessage_AppToWebMessage |
71 IPC_MESSAGE_ROUTED3(AwMessagePortHostMsg_ConvertedAppToWebMessage, | 77 IPC_MESSAGE_ROUTED3(AwMessagePortHostMsg_ConvertedAppToWebMessage, |
72 int /* recipient message port id */, | 78 int /* recipient message port id */, |
73 base::string16 /* converted message */, | 79 base::string16 /* converted message */, |
74 std::vector<int> /* sent message port_ids */) | 80 std::vector<int> /* sent message port_ids */) |
81 | |
82 // Response to AwMessagePortMsg_ClosePort | |
83 IPC_MESSAGE_ROUTED1(AwMessagePortHostMsg_ClosePort, | |
nasko
2015/02/26 17:45:20
Since this is a response to a message sent from th
sgurun-gerrit only
2015/02/26 18:00:51
good point. done.
| |
84 int /* message port id */) | |
OLD | NEW |