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); |