| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 BASE_FILE_VERSION_INFO_WIN_H_ | 5 #ifndef BASE_FILE_VERSION_INFO_WIN_H_ |
| 6 #define BASE_FILE_VERSION_INFO_WIN_H_ | 6 #define BASE_FILE_VERSION_INFO_WIN_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/file_version_info.h" | 12 #include "base/file_version_info.h" |
| 13 #include "base/scoped_ptr.h" | 13 #include "base/scoped_ptr.h" |
| 14 | 14 |
| 15 struct tagVS_FIXEDFILEINFO; | 15 struct tagVS_FIXEDFILEINFO; |
| 16 typedef tagVS_FIXEDFILEINFO VS_FIXEDFILEINFO; | 16 typedef tagVS_FIXEDFILEINFO VS_FIXEDFILEINFO; |
| 17 | 17 |
| 18 class FilePath; | |
| 19 | |
| 20 // Provides a way to access the version information for a file. | 18 // Provides a way to access the version information for a file. |
| 21 // This is the information you access when you select a file in the Windows | 19 // This is the information you access when you select a file in the Windows |
| 22 // explorer, right-click select Properties, then click the Version tab. | 20 // explorer, right-click select Properties, then click the Version tab. |
| 23 | 21 |
| 24 class FileVersionInfoWin : public FileVersionInfo { | 22 class FileVersionInfoWin : public FileVersionInfo { |
| 25 public: | 23 public: |
| 26 FileVersionInfoWin(void* data, int language, int code_page); | 24 FileVersionInfoWin(void* data, int language, int code_page); |
| 27 ~FileVersionInfoWin(); | 25 ~FileVersionInfoWin(); |
| 28 | 26 |
| 29 // Accessors to the different version properties. | 27 // Accessors to the different version properties. |
| (...skipping 29 matching lines...) Expand all Loading... |
| 59 scoped_ptr_malloc<char> data_; | 57 scoped_ptr_malloc<char> data_; |
| 60 int language_; | 58 int language_; |
| 61 int code_page_; | 59 int code_page_; |
| 62 // This is a pointer into the data_ if it exists. Otherwise NULL. | 60 // This is a pointer into the data_ if it exists. Otherwise NULL. |
| 63 VS_FIXEDFILEINFO* fixed_file_info_; | 61 VS_FIXEDFILEINFO* fixed_file_info_; |
| 64 | 62 |
| 65 DISALLOW_COPY_AND_ASSIGN(FileVersionInfoWin); | 63 DISALLOW_COPY_AND_ASSIGN(FileVersionInfoWin); |
| 66 }; | 64 }; |
| 67 | 65 |
| 68 #endif // BASE_FILE_VERSION_INFO_WIN_H_ | 66 #endif // BASE_FILE_VERSION_INFO_WIN_H_ |
| OLD | NEW |