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

Unified Diff: content/public/browser/web_contents.h

Issue 10407122: Get rid of the last RenderViewHostDelegate usage in chrome. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698