OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // Defines the IPC messages used by the automation interface. | 5 // Defines the IPC messages used by the automation interface. |
6 | 6 |
7 // NOTE: All IPC messages have either a routing_id of 0 (for asynchronous | 7 // NOTE: All IPC messages have either a routing_id of 0 (for asynchronous |
8 // messages), or one that's been assigned by the proxy (for calls | 8 // messages), or one that's been assigned by the proxy (for calls |
9 // which expect a response). The routing_id shouldn't be used for | 9 // which expect a response). The routing_id shouldn't be used for |
10 // any other purpose in these message types. | 10 // any other purpose in these message types. |
(...skipping 1476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1487 IPC_SYNC_MESSAGE_CONTROL0_1(AutomationMsg_EndTracing, | 1487 IPC_SYNC_MESSAGE_CONTROL0_1(AutomationMsg_EndTracing, |
1488 bool /* success */) | 1488 bool /* success */) |
1489 | 1489 |
1490 // Retrieve trace event data (called after EndTracing). Must keep calling until | 1490 // Retrieve trace event data (called after EndTracing). Must keep calling until |
1491 // remaining_chunks is 0. | 1491 // remaining_chunks is 0. |
1492 // TODO(jbates): See bug 100255, IPC send fails if message is too big. This | 1492 // TODO(jbates): See bug 100255, IPC send fails if message is too big. This |
1493 // code can be removed if that limitation is fixed. | 1493 // code can be removed if that limitation is fixed. |
1494 IPC_SYNC_MESSAGE_CONTROL0_2(AutomationMsg_GetTracingOutput, | 1494 IPC_SYNC_MESSAGE_CONTROL0_2(AutomationMsg_GetTracingOutput, |
1495 std::string /* trace_chunk */, | 1495 std::string /* trace_chunk */, |
1496 int /* remaining_chunks */) | 1496 int /* remaining_chunks */) |
| 1497 // Browser -> renderer messages. |
| 1498 |
| 1499 // Requests a snapshot. |
| 1500 IPC_MESSAGE_ROUTED0(AutomationMsg_SnapshotEntirePage) |
1497 | 1501 |
1498 // Renderer -> browser messages. | 1502 // Renderer -> browser messages. |
1499 | 1503 |
| 1504 // Sent as a response to |AutomationMsg_Snapshot|. |
| 1505 IPC_MESSAGE_ROUTED3(AutomationMsg_SnapshotEntirePageACK, |
| 1506 bool /* success */, |
| 1507 std::vector<unsigned char> /* png bytes */, |
| 1508 std::string /* error message */) |
| 1509 |
1500 // Sent when the renderer has scheduled a client redirect to occur. | 1510 // Sent when the renderer has scheduled a client redirect to occur. |
1501 IPC_MESSAGE_ROUTED2(AutomationMsg_WillPerformClientRedirect, | 1511 IPC_MESSAGE_ROUTED2(AutomationMsg_WillPerformClientRedirect, |
1502 int64 /* frame_id */, | 1512 int64 /* frame_id */, |
1503 double /* # of seconds till redirect will be performed */) | 1513 double /* # of seconds till redirect will be performed */) |
1504 | 1514 |
1505 // Sent when the renderer has completed or canceled a client redirect for a | 1515 // Sent when the renderer has completed or canceled a client redirect for a |
1506 // particular frame. This message may be sent multiple times for the same | 1516 // particular frame. This message may be sent multiple times for the same |
1507 // redirect. | 1517 // redirect. |
1508 IPC_MESSAGE_ROUTED1(AutomationMsg_DidCompleteOrCancelClientRedirect, | 1518 IPC_MESSAGE_ROUTED1(AutomationMsg_DidCompleteOrCancelClientRedirect, |
1509 int64 /* frame_id */) | 1519 int64 /* frame_id */) |
1510 | 1520 |
1511 | 1521 |
1512 // YOUR NEW MESSAGE MIGHT NOT BELONG HERE. | 1522 // YOUR NEW MESSAGE MIGHT NOT BELONG HERE. |
1513 // This is the section for renderer -> browser automation messages. If it is | 1523 // This is the section for renderer -> browser automation messages. If it is |
1514 // an automation <-> browser message, put it above this section. | 1524 // an automation <-> browser message, put it above this section. |
OLD | NEW |