diff options
author | sra@chromium.org <sra@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-06 04:02:10 +0000 |
---|---|---|
committer | sra@chromium.org <sra@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-06 04:02:10 +0000 |
commit | f76b3b04a4c092d7db4cc2a75da4ca7fbac1f620 (patch) | |
tree | f32d9b1d982f427681c4c3a95c266afebf5e523a /third_party/courgette/disassembler.h | |
parent | 5754c035975900ea5a48cb33aaa2c73d77c2cb35 (diff) | |
download | chromium_src-f76b3b04a4c092d7db4cc2a75da4ca7fbac1f620.zip chromium_src-f76b3b04a4c092d7db4cc2a75da4ca7fbac1f620.tar.gz chromium_src-f76b3b04a4c092d7db4cc2a75da4ca7fbac1f620.tar.bz2 |
Move Courgette from internal depot to third_party.
Review URL: http://codereview.chromium.org/113009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15377 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party/courgette/disassembler.h')
-rw-r--r-- | third_party/courgette/disassembler.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/third_party/courgette/disassembler.h b/third_party/courgette/disassembler.h new file mode 100644 index 0000000..595412e --- /dev/null +++ b/third_party/courgette/disassembler.h @@ -0,0 +1,39 @@ +// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef COURGETTE_DISASSEMBLER_H_
+#define COURGETTE_DISASSEMBLER_H_
+
+#include "base/basictypes.h"
+
+namespace courgette {
+
+class AssemblyProgram;
+class PEInfo;
+
+class Disassembler {
+ public:
+ // Factory methods for making disassemblers for various kinds of executables.
+ // We have only one so far.
+
+ static Disassembler* MakeDisassemberWin32X86(PEInfo* pe_info);
+
+ // Disassembles the item passed to the factory method into the output
+ // parameter 'program'.
+ virtual bool Disassemble(AssemblyProgram* program) = 0;
+
+ // Deletes 'this' disassembler.
+ virtual void Destroy() = 0;
+
+ protected:
+ Disassembler() {}
+ virtual ~Disassembler() {}
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(Disassembler);
+};
+
+} // namespace courgette
+#endif // COURGETTE_DISASSEMBLER_H_
+
|