Index: content/public/browser/web_contents.h |
=================================================================== |
--- content/public/browser/web_contents.h (revision 138434) |
+++ content/public/browser/web_contents.h (working copy) |
@@ -310,6 +310,10 @@ |
virtual void SetNewTabStartTime(const base::TimeTicks& time) = 0; |
virtual base::TimeTicks GetNewTabStartTime() const = 0; |
+ // Tells the tab to close now. The tab will take care not to close until it's |
+ // out of nested message loops. |
+ virtual void Close() = 0; |
+ |
// Notification that tab closing has started. This can be called multiple |
// times, subsequent calls are ignored. |
virtual void OnCloseStarted() = 0; |
@@ -321,6 +325,11 @@ |
// WebContentsDelegate. |
virtual void SystemDragEnded() = 0; |
+ // Notification the user has made a gesture while focus was on the |
+ // page. This is used to avoid uninitiated user downloads (aka carpet |
+ // bombing), see DownloadRequestLimiter for details. |
+ virtual void UserGestureDone() = 0; |
+ |
// Indicates if this tab was explicitly closed by the user (control-w, close |
// tab menu item...). This is false for actions that indirectly close the tab, |
// such as closing the window. The setter is maintained by TabStripModel, and |