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

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: fix failing tests/bugs Created 4 years, 6 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 b0e1e037e500feffe28500b4e0171819d5bbfdee..7de8b4ae1d59448eb065e245f793592f7f3cf859 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
@@ -529,9 +529,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;
@@ -1975,21 +1972,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