OLD | NEW |
(Empty) | |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_COMMON_OMAHA_QUERY_PARAMS_H_ |
| 6 #define CHROME_COMMON_OMAHA_QUERY_PARAMS_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "base/basictypes.h" |
| 11 |
| 12 namespace chrome { |
| 13 |
| 14 class OmahaQueryParams { |
| 15 public: |
| 16 enum ProdId { |
| 17 CHROME = 0, |
| 18 CHROMECRX, |
| 19 CHROMIUMCRX, |
| 20 }; |
| 21 |
| 22 // Generates a string of URL query paramaters to be used when getting |
| 23 // component and extension updates. Includes the following fields: os, arch, |
| 24 // prod, prodchannel, prodversion. |
| 25 static std::string Get(ProdId prod); |
| 26 |
| 27 private: |
| 28 DISALLOW_IMPLICIT_CONSTRUCTORS(OmahaQueryParams); |
| 29 }; |
| 30 |
| 31 } // namespace chrome |
| 32 |
| 33 #endif // CHROME_COMMON_OMAHA_QUERY_PARAMS_H_ |
OLD | NEW |