| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_BROWSER_SAFE_BROWSING_PE_IMAGE_READER_WIN_H_ | 5 #ifndef CHROME_COMMON_SAFE_BROWSING_PE_IMAGE_READER_WIN_H_ |
| 6 #define CHROME_BROWSER_SAFE_BROWSING_PE_IMAGE_READER_WIN_H_ | 6 #define CHROME_COMMON_SAFE_BROWSING_PE_IMAGE_READER_WIN_H_ |
| 7 | 7 |
| 8 #include <windows.h> | 8 #include <windows.h> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 | 12 |
| 13 namespace safe_browsing { | 13 namespace safe_browsing { |
| 14 | 14 |
| 15 // Parses headers and various data from a PE image. This parser is safe for use | 15 // Parses headers and various data from a PE image. This parser is safe for use |
| 16 // on untrusted data. | 16 // on untrusted data. |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 | 125 |
| 126 const uint8_t* image_data_; | 126 const uint8_t* image_data_; |
| 127 size_t image_size_; | 127 size_t image_size_; |
| 128 uint32_t validation_state_; | 128 uint32_t validation_state_; |
| 129 scoped_ptr<OptionalHeader> optional_header_; | 129 scoped_ptr<OptionalHeader> optional_header_; |
| 130 DISALLOW_COPY_AND_ASSIGN(PeImageReader); | 130 DISALLOW_COPY_AND_ASSIGN(PeImageReader); |
| 131 }; | 131 }; |
| 132 | 132 |
| 133 } // namespace safe_browsing | 133 } // namespace safe_browsing |
| 134 | 134 |
| 135 #endif // CHROME_BROWSER_SAFE_BROWSING_PE_IMAGE_READER_WIN_H_ | 135 #endif // CHROME_COMMON_SAFE_BROWSING_PE_IMAGE_READER_WIN_H_ |
| OLD | NEW |