Index: chrome/browser/external_tab_container_win.cc |
diff --git a/chrome/browser/external_tab_container_win.cc b/chrome/browser/external_tab_container_win.cc |
index dd9784b2093362853c1b0dc1ceadc3f6c38dc9d8..da8038ec8be8458f55e082a1f035a2d6c7edea7d 100644 |
--- a/chrome/browser/external_tab_container_win.cc |
+++ b/chrome/browser/external_tab_container_win.cc |
@@ -538,26 +538,6 @@ bool ExternalTabContainer::TakeFocus(bool reverse) { |
return true; |
} |
-bool ExternalTabContainer::CanDownload(int request_id) { |
- if (load_requests_via_automation_) { |
- if (automation_) { |
- // In case the host needs to show UI that needs to take the focus. |
- ::AllowSetForegroundWindow(ASFW_ANY); |
- |
- BrowserThread::PostTask(BrowserThread::IO, FROM_HERE, |
- NewRunnableMethod(automation_resource_message_filter_.get(), |
- &AutomationResourceMessageFilter::SendDownloadRequestToHost, |
- 0, tab_handle_, request_id)); |
- } |
- } else { |
- DLOG(WARNING) << "Downloads are only supported with host browser network " |
- "stack enabled."; |
- } |
- |
- // Never allow downloads. |
- return false; |
-} |
- |
void ExternalTabContainer::ShowPageInfo(Profile* profile, |
const GURL& url, |
const NavigationEntry::SSLStatus& ssl, |
@@ -783,6 +763,34 @@ void ExternalTabContainer::Observe(NotificationType type, |
} |
//////////////////////////////////////////////////////////////////////////////// |
+// ExternalTabContainer, DownloadTabHelperDelegate overrides: |
+ |
+bool ExternalTabContainer::CanDownload(int request_id) { |
+ if (load_requests_via_automation_) { |
+ if (automation_) { |
+ // In case the host needs to show UI that needs to take the focus. |
+ ::AllowSetForegroundWindow(ASFW_ANY); |
+ |
+ BrowserThread::PostTask(BrowserThread::IO, FROM_HERE, |
+ NewRunnableMethod(automation_resource_message_filter_.get(), |
+ &AutomationResourceMessageFilter::SendDownloadRequestToHost, |
+ 0, tab_handle_, request_id)); |
+ } |
+ } else { |
+ DLOG(WARNING) << "Downloads are only supported with host browser network " |
+ "stack enabled."; |
+ } |
+ |
+ // Never allow downloads. |
+ return false; |
+} |
+ |
+void ExternalTabContainer::OnStartDownload(DownloadItem* download, |
+ TabContentsWrapper* tab) { |
+} |
+ |
+ |
+//////////////////////////////////////////////////////////////////////////////// |
// ExternalTabContainer, views::WidgetWin overrides: |
LRESULT ExternalTabContainer::OnCreate(LPCREATESTRUCT create_struct) { |