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

Unified Diff: content/browser/tab_contents/tab_contents_delegate.h

Issue 7374008: Move download stuff from download helper back to TabContents. This is basically a revert of r8576... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix unittests Created 9 years, 5 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/tab_contents/tab_contents.cc ('k') | content/browser/tab_contents/tab_contents_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/tab_contents/tab_contents_delegate.h
===================================================================
--- content/browser/tab_contents/tab_contents_delegate.h (revision 92629)
+++ content/browser/tab_contents/tab_contents_delegate.h (working copy)
@@ -31,6 +31,7 @@
}
struct ContextMenuParams;
+class DownloadItem;
class GURL;
class HtmlDialogUIDelegate;
struct NativeWebKeyboardEvent;
@@ -190,6 +191,12 @@
// Notification that |tab_contents| has gained focus.
virtual void TabContentsFocused(TabContents* tab_content);
+ // Asks the delegate if the given tab can download.
+ virtual bool CanDownload(TabContents* source, int request_id);
+
+ // Notifies the delegate that a download is starting.
+ virtual void OnStartDownload(TabContents* source, DownloadItem* download);
+
// Return much extra vertical space should be allotted to the
// render view widget during various animations (e.g. infobar closing).
// This is used to make painting look smoother.
« no previous file with comments | « content/browser/tab_contents/tab_contents.cc ('k') | content/browser/tab_contents/tab_contents_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698