Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(350)

Side by Side Diff: content/common/frame_messages.h

Issue 1836973003: Move download messages from Renderer to Frame filter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 907 matching lines...) Expand 10 before | Expand all | Expand 10 after
918 918
919 // This message notifies the frame that it is no longer the active frame in the 919 // This message notifies the frame that it is no longer the active frame in the
920 // current find session, and so it should clear its active find match (and no 920 // current find session, and so it should clear its active find match (and no
921 // longer highlight it with special coloring). 921 // longer highlight it with special coloring).
922 IPC_MESSAGE_ROUTED0(FrameMsg_ClearActiveFindMatch) 922 IPC_MESSAGE_ROUTED0(FrameMsg_ClearActiveFindMatch)
923 923
924 // This message notifies the frame that the user has closed the find-in-page 924 // This message notifies the frame that the user has closed the find-in-page
925 // window (and what action to take regarding the selection). 925 // window (and what action to take regarding the selection).
926 IPC_MESSAGE_ROUTED1(FrameMsg_StopFinding, content::StopFindAction /* action */) 926 IPC_MESSAGE_ROUTED1(FrameMsg_StopFinding, content::StopFindAction /* action */)
927 927
928 // Copies the image at location x, y to the clipboard (if there indeed is an
929 // image at that location).
930 IPC_MESSAGE_ROUTED2(FrameMsg_CopyImageAt,
931 int /* x */,
932 int /* y */)
933
934 // Saves the image at location x, y to the disk (if there indeed is an
935 // image at that location).
936 IPC_MESSAGE_ROUTED2(FrameMsg_SaveImageAt,
937 int /* x */,
938 int /* y */)
939
928 #if defined(ENABLE_PLUGINS) 940 #if defined(ENABLE_PLUGINS)
929 // Notifies the renderer of updates to the Plugin Power Saver origin whitelist. 941 // Notifies the renderer of updates to the Plugin Power Saver origin whitelist.
930 IPC_MESSAGE_ROUTED1(FrameMsg_UpdatePluginContentOriginWhitelist, 942 IPC_MESSAGE_ROUTED1(FrameMsg_UpdatePluginContentOriginWhitelist,
931 std::set<url::Origin> /* origin_whitelist */) 943 std::set<url::Origin> /* origin_whitelist */)
932 #endif // defined(ENABLE_PLUGINS) 944 #endif // defined(ENABLE_PLUGINS)
933 945
934 // Used to instruct the RenderFrame to go into "view source" mode. This should 946 // Used to instruct the RenderFrame to go into "view source" mode. This should
935 // only be sent to the main frame. 947 // only be sent to the main frame.
936 IPC_MESSAGE_ROUTED0(FrameMsg_EnableViewSourceMode) 948 IPC_MESSAGE_ROUTED0(FrameMsg_EnableViewSourceMode)
937 949
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
1039 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidChangeLoadProgress, 1051 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidChangeLoadProgress,
1040 double /* load_progress */) 1052 double /* load_progress */)
1041 1053
1042 // Requests that the given URL be opened in the specified manner. 1054 // Requests that the given URL be opened in the specified manner.
1043 IPC_MESSAGE_ROUTED1(FrameHostMsg_OpenURL, FrameHostMsg_OpenURL_Params) 1055 IPC_MESSAGE_ROUTED1(FrameHostMsg_OpenURL, FrameHostMsg_OpenURL_Params)
1044 1056
1045 // Notifies the browser that a frame finished loading. 1057 // Notifies the browser that a frame finished loading.
1046 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidFinishLoad, 1058 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidFinishLoad,
1047 GURL /* validated_url */) 1059 GURL /* validated_url */)
1048 1060
1061 // Initiates a download based on user actions like 'ALT+click'.
1062 IPC_MESSAGE_CONTROL5(FrameHostMsg_DownloadUrl,
1063 int /* render_view_id */,
1064 int /* render_frame_id */,
1065 GURL /* url */,
1066 content::Referrer /* referrer */,
1067 base::string16 /* suggested_name */)
1068
1069 // Asks the browser to save a image (for <canvas> or <img>) from a data URL.
1070 // Note: |data_url| is the contents of a data:URL, and that it's represented as
1071 // a string only to work around size limitations for GURLs in IPC messages.
1072 IPC_MESSAGE_CONTROL3(FrameHostMsg_SaveImageFromDataURL,
1073 int /* render_view_id */,
1074 int /* render_frame_id */,
1075 std::string /* data_url */)
1076
1049 // Sent when after the onload handler has been invoked for the document 1077 // Sent when after the onload handler has been invoked for the document
1050 // in this frame. Sent for top-level frames. |report_type| and |ui_timestamp| 1078 // in this frame. Sent for top-level frames. |report_type| and |ui_timestamp|
1051 // are used to report navigation metrics starting on the ui input event that 1079 // are used to report navigation metrics starting on the ui input event that
1052 // triggered the navigation timestamp. 1080 // triggered the navigation timestamp.
1053 IPC_MESSAGE_ROUTED2(FrameHostMsg_DocumentOnLoadCompleted, 1081 IPC_MESSAGE_ROUTED2(FrameHostMsg_DocumentOnLoadCompleted,
1054 FrameMsg_UILoadMetricsReportType::Value /* report_type */, 1082 FrameMsg_UILoadMetricsReportType::Value /* report_type */,
1055 base::TimeTicks /* ui_timestamp */) 1083 base::TimeTicks /* ui_timestamp */)
1056 1084
1057 // Notifies that the initial empty document of a view has been accessed. 1085 // Notifies that the initial empty document of a view has been accessed.
1058 // After this, it is no longer safe to show a pending navigation's URL without 1086 // After this, it is no longer safe to show a pending navigation's URL without
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after
1505 // nearest find result in the sending frame. 1533 // nearest find result in the sending frame.
1506 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply, 1534 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply,
1507 int /* nfr_request_id */, 1535 int /* nfr_request_id */,
1508 float /* distance */) 1536 float /* distance */)
1509 #endif 1537 #endif
1510 1538
1511 // Adding a new message? Stick to the sort order above: first platform 1539 // Adding a new message? Stick to the sort order above: first platform
1512 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then 1540 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then
1513 // platform independent FrameHostMsg, then ifdefs for platform specific 1541 // platform independent FrameHostMsg, then ifdefs for platform specific
1514 // FrameHostMsg. 1542 // FrameHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698