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 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1030 // If a cross-process navigation was started for the initial history load in | 1039 // If a cross-process navigation was started for the initial history load in |
1031 // this subframe, this tries to cancel it to allow a client redirect to happen | 1040 // this subframe, this tries to cancel it to allow a client redirect to happen |
1032 // instead. | 1041 // instead. |
1033 IPC_MESSAGE_ROUTED0(FrameHostMsg_CancelInitialHistoryLoad) | 1042 IPC_MESSAGE_ROUTED0(FrameHostMsg_CancelInitialHistoryLoad) |
1034 | 1043 |
1035 // Notifies the browser that a frame finished loading. | 1044 // Notifies the browser that a frame finished loading. |
1036 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidFinishLoad, | 1045 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidFinishLoad, |
1037 GURL /* validated_url */) | 1046 GURL /* validated_url */) |
1038 | 1047 |
1039 // Initiates a download based on user actions like 'ALT+click'. | 1048 // Initiates a download based on user actions like 'ALT+click'. |
1040 IPC_MESSAGE_CONTROL5(FrameHostMsg_DownloadUrl, | 1049 IPC_MESSAGE_CONTROL1(FrameHostMsg_DownloadUrl, FrameHostMsg_DownloadUrl_Params) |
1041 int /* render_view_id */, | |
1042 int /* render_frame_id */, | |
1043 GURL /* url */, | |
1044 content::Referrer /* referrer */, | |
1045 base::string16 /* suggested_name */) | |
1046 | 1050 |
1047 // Asks the browser to save a image (for <canvas> or <img>) from a data URL. | 1051 // Asks the browser to save a image (for <canvas> or <img>) from a data URL. |
1048 // Note: |data_url| is the contents of a data:URL, and that it's represented as | 1052 // Note: |data_url| is the contents of a data:URL, and that it's represented as |
1049 // a string only to work around size limitations for GURLs in IPC messages. | 1053 // a string only to work around size limitations for GURLs in IPC messages. |
1050 IPC_MESSAGE_CONTROL3(FrameHostMsg_SaveImageFromDataURL, | 1054 IPC_MESSAGE_CONTROL3(FrameHostMsg_SaveImageFromDataURL, |
1051 int /* render_view_id */, | 1055 int /* render_view_id */, |
1052 int /* render_frame_id */, | 1056 int /* render_frame_id */, |
1053 std::string /* data_url */) | 1057 std::string /* data_url */) |
1054 | 1058 |
1055 // Sent when after the onload handler has been invoked for the document | 1059 // 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... |
1515 // nearest find result in the sending frame. | 1519 // nearest find result in the sending frame. |
1516 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply, | 1520 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply, |
1517 int /* nfr_request_id */, | 1521 int /* nfr_request_id */, |
1518 float /* distance */) | 1522 float /* distance */) |
1519 #endif | 1523 #endif |
1520 | 1524 |
1521 // Adding a new message? Stick to the sort order above: first platform | 1525 // Adding a new message? Stick to the sort order above: first platform |
1522 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then | 1526 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then |
1523 // platform independent FrameHostMsg, then ifdefs for platform specific | 1527 // platform independent FrameHostMsg, then ifdefs for platform specific |
1524 // FrameHostMsg. | 1528 // FrameHostMsg. |
OLD | NEW |