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

Unified Diff: courgette/ensemble_create.cc

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_apply.cc ('k') | courgette/patch_generator_x86_32.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: courgette/ensemble_create.cc
diff --git a/courgette/ensemble_create.cc b/courgette/ensemble_create.cc
index 07ede7e8ee438fbeaf6889ead6b88b8bbbd9a745..a5674ca99010c96c12636473bd2cd4a1475cadb5 100644
--- a/courgette/ensemble_create.cc
+++ b/courgette/ensemble_create.cc
@@ -28,8 +28,8 @@
#include "courgette/region.h"
#include "courgette/simple_delta.h"
-#include "courgette/win32_x86_patcher.h"
-#include "courgette/win32_x86_generator.h"
+#include "courgette/patcher_x86_32.h"
+#include "courgette/patch_generator_x86_32.h"
namespace courgette {
@@ -65,14 +65,15 @@ Status TransformationPatchGenerator::Reform(
TransformationPatchGenerator* MakeGenerator(Element* old_element,
Element* new_element) {
switch (new_element->kind()) {
- case UNKNOWN:
+ case EXE_UNKNOWN:
break;
- case WIN32_X86: {
+ case EXE_WIN_32_X86: {
TransformationPatchGenerator* generator =
- new CourgetteWin32X86PatchGenerator(
+ new PatchGeneratorX86_32(
old_element,
new_element,
- new CourgetteWin32X86Patcher(old_element->region()));
+ new PatcherX86_32(old_element->region()),
+ EXE_WIN_32_X86);
return generator;
}
}
@@ -240,7 +241,7 @@ Status GenerateEnsemblePatch(SourceStream* base,
return C_STREAM_ERROR;
for (size_t i = 0; i < number_of_transformations; ++i) {
- CourgettePatchFile::TransformationMethodId kind = generators[i]->Kind();
+ ExecutableType kind = generators[i]->Kind();
if (!tranformation_descriptions->WriteVarint32(kind))
return C_STREAM_ERROR;
}
« no previous file with comments | « courgette/ensemble_apply.cc ('k') | courgette/patch_generator_x86_32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698