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

Unified Diff: courgette/patch_generator_x86_32.h

Issue 8417045: Last small bit of refactoring. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « courgette/ensemble_create.cc ('k') | courgette/patcher_x86_32.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: courgette/patch_generator_x86_32.h
diff --git a/courgette/win32_x86_generator.h b/courgette/patch_generator_x86_32.h
similarity index 90%
rename from courgette/win32_x86_generator.h
rename to courgette/patch_generator_x86_32.h
index e77819fe800ad18b2f391e4aeb79d0d3ffa30412..0e3b0a8e6c72511fa4998f14fe3f4441ac19d1dd 100644
--- a/courgette/win32_x86_generator.h
+++ b/courgette/patch_generator_x86_32.h
@@ -14,17 +14,17 @@
namespace courgette {
-class CourgetteWin32X86PatchGenerator : public TransformationPatchGenerator {
+class PatchGeneratorX86_32 : public TransformationPatchGenerator {
public:
- CourgetteWin32X86PatchGenerator(Element* old_element,
+ PatchGeneratorX86_32(Element* old_element,
Element* new_element,
- CourgetteWin32X86Patcher* patcher)
- : TransformationPatchGenerator(old_element, new_element, patcher) {
+ PatcherX86_32* patcher,
+ ExecutableType kind)
+ : TransformationPatchGenerator(old_element, new_element, patcher),
+ kind_(kind) {
}
- CourgettePatchFile::TransformationMethodId Kind() {
- return CourgettePatchFile::T_COURGETTE_WIN32_X86;
- }
+ virtual ExecutableType Kind() { return kind_; }
Status WriteInitialParameters(SinkStream* parameter_stream) {
if (!parameter_stream->WriteSizeVarint32(
@@ -124,9 +124,11 @@ class CourgetteWin32X86PatchGenerator : public TransformationPatchGenerator {
}
private:
- ~CourgetteWin32X86PatchGenerator() { }
+ virtual ~PatchGeneratorX86_32() { }
+
+ ExecutableType kind_;
- DISALLOW_COPY_AND_ASSIGN(CourgetteWin32X86PatchGenerator);
+ DISALLOW_COPY_AND_ASSIGN(PatchGeneratorX86_32);
};
} // namespace courgette
« no previous file with comments | « courgette/ensemble_create.cc ('k') | courgette/patcher_x86_32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698