OLD | NEW |
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 #include "courgette/memory_allocator.h" | 5 #include "courgette/memory_allocator.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 | 8 |
9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
10 #include "base/stringprintf.h" | 10 #include "base/stringprintf.h" |
11 | 11 |
12 #ifdef OS_WIN | 12 #if defined(OS_WIN) |
13 | 13 |
14 namespace courgette { | 14 namespace courgette { |
15 | 15 |
16 // TempFile | 16 // TempFile |
17 | 17 |
18 TempFile::TempFile() : file_(base::kInvalidPlatformFileValue) { | 18 TempFile::TempFile() : file_(base::kInvalidPlatformFileValue) { |
19 } | 19 } |
20 | 20 |
21 TempFile::~TempFile() { | 21 TempFile::~TempFile() { |
22 Close(); | 22 Close(); |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 if (mem) { | 153 if (mem) { |
154 ret = reinterpret_cast<TempMapping**>(mem)[-1]; | 154 ret = reinterpret_cast<TempMapping**>(mem)[-1]; |
155 } | 155 } |
156 DCHECK(ret); | 156 DCHECK(ret); |
157 return ret; | 157 return ret; |
158 } | 158 } |
159 | 159 |
160 } // namespace courgette | 160 } // namespace courgette |
161 | 161 |
162 #endif // OS_WIN | 162 #endif // OS_WIN |
OLD | NEW |