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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/ContentViewDownloadDelegate.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/ContentViewDownloadDelegate.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/ContentViewDownloadDelegate.java b/content/public/android/java/src/org/chromium/content/browser/ContentViewDownloadDelegate.java
deleted file mode 100644
index 7c87023fc6ac599589ec42a1834a620e803aed08..0000000000000000000000000000000000000000
--- a/content/public/android/java/src/org/chromium/content/browser/ContentViewDownloadDelegate.java
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-package org.chromium.content.browser;
-
-/**
- * Interface to be implemented by the embedder to handle file downloads.
- */
-public interface ContentViewDownloadDelegate {
- /**
- * Notify the host application that a file should be downloaded. Replaces
- * onDownloadStart from DownloadListener.
- * @param downloadInfo Information about the requested download.
- * @param mustDownload Whether the content must be downloded. If chrome cannot resolve a MIME
- * type, clicking a link will trigger a download. mustDownload is false if
- * the link has no download attribute and content-disposition is not
- * attachment.
- */
- void requestHttpGetDownload(DownloadInfo downloadInfo, boolean mustDownload);
-
- /**
- * Notify the host application that a download is started.
- * @param filename File name of the downloaded file.
- * @param mimeType Mime of the downloaded item.
- */
- void onDownloadStarted(String filename, String mimeType);
-
- /**
- * Notify the host application that a download has an extension indicating
- * a dangerous file type.
- * @param filename File name of the downloaded file.
- * @param downloadGuid The download GUID.
- */
- void onDangerousDownload(String filename, String downloadGuid);
-
- /**
- * Called when file access has been requested to complete a download.
- * @param callbackId The callback ID used to trigger success or failure of the download.
- *
- * @see DownloadController#onRequestFileAccessResult(long, boolean)
- */
- void requestFileAccess(long callbackId);
-}

Powered by Google App Engine
This is Rietveld 408576698