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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/ContentViewCore.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/browser/ContentViewCore.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java b/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
index 1b619912426cfd766ef7f3cb605d65720bfdc0c7..62cf83501272daf21ddba4bc232db2f99e3573c8 100644
--- a/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
+++ b/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
@@ -534,9 +534,6 @@ public class ContentViewCore implements AccessibilityStateChangeListener, Screen
private WebActionModeCallback.ActionHandler mActionHandler;
private final Rect mSelectionRect = new Rect();
- // Delegate that will handle GET downloads, and be notified of completion of POST downloads.
- private ContentViewDownloadDelegate mDownloadDelegate;
-
// Whether native accessibility, i.e. without any script injection, is allowed.
private boolean mNativeAccessibilityAllowed;
@@ -1992,21 +1989,6 @@ public class ContentViewCore implements AccessibilityStateChangeListener, Screen
nativeSendOrientationChangeEvent(mNativeContentViewCore, orientation);
}
- /**
- * 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.
- */
- public void setDownloadDelegate(ContentViewDownloadDelegate delegate) {
- mDownloadDelegate = delegate;
- }
-
- // Called by DownloadController.
- ContentViewDownloadDelegate getDownloadDelegate() {
- return mDownloadDelegate;
- }
-
@VisibleForTesting
public WebActionModeCallback.ActionHandler getSelectActionHandler() {
return mActionHandler;

Powered by Google App Engine
This is Rietveld 408576698