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

Unified Diff: download_action.h

Issue 3521016: AU: Start checkpointing update progress. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/update_engine.git
Patch Set: address review comments Created 10 years, 2 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 | « delta_performer_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 f6d5a117418ede05a4808e955f67851fec321f79..62dd29afb51ddb069e30f806774f01f8a69101a9 100644
--- a/download_action.h
+++ b/download_action.h
@@ -49,6 +49,7 @@ class DownloadActionDelegate {
class DownloadAction;
class NoneType;
+class PrefsInterface;
template<>
class ActionTraits<DownloadAction> {
@@ -64,7 +65,7 @@ class DownloadAction : public Action<DownloadAction>,
// Takes ownership of the passed in HttpFetcher. Useful for testing.
// A good calling pattern is:
// DownloadAction(new WhateverHttpFetcher);
- DownloadAction(HttpFetcher* http_fetcher);
+ DownloadAction(PrefsInterface* prefs, HttpFetcher* http_fetcher);
virtual ~DownloadAction();
typedef ActionTraits<DownloadAction>::InputObjectType InputObjectType;
typedef ActionTraits<DownloadAction>::OutputObjectType OutputObjectType;
@@ -96,6 +97,9 @@ class DownloadAction : public Action<DownloadAction>,
// The InstallPlan passed in
InstallPlan install_plan_;
+ // Update Engine preference store.
+ PrefsInterface* prefs_;
+
// The FileWriter that downloaded data should be written to. It will
// either point to *decompressing_file_writer_ or *delta_performer_.
FileWriter* writer_;
« no previous file with comments | « delta_performer_unittest.cc ('k') | download_action.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698