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

Side by Side Diff: courgette/patcher_x86_32.h

Issue 1027883002: Update out-of-date comments and error messages. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « courgette/patch_generator_x86_32.h ('k') | no next file » | 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // This is the transformation for Windows X86 executables.
6 // The same patcher can be used for Windows X64 executables.
7
8 #ifndef COURGETTE_WIN32_X86_PATCHER_H_ 5 #ifndef COURGETTE_WIN32_X86_PATCHER_H_
9 #define COURGETTE_WIN32_X86_PATCHER_H_ 6 #define COURGETTE_WIN32_X86_PATCHER_H_
10 7
11 #include "courgette/ensemble.h" 8 #include "courgette/ensemble.h"
12 9
13 namespace courgette { 10 namespace courgette {
14 11
15 // Courgette32X86Patcher is a TransformationPatcher for Windows 32-bit 12 // PatcherX86_32 is the universal patcher for all executables. The executable
16 // and 64-bit executables. We can use the same patcher for both. 13 // type is determined by ParseDetectedExecutable function.
17 // 14 //
18 class PatcherX86_32 : public TransformationPatcher { 15 class PatcherX86_32 : public TransformationPatcher {
19 public: 16 public:
20 explicit PatcherX86_32(const Region& region) 17 explicit PatcherX86_32(const Region& region)
21 : ensemble_region_(region), 18 : ensemble_region_(region),
22 base_offset_(0), 19 base_offset_(0),
23 base_length_(0) { 20 base_length_(0) {
24 } 21 }
25 22
26 Status Init(SourceStream* parameter_stream) { 23 Status Init(SourceStream* parameter_stream) {
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 Region ensemble_region_; 91 Region ensemble_region_;
95 92
96 uint32 base_offset_; 93 uint32 base_offset_;
97 uint32 base_length_; 94 uint32 base_length_;
98 95
99 DISALLOW_COPY_AND_ASSIGN(PatcherX86_32); 96 DISALLOW_COPY_AND_ASSIGN(PatcherX86_32);
100 }; 97 };
101 98
102 } // namespace 99 } // namespace
103 #endif // COURGETTE_WIN32_X86_PATCHER_H_ 100 #endif // COURGETTE_WIN32_X86_PATCHER_H_
OLDNEW
« no previous file with comments | « courgette/patch_generator_x86_32.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698