| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 // IPC messages for interacting with frames. | 5 // IPC messages for interacting with frames. |
| 6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 1138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1149 std::string /* new encoding name */) | 1149 std::string /* new encoding name */) |
| 1150 | 1150 |
| 1151 // Following message is used to communicate the values received by the | 1151 // Following message is used to communicate the values received by the |
| 1152 // callback binding the JS to Cpp. | 1152 // callback binding the JS to Cpp. |
| 1153 // An instance of browser that has an automation host listening to it can | 1153 // An instance of browser that has an automation host listening to it can |
| 1154 // have a javascript send a native value (string, number, boolean) to the | 1154 // have a javascript send a native value (string, number, boolean) to the |
| 1155 // listener in Cpp. (DomAutomationController) | 1155 // listener in Cpp. (DomAutomationController) |
| 1156 IPC_MESSAGE_ROUTED1(FrameHostMsg_DomOperationResponse, | 1156 IPC_MESSAGE_ROUTED1(FrameHostMsg_DomOperationResponse, |
| 1157 std::string /* json_string */) | 1157 std::string /* json_string */) |
| 1158 | 1158 |
| 1159 // Used to set a cookie. The cookie is set asynchronously, but will be | |
| 1160 // available to a subsequent FrameHostMsg_GetCookies request. | |
| 1161 IPC_MESSAGE_CONTROL4(FrameHostMsg_SetCookie, | |
| 1162 int /* render_frame_id */, | |
| 1163 GURL /* url */, | |
| 1164 GURL /* first_party_for_cookies */, | |
| 1165 std::string /* cookie */) | |
| 1166 | |
| 1167 // Used to get cookies for the given URL. This may block waiting for a | 1159 // Used to get cookies for the given URL. This may block waiting for a |
| 1168 // previous SetCookie message to be processed. | 1160 // previous SetCookie message to be processed. |
| 1169 IPC_SYNC_MESSAGE_CONTROL3_1(FrameHostMsg_GetCookies, | 1161 IPC_SYNC_MESSAGE_CONTROL3_1(FrameHostMsg_GetCookies, |
| 1170 int /* render_frame_id */, | 1162 int /* render_frame_id */, |
| 1171 GURL /* url */, | 1163 GURL /* url */, |
| 1172 GURL /* first_party_for_cookies */, | 1164 GURL /* first_party_for_cookies */, |
| 1173 std::string /* cookies */) | 1165 std::string /* cookies */) |
| 1174 | 1166 |
| 1175 // Used to check if cookies are enabled for the given URL. This may block | 1167 // Used to check if cookies are enabled for the given URL. This may block |
| 1176 // waiting for a previous SetCookie message to be processed. | 1168 // waiting for a previous SetCookie message to be processed. |
| (...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1576 // nearest find result in the sending frame. | 1568 // nearest find result in the sending frame. |
| 1577 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply, | 1569 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply, |
| 1578 int /* nfr_request_id */, | 1570 int /* nfr_request_id */, |
| 1579 float /* distance */) | 1571 float /* distance */) |
| 1580 #endif | 1572 #endif |
| 1581 | 1573 |
| 1582 // Adding a new message? Stick to the sort order above: first platform | 1574 // Adding a new message? Stick to the sort order above: first platform |
| 1583 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then | 1575 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then |
| 1584 // platform independent FrameHostMsg, then ifdefs for platform specific | 1576 // platform independent FrameHostMsg, then ifdefs for platform specific |
| 1585 // FrameHostMsg. | 1577 // FrameHostMsg. |
| OLD | NEW |