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 // This is the transformation and adjustment for all executables. | 5 // This is the transformation and adjustment for all executables. |
6 // The executable type is determined by ParseDetectedExecutable function. | 6 // The executable type is determined by ParseDetectedExecutable function. |
7 | 7 |
8 #ifndef COURGETTE_WIN32_X86_GENERATOR_H_ | 8 #ifndef COURGETTE_WIN32_X86_GENERATOR_H_ |
9 #define COURGETTE_WIN32_X86_GENERATOR_H_ | 9 #define COURGETTE_WIN32_X86_GENERATOR_H_ |
10 | 10 |
11 #include <memory> | 11 #include <memory> |
12 | 12 |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "courgette/assembly_program.h" | 15 #include "courgette/assembly_program.h" |
16 #include "courgette/ensemble.h" | 16 #include "courgette/ensemble.h" |
| 17 #include "courgette/patcher_x86_32.h" |
17 #include "courgette/program_detector.h" | 18 #include "courgette/program_detector.h" |
18 | 19 |
19 namespace courgette { | 20 namespace courgette { |
20 | 21 |
21 class PatchGeneratorX86_32 : public TransformationPatchGenerator { | 22 class PatchGeneratorX86_32 : public TransformationPatchGenerator { |
22 public: | 23 public: |
23 PatchGeneratorX86_32(Element* old_element, | 24 PatchGeneratorX86_32(Element* old_element, |
24 Element* new_element, | 25 Element* new_element, |
25 PatcherX86_32* patcher, | 26 PatcherX86_32* patcher, |
26 ExecutableType kind) | 27 ExecutableType kind) |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 virtual ~PatchGeneratorX86_32() { } | 126 virtual ~PatchGeneratorX86_32() { } |
126 | 127 |
127 ExecutableType kind_; | 128 ExecutableType kind_; |
128 | 129 |
129 DISALLOW_COPY_AND_ASSIGN(PatchGeneratorX86_32); | 130 DISALLOW_COPY_AND_ASSIGN(PatchGeneratorX86_32); |
130 }; | 131 }; |
131 | 132 |
132 } // namespace courgette | 133 } // namespace courgette |
133 | 134 |
134 #endif // COURGETTE_WIN32_X86_GENERATOR_H_ | 135 #endif // COURGETTE_WIN32_X86_GENERATOR_H_ |
OLD | NEW |