Index: chrome/browser/ui/browser.h |
diff --git a/chrome/browser/ui/browser.h b/chrome/browser/ui/browser.h |
index 9406d68d056a75cb78f611c7a2f74490ba16d3c7..17296a13a61e318aa7fb0810b1a1942d15e0a69c 100644 |
--- a/chrome/browser/ui/browser.h |
+++ b/chrome/browser/ui/browser.h |
@@ -31,6 +31,7 @@ |
#include "chrome/browser/ui/blocked_content/blocked_content_tab_helper_delegate.h" |
#include "chrome/browser/ui/bookmarks/bookmark_tab_helper_delegate.h" |
#include "chrome/browser/ui/browser_navigator.h" |
+#include "chrome/browser/ui/download/download_tab_helper_delegate.h" |
#include "chrome/browser/ui/search_engines/search_engine_tab_helper_delegate.h" |
#include "chrome/browser/ui/shell_dialogs.h" |
#include "chrome/browser/ui/tab_contents/tab_contents_wrapper_delegate.h" |
@@ -68,6 +69,7 @@ class Browser : public TabHandlerDelegate, |
public SearchEngineTabHelperDelegate, |
public BlockedContentTabHelperDelegate, |
public BookmarkTabHelperDelegate, |
+ public DownloadTabHelperDelegate, |
public PageNavigator, |
public CommandUpdater::CommandUpdaterDelegate, |
public NotificationObserver, |
@@ -811,7 +813,6 @@ class Browser : public TabHandlerDelegate, |
virtual void SetFocusToLocationBar(bool select_all); |
virtual void RenderWidgetShowing(); |
virtual int GetExtraRenderViewHeight() const; |
- virtual void OnStartDownload(DownloadItem* download, TabContents* tab); |
virtual void ShowPageInfo(Profile* profile, |
const GURL& url, |
const NavigationEntry::SSLStatus& ssl, |
@@ -858,6 +859,12 @@ class Browser : public TabHandlerDelegate, |
virtual void URLStarredChanged(TabContentsWrapper* source, |
bool starred) OVERRIDE; |
+ // Overridden from DownloadTabHelperDelegate: |
+ virtual bool CanDownload(int request_id) OVERRIDE; |
+ virtual void OnStartDownload(DownloadItem* download, |
+ TabContentsWrapper* tab) OVERRIDE; |
+ |
+ |
// Overridden from SelectFileDialog::Listener: |
virtual void FileSelected(const FilePath& path, int index, void* params); |