OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_VERSION_INFO_VERSION_INFO_H_ | 5 #ifndef COMPONENTS_VERSION_INFO_VERSION_INFO_H_ |
6 #define COMPONENTS_VERSION_INFO_VERSION_INFO_H_ | 6 #define COMPONENTS_VERSION_INFO_VERSION_INFO_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
| 10 #include "components/version_info/channel.h" |
| 11 |
10 namespace version_info { | 12 namespace version_info { |
11 | 13 |
12 // The possible channels for an installation, from most fun to most stable. | |
13 enum class Channel { UNKNOWN = 0, CANARY, DEV, BETA, STABLE }; | |
14 | |
15 // Returns the product name and version information for UserAgent header, | 14 // Returns the product name and version information for UserAgent header, |
16 // e.g. "Chrome/a.b.c.d". | 15 // e.g. "Chrome/a.b.c.d". |
17 std::string GetProductNameAndVersionForUserAgent(); | 16 std::string GetProductNameAndVersionForUserAgent(); |
18 | 17 |
19 // Returns the product name, e.g. "Chromium" or "Google Chrome". | 18 // Returns the product name, e.g. "Chromium" or "Google Chrome". |
20 std::string GetProductName(); | 19 std::string GetProductName(); |
21 | 20 |
22 // Returns the version number, e.g. "6.0.490.1". | 21 // Returns the version number, e.g. "6.0.490.1". |
23 std::string GetVersionNumber(); | 22 std::string GetVersionNumber(); |
24 | 23 |
(...skipping 14 matching lines...) Expand all Loading... |
39 | 38 |
40 // Returns a version string to be displayed in "About Chromium" dialog. | 39 // Returns a version string to be displayed in "About Chromium" dialog. |
41 // |modifier| is a string representation of the channel with system specific | 40 // |modifier| is a string representation of the channel with system specific |
42 // information, e.g. "dev SyzyASan". It is appended to the returned version | 41 // information, e.g. "dev SyzyASan". It is appended to the returned version |
43 // information if non-empty. | 42 // information if non-empty. |
44 std::string GetVersionStringWithModifier(const std::string& modifier); | 43 std::string GetVersionStringWithModifier(const std::string& modifier); |
45 | 44 |
46 } // namespace version_info | 45 } // namespace version_info |
47 | 46 |
48 #endif // COMPONENTS_VERSION_INFO_VERSION_INFO_H_ | 47 #endif // COMPONENTS_VERSION_INFO_VERSION_INFO_H_ |
OLD | NEW |