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_ |