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

Side by Side Diff: third_party/courgette/adjustment_method.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
« no previous file with comments | « third_party/courgette/LICENCE.bsdiff ('k') | third_party/courgette/adjustment_method.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_ADJUSTMENT_METHOD_H_
6 #define COURGETTE_ADJUSTMENT_METHOD_H_
7
8 #include "base/basictypes.h"
9
10 namespace courgette {
11
12 class AssemblyProgram;
13
14 class AdjustmentMethod {
15 public:
16 // Factory methods for making adjusters.
17
18 // Returns the adjustment method used in production.
19 static AdjustmentMethod* MakeProductionAdjustmentMethod();
20
21 // Returns and adjustement method that makes no adjustments.
22 static AdjustmentMethod* MakeNullAdjustmentMethod();
23
24
25 // Adjusts |program| to increase similarity to |model|. |program| can be
26 // changed in any way provided that it still produces the same output when
27 // assembled.
28 virtual bool Adjust(const AssemblyProgram& model,
29 AssemblyProgram* program) = 0;
30
31 // Deletes 'this' adjustment method.
32 virtual void Destroy();
33
34 protected:
35 AdjustmentMethod() {}
36 virtual ~AdjustmentMethod() {}
37
38 DISALLOW_COPY_AND_ASSIGN(AdjustmentMethod);
39 };
40
41 } // namespace courgette
42 #endif // COURGETTE_ADJUSTMENT_METHOD_H_
43
OLDNEW
« no previous file with comments | « third_party/courgette/LICENCE.bsdiff ('k') | third_party/courgette/adjustment_method.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698