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

Unified Diff: chrome/browser/renderer_host/redirect_to_file_resource_handler.h

Issue 3396029: Flesh out URLLoader's download_to_file function.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 3 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: chrome/browser/renderer_host/redirect_to_file_resource_handler.h
===================================================================
--- chrome/browser/renderer_host/redirect_to_file_resource_handler.h (revision 60837)
+++ chrome/browser/renderer_host/redirect_to_file_resource_handler.h (working copy)
@@ -21,6 +21,10 @@
class GrowableIOBuffer;
}
+namespace webkit_blob {
+class DeletableFileReference;
+}
+
// Redirects network data to a file. This is intended to be layered in front
// of either the AsyncResourceHandler or the SyncResourceHandler.
class RedirectToFileResourceHandler : public ResourceHandler {
@@ -71,11 +75,14 @@
bool buf_write_pending_;
int write_cursor_;
- FilePath file_path_;
scoped_ptr<net::FileStream> file_stream_;
net::CompletionCallbackImpl<RedirectToFileResourceHandler> write_callback_;
bool write_callback_pending_;
+ // We create a DeletableFileReference for the temp file created as
+ // a result of the download.
+ scoped_refptr<webkit_blob::DeletableFileReference> deletable_file_;
+
DISALLOW_COPY_AND_ASSIGN(RedirectToFileResourceHandler);
};

Powered by Google App Engine
This is Rietveld 408576698