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

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, 7 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 861 matching lines...) Expand 10 before | Expand all | Expand 10 after
872 // Sent when the user wants to search for a word on the page (find-in-page). 872 // Sent when the user wants to search for a word on the page (find-in-page).
873 IPC_MESSAGE_ROUTED3(FrameMsg_Find, 873 IPC_MESSAGE_ROUTED3(FrameMsg_Find,
874 int /* request_id */, 874 int /* request_id */,
875 base::string16 /* search_text */, 875 base::string16 /* search_text */,
876 blink::WebFindOptions) 876 blink::WebFindOptions)
877 877
878 // This message notifies the renderer that the user has closed the find-in-page 878 // This message notifies the renderer that the user has closed the find-in-page
879 // window (and what action to take regarding the selection). 879 // window (and what action to take regarding the selection).
880 IPC_MESSAGE_ROUTED1(FrameMsg_StopFinding, content::StopFindAction /* action */) 880 IPC_MESSAGE_ROUTED1(FrameMsg_StopFinding, content::StopFindAction /* action */)
881 881
882 // Copies the image at location x, y to the clipboard (if there indeed is an
883 // image at that location).
884 IPC_MESSAGE_ROUTED2(FrameMsg_CopyImageAt,
885 int /* x */,
886 int /* y */)
887
888 // Saves the image at location x, y to the disk (if there indeed is an
889 // image at that location).
890 IPC_MESSAGE_ROUTED2(FrameMsg_SaveImageAt,
891 int /* x */,
892 int /* y */)
893
882 #if defined(ENABLE_PLUGINS) 894 #if defined(ENABLE_PLUGINS)
883 // Notifies the renderer of updates to the Plugin Power Saver origin whitelist. 895 // Notifies the renderer of updates to the Plugin Power Saver origin whitelist.
884 IPC_MESSAGE_ROUTED1(FrameMsg_UpdatePluginContentOriginWhitelist, 896 IPC_MESSAGE_ROUTED1(FrameMsg_UpdatePluginContentOriginWhitelist,
885 std::set<url::Origin> /* origin_whitelist */) 897 std::set<url::Origin> /* origin_whitelist */)
886 #endif // defined(ENABLE_PLUGINS) 898 #endif // defined(ENABLE_PLUGINS)
887 899
888 // Used to instruct the RenderFrame to go into "view source" mode. This should 900 // Used to instruct the RenderFrame to go into "view source" mode. This should
889 // only be sent to the main frame. 901 // only be sent to the main frame.
890 IPC_MESSAGE_ROUTED0(FrameMsg_EnableViewSourceMode) 902 IPC_MESSAGE_ROUTED0(FrameMsg_EnableViewSourceMode)
891 903
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
984 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidChangeLoadProgress, 996 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidChangeLoadProgress,
985 double /* load_progress */) 997 double /* load_progress */)
986 998
987 // Requests that the given URL be opened in the specified manner. 999 // Requests that the given URL be opened in the specified manner.
988 IPC_MESSAGE_ROUTED1(FrameHostMsg_OpenURL, FrameHostMsg_OpenURL_Params) 1000 IPC_MESSAGE_ROUTED1(FrameHostMsg_OpenURL, FrameHostMsg_OpenURL_Params)
989 1001
990 // Notifies the browser that a frame finished loading. 1002 // Notifies the browser that a frame finished loading.
991 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidFinishLoad, 1003 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidFinishLoad,
992 GURL /* validated_url */) 1004 GURL /* validated_url */)
993 1005
1006 // Initiates a download based on user actions like 'ALT+click'.
1007 IPC_MESSAGE_CONTROL5(FrameHostMsg_DownloadUrl,
asanka 2016/05/18 16:26:54 Shall we switch these two messages to ROUTED and s
brettw 2016/05/25 19:10:20 This message isn't actually routed to the view. It
1008 int /* render_view_id */,
1009 int /* render_frame_id */,
1010 GURL /* url */,
1011 content::Referrer /* referrer */,
1012 base::string16 /* suggested_name */)
1013
1014 // Asks the browser to save a image (for <canvas> or <img>) from a data URL.
1015 // Note: |data_url| is the contents of a data:URL, and that it's represented as
1016 // a string only to work around size limitations for GURLs in IPC messages.
1017 IPC_MESSAGE_CONTROL3(FrameHostMsg_SaveImageFromDataURL,
1018 int /* render_view_id */,
1019 int /* render_frame_id */,
1020 std::string /* data_url */)
1021
994 // Sent when after the onload handler has been invoked for the document 1022 // Sent when after the onload handler has been invoked for the document
995 // in this frame. Sent for top-level frames. |report_type| and |ui_timestamp| 1023 // in this frame. Sent for top-level frames. |report_type| and |ui_timestamp|
996 // are used to report navigation metrics starting on the ui input event that 1024 // are used to report navigation metrics starting on the ui input event that
997 // triggered the navigation timestamp. 1025 // triggered the navigation timestamp.
998 IPC_MESSAGE_ROUTED2(FrameHostMsg_DocumentOnLoadCompleted, 1026 IPC_MESSAGE_ROUTED2(FrameHostMsg_DocumentOnLoadCompleted,
999 FrameMsg_UILoadMetricsReportType::Value /* report_type */, 1027 FrameMsg_UILoadMetricsReportType::Value /* report_type */,
1000 base::TimeTicks /* ui_timestamp */) 1028 base::TimeTicks /* ui_timestamp */)
1001 1029
1002 // Notifies that the initial empty document of a view has been accessed. 1030 // Notifies that the initial empty document of a view has been accessed.
1003 // After this, it is no longer safe to show a pending navigation's URL without 1031 // After this, it is no longer safe to show a pending navigation's URL without
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
1445 IPC_MESSAGE_ROUTED3(FrameHostMsg_FindMatchRects_Reply, 1473 IPC_MESSAGE_ROUTED3(FrameHostMsg_FindMatchRects_Reply,
1446 int /* version */, 1474 int /* version */,
1447 std::vector<gfx::RectF> /* rects */, 1475 std::vector<gfx::RectF> /* rects */,
1448 gfx::RectF /* active_rect */) 1476 gfx::RectF /* active_rect */)
1449 #endif 1477 #endif
1450 1478
1451 // Adding a new message? Stick to the sort order above: first platform 1479 // Adding a new message? Stick to the sort order above: first platform
1452 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then 1480 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then
1453 // platform independent FrameHostMsg, then ifdefs for platform specific 1481 // platform independent FrameHostMsg, then ifdefs for platform specific
1454 // FrameHostMsg. 1482 // FrameHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698