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 "net/disk_cache/mapped_file.h" | 5 #include "net/disk_cache/blockfile/mapped_file.h" |
6 | 6 |
7 #include <errno.h> | 7 #include <errno.h> |
8 #include <sys/mman.h> | 8 #include <sys/mman.h> |
9 | 9 |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "net/disk_cache/disk_cache.h" | 12 #include "net/disk_cache/disk_cache.h" |
13 | 13 |
14 namespace disk_cache { | 14 namespace disk_cache { |
15 | 15 |
(...skipping 29 matching lines...) Expand all Loading... |
45 if (!init_) | 45 if (!init_) |
46 return; | 46 return; |
47 | 47 |
48 if (buffer_) { | 48 if (buffer_) { |
49 int ret = munmap(buffer_, view_size_); | 49 int ret = munmap(buffer_, view_size_); |
50 DCHECK_EQ(0, ret); | 50 DCHECK_EQ(0, ret); |
51 } | 51 } |
52 } | 52 } |
53 | 53 |
54 } // namespace disk_cache | 54 } // namespace disk_cache |
OLD | NEW |