Index: download_action.h |
diff --git a/download_action.h b/download_action.h |
index 61067405513c7b42fa71cb8a7f05dbd398349205..3a7bdaa14554372535fa2a72af9916584ab25239 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 signiture verifies) |
gauravsh
2011/04/06 00:07:23
nit: s/signiture/signature/
shouldn't the 2nd con
|
+ scoped_ptr<google::protobuf::Closure> skip_reporting_signature_fail_; |
+ |
DISALLOW_COPY_AND_ASSIGN(DownloadAction); |
}; |