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

Unified Diff: download_action.h

Issue 3471006: AU: Speed up updates by using buffered writes. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/update_engine.git
Patch Set: update comment 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
« no previous file with comments | « buffered_file_writer_unittest.cc ('k') | download_action.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: download_action.h
diff --git a/download_action.h b/download_action.h
index c0c36f1a4bab6c477378aac8917a17bc7f081135..f6d5a117418ede05a4808e955f67851fec321f79 100644
--- a/download_action.h
+++ b/download_action.h
@@ -11,13 +11,13 @@
#include <string>
+#include <base/scoped_ptr.h>
#include <curl/curl.h>
-#include "base/scoped_ptr.h"
#include "update_engine/action.h"
#include "update_engine/decompressing_file_writer.h"
#include "update_engine/delta_performer.h"
-#include "update_engine/file_writer.h"
+#include "update_engine/buffered_file_writer.h"
#include "update_engine/http_fetcher.h"
#include "update_engine/install_plan.h"
#include "update_engine/omaha_hash_calculator.h"
@@ -105,6 +105,8 @@ class DownloadAction : public Action<DownloadAction>,
scoped_ptr<SplitFileWriter> split_file_writer_;
scoped_ptr<DirectFileWriter> kernel_file_writer_;
scoped_ptr<DirectFileWriter> rootfs_file_writer_;
+ scoped_ptr<BufferedFileWriter> kernel_buffered_file_writer_;
+ scoped_ptr<BufferedFileWriter> rootfs_buffered_file_writer_;
// Used to apply a delta update:
scoped_ptr<DeltaPerformer> delta_performer_;
« no previous file with comments | « buffered_file_writer_unittest.cc ('k') | download_action.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698