Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: third_party/courgette/disassembler.h

Issue 115062: Move Courgette... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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
OLDNEW
« no previous file with comments | « third_party/courgette/difference_estimator_unittest.cc ('k') | third_party/courgette/disassembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698