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

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

Issue 10696173: Revert "Revert 146000 - Split out ContentViewCore from ContentView for embedders." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase number deux Created 8 years, 5 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/DownloadController.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/DownloadController.java b/content/public/android/java/src/org/chromium/content/browser/DownloadController.java
index 496e1c9bd158b0fbae3d8e28cc6d36d46278aa88..496ea65098350d96c6c59081a91c3d0281dd5ed8 100644
--- a/content/public/android/java/src/org/chromium/content/browser/DownloadController.java
+++ b/content/public/android/java/src/org/chromium/content/browser/DownloadController.java
@@ -31,11 +31,11 @@ class DownloadController {
nativeInit();
}
- private static DownloadListener listenerFromView(ContentView view) {
+ private static DownloadListener listenerFromView(ContentViewCore view) {
return view.downloadListener();
}
- private static ContentViewDownloadDelegate downloadDelegateFromView(ContentView view) {
+ private static ContentViewDownloadDelegate downloadDelegateFromView(ContentViewCore view) {
return view.getDownloadDelegate();
}
@@ -50,7 +50,7 @@ class DownloadController {
* The DownloadListener is expected to handle the download.
*/
@CalledByNative
- public void newHttpGetDownload(ContentView view, String url,
+ public void newHttpGetDownload(ContentViewCore view, String url,
String userAgent, String contentDisposition, String mimetype,
String cookie, long contentLength) {
ContentViewDownloadDelegate downloadDelagate = downloadDelegateFromView(view);
@@ -72,7 +72,7 @@ class DownloadController {
* Notifies the DownloadListener that a new POST download has started.
*/
@CalledByNative
- public void onHttpPostDownloadStarted(ContentView view) {
+ public void onHttpPostDownloadStarted(ContentViewCore view) {
ContentViewDownloadDelegate downloadDelagate = downloadDelegateFromView(view);
if (downloadDelagate != null) {
@@ -85,7 +85,7 @@ class DownloadController {
* download.
*/
@CalledByNative
- public void onHttpPostDownloadCompleted(ContentView view, String url,
+ public void onHttpPostDownloadCompleted(ContentViewCore view, String url,
String contentDisposition, String mimetype, String path,
long contentLength, boolean successful) {
ContentViewDownloadDelegate downloadDelagate = downloadDelegateFromView(view);

Powered by Google App Engine
This is Rietveld 408576698