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

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

Issue 10074001: Initial implementation of the ByteStream refactor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Checkpoint and merge to LKGR. 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_net_log_parameters.cc
diff --git a/content/browser/download/download_net_log_parameters.cc b/content/browser/download/download_net_log_parameters.cc
index 8211cfc966ebde8827a8a2accf23cfc7d7effc46..6051823ffbd6e12ebe9d06919c2cc104003939d1 100644
--- a/content/browser/download/download_net_log_parameters.cc
+++ b/content/browser/download/download_net_log_parameters.cc
@@ -203,6 +203,20 @@ Value* FileOpenedParameters::ToValue() const {
return dict;
}
+FilePipeDrainedParameters::FilePipeDrainedParameters(
+ size_t pipe_size, size_t num_buffers)
+ : pipe_size_(pipe_size), num_buffers_(num_buffers) {
+}
+
+Value* FilePipeDrainedParameters::ToValue() const {
+ DictionaryValue* dict = new DictionaryValue();
+
+ dict->SetInteger("pipe_size", static_cast<int>(pipe_size_));
+ dict->SetInteger("num_buffers", static_cast<int>(num_buffers_));
+
+ return dict;
+}
+
FileRenamedParameters::FileRenamedParameters(
const std::string& old_filename, const std::string& new_filename)
: old_filename_(old_filename), new_filename_(new_filename) {
« no previous file with comments | « content/browser/download/download_net_log_parameters.h ('k') | content/browser/download/download_resource_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698