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

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

Issue 10392111: Use ByteStream in downloads system to decouple source and sink. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Incorporated comments and fixed tests. Created 8 years, 7 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_net_log_parameters.h
diff --git a/content/browser/download/download_net_log_parameters.h b/content/browser/download/download_net_log_parameters.h
index 5e0cf3083aed8c8ab730fc9978a789b75f3527d9..4e02262e5e7813ca6950b94e3f2e670b123008d6 100644
--- a/content/browser/download/download_net_log_parameters.h
+++ b/content/browser/download/download_net_log_parameters.h
@@ -181,6 +181,23 @@ class FileOpenedParameters : public net::NetLog::EventParameters {
DISALLOW_COPY_AND_ASSIGN(FileOpenedParameters);
};
+// NetLog parameters when a DownloadFile is opened.
+class FilePipeDrainedParameters : public net::NetLog::EventParameters {
+ public:
+ FilePipeDrainedParameters(size_t pipe_size,
+ size_t num_buffers);
+ virtual base::Value* ToValue() const OVERRIDE;
+
+ protected:
+ ~FilePipeDrainedParameters();
+
+ private:
+ const size_t pipe_size_;
+ const size_t num_buffers_;
+
+ DISALLOW_COPY_AND_ASSIGN(FilePipeDrainedParameters);
+};
+
// NetLog parameters when a DownloadFile is renamed.
class FileRenamedParameters : public net::NetLog::EventParameters {
public:

Powered by Google App Engine
This is Rietveld 408576698