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 27 matching lines...) Expand all Loading... |
38 std::string LastChange() const; | 38 std::string LastChange() const; |
39 | 39 |
40 // OS type. E.g. "Windows", "Linux", "FreeBSD", ... | 40 // OS type. E.g. "Windows", "Linux", "FreeBSD", ... |
41 std::string OSType() const; | 41 std::string OSType() const; |
42 | 42 |
43 // Whether this is an "official" release of the current Version(): | 43 // Whether this is an "official" release of the current Version(): |
44 // whether knowing Version() is enough to completely determine what | 44 // whether knowing Version() is enough to completely determine what |
45 // LastChange() is. | 45 // LastChange() is. |
46 bool IsOfficialBuild() const; | 46 bool IsOfficialBuild() const; |
47 | 47 |
| 48 // Returns a version string to be displayed in "About Chromium" dialog. |
| 49 std::string CreateVersionString() const; |
| 50 |
48 private: | 51 private: |
49 #if defined(OS_WIN) || defined(OS_MACOSX) | 52 #if defined(OS_WIN) || defined(OS_MACOSX) |
50 scoped_ptr<FileVersionInfo> version_info_; | 53 scoped_ptr<FileVersionInfo> version_info_; |
51 #endif | 54 #endif |
52 | 55 |
53 DISALLOW_COPY_AND_ASSIGN(VersionInfo); | 56 DISALLOW_COPY_AND_ASSIGN(VersionInfo); |
54 }; | 57 }; |
55 | 58 |
56 } // namespace chrome | 59 } // namespace chrome |
57 | 60 |
58 #endif // CHROME_COMMON_CHROME_VERSION_INFO_H_ | 61 #endif // CHROME_COMMON_CHROME_VERSION_INFO_H_ |
OLD | NEW |