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

Unified Diff: src/platform/update_engine/install_plan.h

Issue 2037002: AU: DBus support. (Closed) Base URL: ssh://git@chromiumos-git/chromeos
Patch Set: fixes for review Created 10 years, 7 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: src/platform/update_engine/install_plan.h
diff --git a/src/platform/update_engine/install_plan.h b/src/platform/update_engine/install_plan.h
index fba89fe7bd18a3087abdad3c737b4e07d146db56..9fc6eadaba23e79b19cb3b6bed518c883e6c8666 100644
--- a/src/platform/update_engine/install_plan.h
+++ b/src/platform/update_engine/install_plan.h
@@ -16,11 +16,13 @@ namespace chromeos_update_engine {
struct InstallPlan {
InstallPlan(bool is_full,
const std::string& url,
+ uint64_t size,
const std::string& hash,
const std::string& install_path,
const std::string& kernel_install_path)
: is_full_update(is_full),
download_url(url),
+ size(size),
download_hash(hash),
install_path(install_path),
kernel_install_path(kernel_install_path) {}
@@ -28,6 +30,7 @@ struct InstallPlan {
bool is_full_update;
std::string download_url; // url to download from
+ uint64_t size; // size of the download url's data
std::string download_hash; // hash of the data at the url
std::string install_path; // path to install device
std::string kernel_install_path; // path to kernel install device
@@ -35,6 +38,7 @@ struct InstallPlan {
bool operator==(const InstallPlan& that) const {
return (is_full_update == that.is_full_update) &&
(download_url == that.download_url) &&
+ (size == that.size) &&
(download_hash == that.download_hash) &&
(install_path == that.install_path) &&
(kernel_install_path == that.kernel_install_path);
@@ -45,7 +49,9 @@ struct InstallPlan {
void Dump() const {
LOG(INFO) << "InstallPlan: "
<< (is_full_update ? "full_update" : "delta_update")
- << ", url: " << download_url << ", hash: " << download_hash
+ << ", url: " << download_url
+ << ", size: " << size
+ << ", hash: " << download_hash
<< ", install_path: " << install_path
<< ", kernel_install_path: " << kernel_install_path;
}

Powered by Google App Engine
This is Rietveld 408576698