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

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: Sync'd to LKGR. Created 8 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/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..db97083b3ebc61cd4054b351cae6af9ffda77303 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 FileStreamDrainedParameters : public net::NetLog::EventParameters {
+ public:
+ FileStreamDrainedParameters(size_t stream_size,
+ size_t num_buffers);
+ virtual base::Value* ToValue() const OVERRIDE;
+
+ protected:
+ virtual ~FileStreamDrainedParameters();
+
+ private:
+ const size_t stream_size_;
+ const size_t num_buffers_;
+
+ DISALLOW_COPY_AND_ASSIGN(FileStreamDrainedParameters);
+};
+
// NetLog parameters when a DownloadFile is renamed.
class FileRenamedParameters : public net::NetLog::EventParameters {
public:
« no previous file with comments | « content/browser/download/download_manager_impl_unittest.cc ('k') | content/browser/download/download_net_log_parameters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698