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

Unified Diff: components/update_client/update_client.h

Issue 1740333002: Allow fallback from https to http for component update checks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix for 0u literal. Created 4 years, 8 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: components/update_client/update_client.h
diff --git a/components/update_client/update_client.h b/components/update_client/update_client.h
index 12d19c951487b3505679e5106fd3b573d08c6825..e354fb6263996074393c8ad113ddd1df7f0a9a82 100644
--- a/components/update_client/update_client.h
+++ b/components/update_client/update_client.h
@@ -143,6 +143,7 @@ enum Error {
ERROR_UPDATE_INVALID_ARGUMENT = -1,
ERROR_UPDATE_IN_PROGRESS = 1,
ERROR_UPDATE_CANCELED = 2,
+ ERROR_UPDATE_RETRY_LATER = 3,
};
// Defines an interface for a generic CRX installer.
@@ -197,10 +198,14 @@ struct CrxComponent {
std::string name; // Optional.
// Specifies that the CRX can be background-downloaded in some cases.
- // The default for this value is |true| and the value can be overriden at
- // the registration time. This is a temporary change until the issue
- // crbug/340448 is resolved.
- bool allow_background_download;
+ // The default for this value is |true|.
+ bool allows_background_download;
+
+ // Specifies that the update checks and pings associated with this component
+ // require confidentiality. The default for this value is |true|. As a side
+ // note, the confidentiality of the downloads is enforced by the server,
+ // which only returns secure download URLs in this case.
+ bool requires_network_encryption;
};
// All methods are safe to call only from the browser's main thread. Once an

Powered by Google App Engine
This is Rietveld 408576698