Index: chrome/browser/external_tab_container_win.h |
diff --git a/chrome/browser/external_tab_container_win.h b/chrome/browser/external_tab_container_win.h |
index 2e82237bd65204bc5f94b3e723a05424c130ba95..d6c73c0dba03c31a69d91053294648305d313f6c 100644 |
--- a/chrome/browser/external_tab_container_win.h |
+++ b/chrome/browser/external_tab_container_win.h |
@@ -14,6 +14,7 @@ |
#include "base/memory/scoped_ptr.h" |
#include "chrome/browser/automation/automation_resource_message_filter.h" |
#include "chrome/browser/net/chrome_url_request_context.h" |
+#include "chrome/browser/ui/download/download_tab_helper_delegate.h" |
#include "chrome/browser/ui/views/frame/browser_bubble_host.h" |
#include "chrome/browser/ui/views/infobars/infobar_container.h" |
#include "chrome/browser/ui/views/unhandled_keyboard_event_handler.h" |
@@ -41,6 +42,7 @@ class ViewProp; |
// external process. This class provides the FocusManger needed by the |
// TabContents as well as an implementation of TabContentsDelegate. |
class ExternalTabContainer : public TabContentsDelegate, |
+ public DownloadTabHelperDelegate, |
public NotificationObserver, |
public views::WidgetWin, |
public base::RefCounted<ExternalTabContainer>, |
@@ -142,8 +144,6 @@ class ExternalTabContainer : public TabContentsDelegate, |
virtual bool TakeFocus(bool reverse); |
- virtual bool CanDownload(int request_id); |
- |
virtual bool OnGoToEntryOffset(int offset); |
virtual void ShowPageInfo(Profile* profile, |
@@ -173,6 +173,11 @@ class ExternalTabContainer : public TabContentsDelegate, |
const NotificationSource& source, |
const NotificationDetails& details); |
+ // Overridden from DownloadTabHelperDelegate: |
+ virtual bool CanDownload(int request_id) OVERRIDE; |
+ virtual void OnStartDownload(DownloadItem* download, |
+ TabContentsWrapper* tab) OVERRIDE; |
+ |
// Returns the ExternalTabContainer instance associated with the cookie |
// passed in. It also erases the corresponding reference from the map. |
// Returns NULL if we fail to find the cookie in the map. |