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

Unified Diff: chrome/common/omaha_query_params.h

Issue 12928004: Add nacl_arch to data we send in omaha update checks for extensions/components (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add missing includes to fix windows compile error Created 7 years, 9 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/common/omaha_query_params.h
diff --git a/chrome/common/omaha_query_params.h b/chrome/common/omaha_query_params.h
index 90059c617be903bdaabd0fc4269dcf269008fd4a..d58173262c0a93509caa5ead5356e28c2af6ea66 100644
--- a/chrome/common/omaha_query_params.h
+++ b/chrome/common/omaha_query_params.h
@@ -24,6 +24,20 @@ class OmahaQueryParams {
// prod, prodchannel, prodversion.
static std::string Get(ProdId prod);
+ // Returns the value we use for the "os=" parameter. Possible return values
+ // include: "mac", "win", "android", "cros", "linux", and "openbsd".
+ static const char* getOS();
+
+ // Returns the value we use for the "arch=" parameter. Possible return values
+ // include: "x86", "x64", and "arm".
+ static const char* getArch();
+
+ // Returns the value we use for the "nacl_arch" parameter. Note that this may
+ // be different from the "arch" parameter above (e.g. one may be 32-bit and
+ // the other 64-bit). Possible return values include: "x86-32", "x86-64",
+ // "arm", and "mips32".
+ static const char* getNaclArch();
+
private:
DISALLOW_IMPLICIT_CONSTRUCTORS(OmahaQueryParams);
};
« no previous file with comments | « chrome/browser/component_updater/pnacl/pnacl_component_installer.cc ('k') | chrome/common/omaha_query_params.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698