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

Side by Side Diff: courgette/courgette.h

Issue 8417045: Last small bit of refactoring. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 1 month 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
« no previous file with comments | « no previous file | courgette/courgette.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef COURGETTE_COURGETTE_H_ 5 #ifndef COURGETTE_COURGETTE_H_
6 #define COURGETTE_COURGETTE_H_ 6 #define COURGETTE_COURGETTE_H_
7 7
8 #include <stddef.h> // Required to define size_t on GCC 8 #include <stddef.h> // Required to define size_t on GCC
9 9
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 // used up. 44 // used up.
45 C_SERIALIZATION_FAILED = 22, // 45 C_SERIALIZATION_FAILED = 22, //
46 C_DESERIALIZATION_FAILED = 23, // 46 C_DESERIALIZATION_FAILED = 23, //
47 C_INPUT_NOT_RECOGNIZED = 24, // Unrecognized input (not an executable). 47 C_INPUT_NOT_RECOGNIZED = 24, // Unrecognized input (not an executable).
48 C_DISASSEMBLY_FAILED = 25, // 48 C_DISASSEMBLY_FAILED = 25, //
49 C_ASSEMBLY_FAILED = 26, // 49 C_ASSEMBLY_FAILED = 26, //
50 C_ADJUSTMENT_FAILED = 27, // 50 C_ADJUSTMENT_FAILED = 27, //
51 }; 51 };
52 52
53 // What type of executable is something 53 // What type of executable is something
54 // Generally corresponds to CourgettePatchFile::TransformationMethodId 54 // This is part of the patch format. Never reuse an id number.
55 enum ExecutableType { 55 enum ExecutableType {
56 UNKNOWN, 56 EXE_UNKNOWN = 0,
57 WIN32_X86 57 EXE_WIN_32_X86 = 1,
58 }; 58 };
59 59
60 class SinkStream; 60 class SinkStream;
61 class SinkStreamSet; 61 class SinkStreamSet;
62 class SourceStream; 62 class SourceStream;
63 class SourceStreamSet; 63 class SourceStreamSet;
64 64
65 class AssemblyProgram; 65 class AssemblyProgram;
66 class EncodedProgram; 66 class EncodedProgram;
67 67
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 131
132 // Used to free an EncodedProgram returned by other APIs. 132 // Used to free an EncodedProgram returned by other APIs.
133 void DeleteEncodedProgram(EncodedProgram* encoded); 133 void DeleteEncodedProgram(EncodedProgram* encoded);
134 134
135 // Adjusts |program| to look more like |model|. 135 // Adjusts |program| to look more like |model|.
136 // 136 //
137 Status Adjust(const AssemblyProgram& model, AssemblyProgram *program); 137 Status Adjust(const AssemblyProgram& model, AssemblyProgram *program);
138 138
139 } // namespace courgette 139 } // namespace courgette
140 #endif // COURGETTE_COURGETTE_H_ 140 #endif // COURGETTE_COURGETTE_H_
OLDNEW
« no previous file with comments | « no previous file | courgette/courgette.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698