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

Unified Diff: content/browser/download/download_file_impl.h

Issue 10074001: Initial implementation of the ByteStream refactor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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/browser/download/download_file_impl.h
diff --git a/content/browser/download/download_file_impl.h b/content/browser/download/download_file_impl.h
index b66174efd755b12b5683252b02722db796ca1079..91cd60ae117e768cb30ca0a35c46ad7db4686b50 100644
--- a/content/browser/download/download_file_impl.h
+++ b/content/browser/download/download_file_impl.h
@@ -10,6 +10,7 @@
#include "base/memory/ref_counted.h"
#include "content/browser/download/base_file.h"
+#include "content/browser/download/byte_stream.h"
#include "content/browser/download/download_request_handle.h"
struct DownloadCreateInfo;
@@ -51,9 +52,16 @@ class CONTENT_EXPORT DownloadFileImpl : virtual public content::DownloadFile {
virtual std::string DebugString() const OVERRIDE;
private:
+ void PipeActive();
ahendrickson 2012/04/16 15:14:27 I was not clear as to what this function does. Ne
Randy Smith (Not in Mondays) 2012/04/18 19:10:38 Added comment; let me know if you still think I ne
+
// The base file instance.
BaseFile file_;
+ // The pipe through which data comes.
+ // TODO(rdsmith): Move this into BaseFile; requires using the same
+ // pipe semantics in SavePackage.
+ scoped_refptr<content::ByteStream> input_pipe_;
+
// The unique identifier for this download, assigned at creation by
// the DownloadFileManager for its internal record keeping.
content::DownloadId id_;

Powered by Google App Engine
This is Rietveld 408576698