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

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, 8 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 963 matching lines...) Expand 10 before | Expand all | Expand 10 after
974 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidChangeLoadProgress, 974 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidChangeLoadProgress,
975 double /* load_progress */) 975 double /* load_progress */)
976 976
977 // Requests that the given URL be opened in the specified manner. 977 // Requests that the given URL be opened in the specified manner.
978 IPC_MESSAGE_ROUTED1(FrameHostMsg_OpenURL, FrameHostMsg_OpenURL_Params) 978 IPC_MESSAGE_ROUTED1(FrameHostMsg_OpenURL, FrameHostMsg_OpenURL_Params)
979 979
980 // Notifies the browser that a frame finished loading. 980 // Notifies the browser that a frame finished loading.
981 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidFinishLoad, 981 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidFinishLoad,
982 GURL /* validated_url */) 982 GURL /* validated_url */)
983 983
984 // Initiates a download based on user actions like 'ALT+click'.
985 IPC_MESSAGE_CONTROL5(FrameHostMsg_DownloadUrl,
986 int /* render_view_id */,
987 int /* render_frame_id */,
988 GURL /* url */,
989 content::Referrer /* referrer */,
990 base::string16 /* suggested_name */)
991
992 // Asks the browser to save a image (for <canvas> or <img>) from a data URL.
993 // Note: |data_url| is the contents of a data:URL, and that it's represented as
994 // a string only to work around size limitations for GURLs in IPC messages.
995 IPC_MESSAGE_CONTROL3(FrameHostMsg_SaveImageFromDataURL,
996 int /* render_view_id */,
997 int /* render_frame_id */,
998 std::string /* data_url */)
999
984 // Sent when after the onload handler has been invoked for the document 1000 // Sent when after the onload handler has been invoked for the document
985 // in this frame. Sent for top-level frames. |report_type| and |ui_timestamp| 1001 // in this frame. Sent for top-level frames. |report_type| and |ui_timestamp|
986 // are used to report navigation metrics starting on the ui input event that 1002 // are used to report navigation metrics starting on the ui input event that
987 // triggered the navigation timestamp. 1003 // triggered the navigation timestamp.
988 IPC_MESSAGE_ROUTED2(FrameHostMsg_DocumentOnLoadCompleted, 1004 IPC_MESSAGE_ROUTED2(FrameHostMsg_DocumentOnLoadCompleted,
989 FrameMsg_UILoadMetricsReportType::Value /* report_type */, 1005 FrameMsg_UILoadMetricsReportType::Value /* report_type */,
990 base::TimeTicks /* ui_timestamp */) 1006 base::TimeTicks /* ui_timestamp */)
991 1007
992 // Notifies that the initial empty document of a view has been accessed. 1008 // Notifies that the initial empty document of a view has been accessed.
993 // After this, it is no longer safe to show a pending navigation's URL without 1009 // After this, it is no longer safe to show a pending navigation's URL without
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after
1457 IPC_MESSAGE_ROUTED3(FrameHostMsg_FindMatchRects_Reply, 1473 IPC_MESSAGE_ROUTED3(FrameHostMsg_FindMatchRects_Reply,
1458 int /* version */, 1474 int /* version */,
1459 std::vector<gfx::RectF> /* rects */, 1475 std::vector<gfx::RectF> /* rects */,
1460 gfx::RectF /* active_rect */) 1476 gfx::RectF /* active_rect */)
1461 #endif 1477 #endif
1462 1478
1463 // 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
1464 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then 1480 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then
1465 // platform independent FrameHostMsg, then ifdefs for platform specific 1481 // platform independent FrameHostMsg, then ifdefs for platform specific
1466 // FrameHostMsg. 1482 // FrameHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698