OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef COMPONENTS_UPDATE_CLIENT_UPDATE_QUERY_PARAMS_H_ | 5 #ifndef COMPONENTS_UPDATE_CLIENT_UPDATE_QUERY_PARAMS_H_ |
6 #define COMPONENTS_UPDATE_CLIENT_UPDATE_QUERY_PARAMS_H_ | 6 #define COMPONENTS_UPDATE_CLIENT_UPDATE_QUERY_PARAMS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 30 matching lines...) Expand all Loading... |
41 // Returns the value we use for the "arch=" parameter. Possible return values | 41 // Returns the value we use for the "arch=" parameter. Possible return values |
42 // include: "x86", "x64", and "arm". | 42 // include: "x86", "x64", and "arm". |
43 static const char* GetArch(); | 43 static const char* GetArch(); |
44 | 44 |
45 // Returns the value we use for the "nacl_arch" parameter. Note that this may | 45 // Returns the value we use for the "nacl_arch" parameter. Note that this may |
46 // be different from the "arch" parameter above (e.g. one may be 32-bit and | 46 // be different from the "arch" parameter above (e.g. one may be 32-bit and |
47 // the other 64-bit). Possible return values include: "x86-32", "x86-64", | 47 // the other 64-bit). Possible return values include: "x86-32", "x86-64", |
48 // "arm", and "mips32". | 48 // "arm", and "mips32". |
49 static const char* GetNaclArch(); | 49 static const char* GetNaclArch(); |
50 | 50 |
| 51 // Returns the current version of Chrome/Chromium. |
| 52 static std::string GetProdVersion(); |
| 53 |
51 // Use this delegate. | 54 // Use this delegate. |
52 static void SetDelegate(UpdateQueryParamsDelegate* delegate); | 55 static void SetDelegate(UpdateQueryParamsDelegate* delegate); |
53 | 56 |
54 private: | 57 private: |
55 DISALLOW_IMPLICIT_CONSTRUCTORS(UpdateQueryParams); | 58 DISALLOW_IMPLICIT_CONSTRUCTORS(UpdateQueryParams); |
56 }; | 59 }; |
57 | 60 |
58 } // namespace update_client | 61 } // namespace update_client |
59 | 62 |
60 #endif // COMPONENTS_UPDATE_CLIENT_UPDATE_QUERY_PARAMS_H_ | 63 #endif // COMPONENTS_UPDATE_CLIENT_UPDATE_QUERY_PARAMS_H_ |
OLD | NEW |