summaryrefslogtreecommitdiffstats
path: root/android_webview
diff options
context:
space:
mode:
authorasanka@chromium.org <asanka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-06 17:43:02 +0000
committerasanka@chromium.org <asanka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-06 17:43:02 +0000
commitb375601e95723c66b63b567c80dfc69544c91c43 (patch)
tree987eaca679895d88fe74af7bfa6c2757badde23e /android_webview
parent1c86dbf9eff06098d83f5cf57875ab362e207145 (diff)
downloadchromium_src-b375601e95723c66b63b567c80dfc69544c91c43.zip
chromium_src-b375601e95723c66b63b567c80dfc69544c91c43.tar.gz
chromium_src-b375601e95723c66b63b567c80dfc69544c91c43.tar.bz2
Make the UI an observer of downloads.
This relieves content/browser/download from knowing who/when to notify regarding a new download. BUG=147753 Review URL: https://chromiumcodereview.appspot.com/11640007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186458 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'android_webview')
-rw-r--r--android_webview/native/aw_web_contents_delegate.cc5
-rw-r--r--android_webview/native/aw_web_contents_delegate.h2
2 files changed, 0 insertions, 7 deletions
diff --git a/android_webview/native/aw_web_contents_delegate.cc b/android_webview/native/aw_web_contents_delegate.cc
index e08a65f..ef93550 100644
--- a/android_webview/native/aw_web_contents_delegate.cc
+++ b/android_webview/native/aw_web_contents_delegate.cc
@@ -61,11 +61,6 @@ bool AwWebContentsDelegate::CanDownload(content::RenderViewHost* source,
return false;
}
-void AwWebContentsDelegate::OnStartDownload(WebContents* source,
- content::DownloadItem* download) {
- NOTREACHED(); // Downloads are cancelled in ResourceDispatcherHostDelegate.
-}
-
void AwWebContentsDelegate::AddNewContents(content::WebContents* source,
content::WebContents* new_contents,
WindowOpenDisposition disposition,
diff --git a/android_webview/native/aw_web_contents_delegate.h b/android_webview/native/aw_web_contents_delegate.h
index 97b4fef..500097e 100644
--- a/android_webview/native/aw_web_contents_delegate.h
+++ b/android_webview/native/aw_web_contents_delegate.h
@@ -30,8 +30,6 @@ class AwWebContentsDelegate
virtual bool CanDownload(content::RenderViewHost* source,
int request_id,
const std::string& request_method) OVERRIDE;
- virtual void OnStartDownload(content::WebContents* source,
- content::DownloadItem* download) OVERRIDE;
virtual void AddNewContents(content::WebContents* source,
content::WebContents* new_contents,
WindowOpenDisposition disposition,