OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "base/files/memory_mapped_file.h" | 5 #include "base/files/memory_mapped_file.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 #include <stdint.h> |
| 9 |
7 #include <limits> | 10 #include <limits> |
8 | 11 |
9 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
10 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
11 #include "base/threading/thread_restrictions.h" | 14 #include "base/threading/thread_restrictions.h" |
12 | 15 |
13 namespace base { | 16 namespace base { |
14 | 17 |
15 MemoryMappedFile::MemoryMappedFile() : data_(NULL), length_(0), image_(false) { | 18 MemoryMappedFile::MemoryMappedFile() : data_(NULL), length_(0), image_(false) { |
16 } | 19 } |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 if (file_mapping_.IsValid()) | 86 if (file_mapping_.IsValid()) |
84 file_mapping_.Close(); | 87 file_mapping_.Close(); |
85 if (file_.IsValid()) | 88 if (file_.IsValid()) |
86 file_.Close(); | 89 file_.Close(); |
87 | 90 |
88 data_ = NULL; | 91 data_ = NULL; |
89 length_ = 0; | 92 length_ = 0; |
90 } | 93 } |
91 | 94 |
92 } // namespace base | 95 } // namespace base |
OLD | NEW |