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 560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
571 #if defined(ENABLE_PLUGINS) | 571 #if defined(ENABLE_PLUGINS) |
572 IPC_STRUCT_TRAITS_BEGIN(content::PepperRendererInstanceData) | 572 IPC_STRUCT_TRAITS_BEGIN(content::PepperRendererInstanceData) |
573 IPC_STRUCT_TRAITS_MEMBER(render_process_id) | 573 IPC_STRUCT_TRAITS_MEMBER(render_process_id) |
574 IPC_STRUCT_TRAITS_MEMBER(render_frame_id) | 574 IPC_STRUCT_TRAITS_MEMBER(render_frame_id) |
575 IPC_STRUCT_TRAITS_MEMBER(document_url) | 575 IPC_STRUCT_TRAITS_MEMBER(document_url) |
576 IPC_STRUCT_TRAITS_MEMBER(plugin_url) | 576 IPC_STRUCT_TRAITS_MEMBER(plugin_url) |
577 IPC_STRUCT_TRAITS_MEMBER(is_potentially_secure_plugin_context) | 577 IPC_STRUCT_TRAITS_MEMBER(is_potentially_secure_plugin_context) |
578 IPC_STRUCT_TRAITS_END() | 578 IPC_STRUCT_TRAITS_END() |
579 #endif | 579 #endif |
580 | 580 |
| 581 IPC_STRUCT_BEGIN(FrameHostMsg_DownloadUrl_Params) |
| 582 IPC_STRUCT_MEMBER(int32_t, render_view_id) |
| 583 IPC_STRUCT_MEMBER(int32_t, render_frame_id) |
| 584 IPC_STRUCT_MEMBER(int32_t, service_worker_provider_id) |
| 585 IPC_STRUCT_MEMBER(GURL, url) |
| 586 IPC_STRUCT_MEMBER(content::Referrer, referrer) |
| 587 IPC_STRUCT_MEMBER(base::string16, suggested_name) |
| 588 IPC_STRUCT_END() |
| 589 |
581 // ----------------------------------------------------------------------------- | 590 // ----------------------------------------------------------------------------- |
582 // Messages sent from the browser to the renderer. | 591 // Messages sent from the browser to the renderer. |
583 | 592 |
584 IPC_MESSAGE_ROUTED4(FrameMsg_SetChildFrameSurface, | 593 IPC_MESSAGE_ROUTED4(FrameMsg_SetChildFrameSurface, |
585 cc::SurfaceId /* surface_id */, | 594 cc::SurfaceId /* surface_id */, |
586 gfx::Size /* frame_size */, | 595 gfx::Size /* frame_size */, |
587 float /* scale_factor */, | 596 float /* scale_factor */, |
588 cc::SurfaceSequence /* sequence */) | 597 cc::SurfaceSequence /* sequence */) |
589 | 598 |
590 // Notifies the embedding frame that the process rendering the child frame's | 599 // Notifies the embedding frame that the process rendering the child frame's |
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1034 // If a cross-process navigation was started for the initial history load in | 1043 // If a cross-process navigation was started for the initial history load in |
1035 // this subframe, this tries to cancel it to allow a client redirect to happen | 1044 // this subframe, this tries to cancel it to allow a client redirect to happen |
1036 // instead. | 1045 // instead. |
1037 IPC_MESSAGE_ROUTED0(FrameHostMsg_CancelInitialHistoryLoad) | 1046 IPC_MESSAGE_ROUTED0(FrameHostMsg_CancelInitialHistoryLoad) |
1038 | 1047 |
1039 // Notifies the browser that a frame finished loading. | 1048 // Notifies the browser that a frame finished loading. |
1040 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidFinishLoad, | 1049 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidFinishLoad, |
1041 GURL /* validated_url */) | 1050 GURL /* validated_url */) |
1042 | 1051 |
1043 // Initiates a download based on user actions like 'ALT+click'. | 1052 // Initiates a download based on user actions like 'ALT+click'. |
1044 IPC_MESSAGE_CONTROL5(FrameHostMsg_DownloadUrl, | 1053 IPC_MESSAGE_CONTROL1(FrameHostMsg_DownloadUrl, FrameHostMsg_DownloadUrl_Params) |
1045 int /* render_view_id */, | |
1046 int /* render_frame_id */, | |
1047 GURL /* url */, | |
1048 content::Referrer /* referrer */, | |
1049 base::string16 /* suggested_name */) | |
1050 | 1054 |
1051 // Asks the browser to save a image (for <canvas> or <img>) from a data URL. | 1055 // Asks the browser to save a image (for <canvas> or <img>) from a data URL. |
1052 // Note: |data_url| is the contents of a data:URL, and that it's represented as | 1056 // Note: |data_url| is the contents of a data:URL, and that it's represented as |
1053 // a string only to work around size limitations for GURLs in IPC messages. | 1057 // a string only to work around size limitations for GURLs in IPC messages. |
1054 IPC_MESSAGE_CONTROL3(FrameHostMsg_SaveImageFromDataURL, | 1058 IPC_MESSAGE_CONTROL3(FrameHostMsg_SaveImageFromDataURL, |
1055 int /* render_view_id */, | 1059 int /* render_view_id */, |
1056 int /* render_frame_id */, | 1060 int /* render_frame_id */, |
1057 std::string /* data_url */) | 1061 std::string /* data_url */) |
1058 | 1062 |
1059 // Sent when after the onload handler has been invoked for the document | 1063 // Sent when after the onload handler has been invoked for the document |
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1519 // nearest find result in the sending frame. | 1523 // nearest find result in the sending frame. |
1520 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply, | 1524 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply, |
1521 int /* nfr_request_id */, | 1525 int /* nfr_request_id */, |
1522 float /* distance */) | 1526 float /* distance */) |
1523 #endif | 1527 #endif |
1524 | 1528 |
1525 // Adding a new message? Stick to the sort order above: first platform | 1529 // Adding a new message? Stick to the sort order above: first platform |
1526 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then | 1530 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then |
1527 // platform independent FrameHostMsg, then ifdefs for platform specific | 1531 // platform independent FrameHostMsg, then ifdefs for platform specific |
1528 // FrameHostMsg. | 1532 // FrameHostMsg. |
OLD | NEW |