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

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: Use count() instead of find() 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
« no previous file with comments | « chrome/chrome_common.gypi ('k') | chrome/common/omaha_query_params.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..90059c617be903bdaabd0fc4269dcf269008fd4a
--- /dev/null
+++ b/chrome/common/omaha_query_params.h
@@ -0,0 +1,33 @@
+// 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);
+
+ private:
+ DISALLOW_IMPLICIT_CONSTRUCTORS(OmahaQueryParams);
+};
+
+} // namespace chrome
+
+#endif // CHROME_COMMON_OMAHA_QUERY_PARAMS_H_
« no previous file with comments | « chrome/chrome_common.gypi ('k') | chrome/common/omaha_query_params.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698