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

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

Issue 7035015: Revert 85504 - Move download stuff to download tab helper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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 | « chrome/chrome_browser.gypi ('k') | content/browser/tab_contents/tab_contents.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.h
===================================================================
--- content/browser/tab_contents/tab_contents.h (revision 85514)
+++ content/browser/tab_contents/tab_contents.h (working copy)
@@ -44,12 +44,13 @@
class HistoryAddPageArgs;
}
+class WebUI;
+class DownloadItem;
class Extension;
class InfoBarDelegate;
class LoadNotificationDetails;
class PluginObserver;
class Profile;
-struct RendererPreferences;
class RenderViewHost;
class SessionStorageNamespace;
class SiteInstance;
@@ -58,11 +59,11 @@
class TabContentsObserver;
class TabContentsSSLHelper;
class TabContentsView;
+class URLPattern;
+struct RendererPreferences;
struct ThumbnailScore;
-class URLPattern;
struct ViewHostMsg_FrameNavigate_Params;
struct WebPreferences;
-class WebUI;
// Describes what goes in the main content area of a tab. TabContents is
// the only type of TabContents, and these should be merged together.
@@ -388,6 +389,13 @@
// Returns true if a Bookmark Bar should be shown for this tab.
virtual bool ShouldShowBookmarkBar();
+ // Notifies the delegate that a download is about to be started.
+ // This notification is fired before a local temporary file has been created.
+ bool CanDownload(int request_id);
+
+ // Notifies the delegate that a download started.
+ void OnStartDownload(DownloadItem* download);
+
// Called when a ConstrainedWindow we own is about to be closed.
void WillClose(ConstrainedWindow* window);
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | content/browser/tab_contents/tab_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698