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

Unified Diff: content/public/android/java/src/org/chromium/content_public/browser/WebContents.java

Issue 2014803002: Move DownloadControllerAndroid from content/ to chrome/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removed unused vars 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/public/android/java/src/org/chromium/content_public/browser/WebContents.java
diff --git a/content/public/android/java/src/org/chromium/content_public/browser/WebContents.java b/content/public/android/java/src/org/chromium/content_public/browser/WebContents.java
index 01e5ba835d7076b65edb6552dfc168722542a335..ffe586eff22f8c3cfe49fed538aa3bcfec638b70 100644
--- a/content/public/android/java/src/org/chromium/content_public/browser/WebContents.java
+++ b/content/public/android/java/src/org/chromium/content_public/browser/WebContents.java
@@ -226,6 +226,16 @@ public interface WebContents extends Parcelable {
String getLastCommittedUrl();
/**
+ * Register the delegate to be used when content can not be handled by
+ * the rendering engine, and should be downloaded instead. This will replace
+ * the current delegate, if any.
+ * @param delegate An implementation of ContentViewDownloadDelegate.
+ */
+ void setDownloadDelegate(ContentViewDownloadDelegate delegate);
+
+ ContentViewDownloadDelegate getDownloadDelegate();
+
+ /**
* Get the InCognito state of WebContents.
*
* @return whether this WebContents is in InCognito mode or not

Powered by Google App Engine
This is Rietveld 408576698