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

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

Issue 2783723002: Keep track in the browser of which frames have onunload and onbeforeunload handlers. (Closed)
Patch Set: fix content_browsertests with plznavigate and also remove now unnecessary unloadcontroller change Created 3 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 1597 matching lines...) Expand 10 before | Expand all | Expand 10 after
1608 int /* active_match_ordinal */, 1608 int /* active_match_ordinal */,
1609 bool /* final_update */) 1609 bool /* final_update */)
1610 1610
1611 // Sends hittesting data needed to perform hittesting on the browser process. 1611 // Sends hittesting data needed to perform hittesting on the browser process.
1612 IPC_MESSAGE_ROUTED1(FrameHostMsg_HittestData, FrameHostMsg_HittestData_Params) 1612 IPC_MESSAGE_ROUTED1(FrameHostMsg_HittestData, FrameHostMsg_HittestData_Params)
1613 1613
1614 // Asks the browser to display the file chooser. The result is returned in a 1614 // Asks the browser to display the file chooser. The result is returned in a
1615 // FrameMsg_RunFileChooserResponse message. 1615 // FrameMsg_RunFileChooserResponse message.
1616 IPC_MESSAGE_ROUTED1(FrameHostMsg_RunFileChooser, content::FileChooserParams) 1616 IPC_MESSAGE_ROUTED1(FrameHostMsg_RunFileChooser, content::FileChooserParams)
1617 1617
1618 // Messages to signal the presence or absence of BeforeUnload or Unload handlers
nasko 2017/03/29 23:31:26 nit: You use capitalization inconsistently for the
jam 2017/03/30 14:53:23 Done.
1619 // for a frame. |present| is true if there is at least one of the handlers for
1620 // the frame.
1621 IPC_MESSAGE_ROUTED1(FrameHostMsg_BeforeUnloadHandlersPresent,
1622 bool /* present */)
1623 IPC_MESSAGE_ROUTED1(FrameHostMsg_UnloadHandlersPresent, bool /* present */)
1624
1618 #if BUILDFLAG(USE_EXTERNAL_POPUP_MENU) 1625 #if BUILDFLAG(USE_EXTERNAL_POPUP_MENU)
1619 1626
1620 // Message to show/hide a popup menu using native controls. 1627 // Message to show/hide a popup menu using native controls.
1621 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, 1628 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup,
1622 FrameHostMsg_ShowPopup_Params) 1629 FrameHostMsg_ShowPopup_Params)
1623 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) 1630 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup)
1624 1631
1625 #endif 1632 #endif
1626 1633
1627 #if defined(OS_ANDROID) 1634 #if defined(OS_ANDROID)
(...skipping 23 matching lines...) Expand all
1651 int /* nfr_request_id */, 1658 int /* nfr_request_id */,
1652 float /* distance */) 1659 float /* distance */)
1653 1660
1654 IPC_MESSAGE_ROUTED0(FrameHostMsg_NavigationHandledByEmbedder) 1661 IPC_MESSAGE_ROUTED0(FrameHostMsg_NavigationHandledByEmbedder)
1655 #endif 1662 #endif
1656 1663
1657 // Adding a new message? Stick to the sort order above: first platform 1664 // Adding a new message? Stick to the sort order above: first platform
1658 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then 1665 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then
1659 // platform independent FrameHostMsg, then ifdefs for platform specific 1666 // platform independent FrameHostMsg, then ifdefs for platform specific
1660 // FrameHostMsg. 1667 // FrameHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698