| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef COURGETTE_DISASSEMBLER_H_ | |
| 6 #define COURGETTE_DISASSEMBLER_H_ | |
| 7 | |
| 8 #include "base/basictypes.h" | |
| 9 | |
| 10 namespace courgette { | |
| 11 | |
| 12 class AssemblyProgram; | |
| 13 class PEInfo; | |
| 14 | |
| 15 class Disassembler { | |
| 16 public: | |
| 17 // Factory methods for making disassemblers for various kinds of executables. | |
| 18 // We have only one so far. | |
| 19 | |
| 20 static Disassembler* MakeDisassemberWin32X86(PEInfo* pe_info); | |
| 21 | |
| 22 // Disassembles the item passed to the factory method into the output | |
| 23 // parameter 'program'. | |
| 24 virtual bool Disassemble(AssemblyProgram* program) = 0; | |
| 25 | |
| 26 // Deletes 'this' disassembler. | |
| 27 virtual void Destroy() = 0; | |
| 28 | |
| 29 protected: | |
| 30 Disassembler() {} | |
| 31 virtual ~Disassembler() {} | |
| 32 | |
| 33 private: | |
| 34 DISALLOW_COPY_AND_ASSIGN(Disassembler); | |
| 35 }; | |
| 36 | |
| 37 } // namespace courgette | |
| 38 #endif // COURGETTE_DISASSEMBLER_H_ | |
| 39 | |
| OLD | NEW |