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

Unified Diff: content/common/url_loader.mojom

Issue 2503813002: Fix and refactor downloaded file handling in the loading stack (Closed)
Patch Set: +RunUntilIdle Created 4 years, 1 month 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/common/url_loader.mojom
diff --git a/content/common/url_loader.mojom b/content/common/url_loader.mojom
index c8d8ac3a9c50f8ce4c599ae1829dbe7aebb20a65..d29080e24a9261828abbca5770ce5300ed2bdf01 100644
--- a/content/common/url_loader.mojom
+++ b/content/common/url_loader.mojom
@@ -24,9 +24,15 @@ interface URLLoader {
FollowRedirect();
};
+// Represents a temporary file for a download_to_file case of resource loading.
+// The downloaded file keeps alive until the instance is destroyed.
dcheng 2016/11/17 11:16:02 Empty interfaces are a bit unusual. My main feedba
tzik 2016/11/22 13:54:45 Done.
+interface DownloadedTempFile {
+};
+
interface URLLoaderClient {
- // Called when the response head is received.
- OnReceiveResponse(URLResponseHead head);
+ // Called when the response head is received. |downloaded_file| is non-null on
dcheng 2016/11/17 11:16:02 Nit: on => in
tzik 2016/11/22 13:54:45 Done.
+ // the 'download_to_file' case.
+ OnReceiveResponse(URLResponseHead head, DownloadedTempFile? downloaded_file);
// Called when the request has been redirected. The receiver is expected to
// call FollowRedirect or cancel the request.

Powered by Google App Engine
This is Rietveld 408576698