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

Unified Diff: download_action.h

Issue 6792065: AU: Detect and report public key verify failures, but continue updating. (Closed) Base URL: http://git.chromium.org/git/update_engine.git@master
Patch Set: fixes for review Created 9 years, 9 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 | « action_processor.h ('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 61067405513c7b42fa71cb8a7f05dbd398349205..3a7dfe824d2284cd3eca1931fcbac830da39c30b 100644
--- a/download_action.h
+++ b/download_action.h
@@ -13,6 +13,7 @@
#include <base/scoped_ptr.h>
#include <curl/curl.h>
+#include <google/protobuf/stubs/common.h>
#include "update_engine/action.h"
#include "update_engine/decompressing_file_writer.h"
@@ -97,6 +98,10 @@ class DownloadAction : public Action<DownloadAction>,
HttpFetcher* http_fetcher() { return http_fetcher_.get(); }
+ void set_skip_reporting_signature_fail(google::protobuf::Closure* callback) {
+ skip_reporting_signature_fail_.reset(callback);
+ }
+
private:
// The InstallPlan passed in
InstallPlan install_plan_;
@@ -133,6 +138,9 @@ class DownloadAction : public Action<DownloadAction>,
DownloadActionDelegate* delegate_;
uint64_t bytes_received_;
+ // Called if the download fails OR (download success AND signature verifies)
gauravsh 2011/04/06 02:40:23 I think the last condition in this comment is wron
+ scoped_ptr<google::protobuf::Closure> skip_reporting_signature_fail_;
+
DISALLOW_COPY_AND_ASSIGN(DownloadAction);
};
« no previous file with comments | « action_processor.h ('k') | download_action.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698