OLD | NEW |
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_ASSEMBLY_PROGRAM_H_ | 5 #ifndef COURGETTE_ASSEMBLY_PROGRAM_H_ |
6 #define COURGETTE_ASSEMBLY_PROGRAM_H_ | 6 #define COURGETTE_ASSEMBLY_PROGRAM_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
11 #include <map> | 11 #include <map> |
12 #include <set> | 12 #include <set> |
13 #include <vector> | 13 #include <vector> |
14 | 14 |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
| 16 #include "base/memory/free_deleter.h" |
16 #include "base/memory/scoped_ptr.h" | 17 #include "base/memory/scoped_ptr.h" |
17 #include "courgette/courgette.h" | 18 #include "courgette/courgette.h" |
18 #include "courgette/image_utils.h" | 19 #include "courgette/image_utils.h" |
19 #include "courgette/label_manager.h" | 20 #include "courgette/label_manager.h" |
20 #include "courgette/memory_allocator.h" | 21 #include "courgette/memory_allocator.h" |
21 | 22 |
22 namespace courgette { | 23 namespace courgette { |
23 | 24 |
24 class EncodedProgram; | 25 class EncodedProgram; |
25 | 26 |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 | 194 |
194 // Converts |program| into encoded form, returning it as |*output|. | 195 // Converts |program| into encoded form, returning it as |*output|. |
195 // Returns C_OK if succeeded, otherwise returns an error status and sets | 196 // Returns C_OK if succeeded, otherwise returns an error status and sets |
196 // |*output| to null. | 197 // |*output| to null. |
197 Status Encode(const AssemblyProgram& program, | 198 Status Encode(const AssemblyProgram& program, |
198 scoped_ptr<EncodedProgram>* output); | 199 scoped_ptr<EncodedProgram>* output); |
199 | 200 |
200 } // namespace courgette | 201 } // namespace courgette |
201 | 202 |
202 #endif // COURGETTE_ASSEMBLY_PROGRAM_H_ | 203 #endif // COURGETTE_ASSEMBLY_PROGRAM_H_ |
OLD | NEW |