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

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

Issue 375973003: Componentize component_updater: Use Configurator to build query parameters. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix one gyp omission Created 6 years, 5 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_configurator.h
diff --git a/chrome/browser/component_updater/component_updater_configurator.h b/chrome/browser/component_updater/component_updater_configurator.h
index 9cb73bd836083bf9251f943994185d4df7d07d3b..6527e33ba3585a50ba76c3d300b86f787d35c250 100644
--- a/chrome/browser/component_updater/component_updater_configurator.h
+++ b/chrome/browser/component_updater/component_updater_configurator.h
@@ -7,6 +7,8 @@
#include <string>
+#include "base/version.h"
Sorin Jianu 2014/07/09 08:29:16 A forward decl for base::Version would be sufficie
tommycli 2014/07/09 19:48:10 Done. Had no idea that this was possible. I guess
+
class GURL;
namespace base {
@@ -53,11 +55,23 @@ class Configurator {
// pings are disabled.
virtual GURL PingUrl() const = 0;
+ // Version of the application. Used to compare to component manifests.
+ virtual base::Version ApplicationVersion() const = 0;
+
+ // Parameters added to each url request that specify the current platform.
+ // The return string must be safe for insertion as an attribute in an
+ // XML element.
+ virtual std::string PlatformRequestParams() const = 0;
+
// Parameters added to each url request. It can be empty if none are needed.
// The return string must be safe for insertion as an attribute in an
// XML element.
virtual std::string ExtraRequestParams() const = 0;
+ // Tag added to the body of each url request. Specifies the platform
+ // name and version. This is a self-closing XML tag.
+ virtual std::string RequestOSTag() const = 0;
+
// How big each update request can be. Don't go above 2000.
virtual size_t UrlSizeLimit() const = 0;

Powered by Google App Engine
This is Rietveld 408576698