| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_INSTALLER_MINI_INSTALLER_PE_RESOURCE_H_ | 5 #ifndef CHROME_INSTALLER_MINI_INSTALLER_PE_RESOURCE_H_ |
| 6 #define CHROME_INSTALLER_MINI_INSTALLER_PE_RESOURCE_H_ | 6 #define CHROME_INSTALLER_MINI_INSTALLER_PE_RESOURCE_H_ |
| 7 | 7 |
| 8 #include <windows.h> | 8 #include <windows.h> |
| 9 | 9 |
| 10 // This class models a windows PE resource. It does not pretend to be a full | 10 // This class models a windows PE resource. It does not pretend to be a full |
| 11 // API wrapper and it is just concerned with loading it to memory and writing | 11 // API wrapper and it is just concerned with loading it to memory and writing |
| (...skipping 20 matching lines...) Expand all Loading... |
| 32 // not be loaded into memory or if it cannot be written to disk it returns | 32 // not be loaded into memory or if it cannot be written to disk it returns |
| 33 // false. | 33 // false. |
| 34 bool WriteToDisk(const wchar_t* path); | 34 bool WriteToDisk(const wchar_t* path); |
| 35 | 35 |
| 36 private: | 36 private: |
| 37 HRSRC resource_; | 37 HRSRC resource_; |
| 38 HMODULE module_; | 38 HMODULE module_; |
| 39 }; | 39 }; |
| 40 | 40 |
| 41 #endif // CHROME_INSTALLER_MINI_INSTALLER_PE_RESOURCE_H_ | 41 #endif // CHROME_INSTALLER_MINI_INSTALLER_PE_RESOURCE_H_ |
| OLD | NEW |