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

Unified Diff: chrome/common/omaha_query_params.h

Issue 12396002: Add chrome version information to extension update checks (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Address comments 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
new file mode 100644
index 0000000000000000000000000000000000000000..a4e5bdf3860d2c33b92669d2314650d85a374f4f
--- /dev/null
+++ b/chrome/common/omaha_query_params.h
@@ -0,0 +1,30 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_COMMON_OMAHA_QUERY_PARAMS_H_
+#define CHROME_COMMON_OMAHA_QUERY_PARAMS_H_
+
+#include <string>
+
+#include "base/basictypes.h"
+
+namespace chrome {
+
+class OmahaQueryParams {
+ public:
+ enum ProdId {
+ CHROME = 0,
+ CHROMECRX,
+ CHROMIUMCRX,
+ };
+
+ // Generates a string of URL query paramaters to be used when getting
+ // component and extension updates. Includes the following fields: os, arch,
+ // prod, prodchannel, prodversion.
+ static std::string Get(ProdId prod);
+};
sky 2013/03/07 01:25:33 private: DISALLOW_IMPLICIT_CONSTUCTORS.
jackhou1 2013/03/07 04:19:24 Done.
+
+} // namespace chrome
+
+#endif // CHROME_COMMON_OMAHA_QUERY_PARAMS_H_

Powered by Google App Engine
This is Rietveld 408576698