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

Unified Diff: chrome/browser/component_updater/component_updater_service.h

Issue 11859044: Add a way to specify different source urls for the component updater (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 11 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: chrome/browser/component_updater/component_updater_service.h
===================================================================
--- chrome/browser/component_updater/component_updater_service.h (revision 177059)
+++ chrome/browser/component_updater/component_updater_service.h (working copy)
@@ -47,11 +47,23 @@
// Only |name| is optional. |pk_hash| is the SHA256 hash of the component's
// public key. If the component is to be installed then version should be
// "0" or "0.0", else it should be the current version.
+// |source| is by default pointing to BANDAID but if needed it can be made
+// to point to the webstore (CWS_PUBLIC) or to the webstore sandbox. It is
+// important to note that the BANDAID source if active throught the day
+// can pre-empt updates from the other sources down the list.
struct CrxComponent {
+ // Specifies the source url for manifest check.
+ enum UrlSource {
+ BANDAID,
+ CWS_PUBLIC,
+ CWS_SANDBOX
+ };
+
std::vector<uint8> pk_hash;
ComponentInstaller* installer;
Version version;
std::string name;
+ UrlSource source;
CrxComponent();
~CrxComponent();
};
@@ -100,7 +112,7 @@
// Minimun delta time in seconds before checking again the same component.
virtual int MinimumReCheckWait() = 0;
// The url that is going to be used update checks over Omaha protocol.
- virtual GURL UpdateUrl() = 0;
+ virtual GURL UpdateUrl(CrxComponent::UrlSource source) = 0;
// Parameters added to each url request. It can be null if none are needed.
virtual const char* ExtraRequestParams() = 0;
// How big each update request can be. Don't go above 2000.

Powered by Google App Engine
This is Rietveld 408576698