Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1436)

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 2014803002: Move DownloadControllerAndroid from content/ to chrome/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moved download delegate interface to native Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/web_contents/web_contents_impl.cc
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index 321514a587192ec92ec6c9091cccbb64ce429ac1..8f1c1a18eeaffa89b2c3541c01c32d75568c3f43 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -4824,6 +4824,15 @@ bool WebContentsImpl::CreateRenderViewForInitialEmptyDocument() {
frame_tree_.root()->current_replication_state());
}
+
+void WebContentsImpl::SetDownloadDelegate(DownloadDelegate* delegate) {
+ GetWebContentsAndroid()->SetDownloadDelegate(delegate);
+}
+
+DownloadDelegate* WebContentsImpl::GetDownloadDelegate() {
+ return GetWebContentsAndroid()->GetDownloadDelegate();
+}
+
#elif defined(OS_MACOSX)
void WebContentsImpl::SetAllowOtherViews(bool allow) {

Powered by Google App Engine
This is Rietveld 408576698