OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_COMMON_CHROME_VERSION_INFO_H_ | 5 #ifndef CHROME_COMMON_CHROME_VERSION_INFO_H_ |
6 #define CHROME_COMMON_CHROME_VERSION_INFO_H_ | 6 #define CHROME_COMMON_CHROME_VERSION_INFO_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 19 matching lines...) Expand all Loading... |
30 | 30 |
31 // E.g. "Chromium" or "Google Chrome". | 31 // E.g. "Chromium" or "Google Chrome". |
32 std::string Name() const; | 32 std::string Name() const; |
33 | 33 |
34 // Version number, e.g. "6.0.490.1". | 34 // Version number, e.g. "6.0.490.1". |
35 std::string Version() const; | 35 std::string Version() const; |
36 | 36 |
37 // The SVN revision of this release. E.g. "55800". | 37 // The SVN revision of this release. E.g. "55800". |
38 std::string LastChange() const; | 38 std::string LastChange() const; |
39 | 39 |
| 40 // OS type. E.g. "Windows", "Linux", "FreeBSD", ... |
| 41 std::string OSType() const; |
| 42 |
40 // Whether this is an "official" release of the current Version(): | 43 // Whether this is an "official" release of the current Version(): |
41 // whether knowing Version() is enough to completely determine what | 44 // whether knowing Version() is enough to completely determine what |
42 // LastChange() is. | 45 // LastChange() is. |
43 bool IsOfficialBuild() const; | 46 bool IsOfficialBuild() const; |
44 | 47 |
45 private: | 48 private: |
46 #if defined(OS_WIN) || defined(OS_MACOSX) | 49 #if defined(OS_WIN) || defined(OS_MACOSX) |
47 scoped_ptr<FileVersionInfo> version_info_; | 50 scoped_ptr<FileVersionInfo> version_info_; |
48 #endif | 51 #endif |
49 | 52 |
50 DISALLOW_COPY_AND_ASSIGN(VersionInfo); | 53 DISALLOW_COPY_AND_ASSIGN(VersionInfo); |
51 }; | 54 }; |
52 | 55 |
53 } // namespace chrome | 56 } // namespace chrome |
54 | 57 |
55 #endif // CHROME_COMMON_CHROME_VERSION_INFO_H_ | 58 #endif // CHROME_COMMON_CHROME_VERSION_INFO_H_ |
OLD | NEW |