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 "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "net/disk_cache/disk_cache.h" | 10 #include "net/disk_cache/disk_cache.h" |
11 | 11 |
12 namespace disk_cache { | 12 namespace disk_cache { |
13 | 13 |
14 void* MappedFile::Init(const base::FilePath& name, size_t size) { | 14 void* MappedFile::Init(const base::FilePath& name, size_t size) { |
15 DCHECK(!init_); | 15 DCHECK(!init_); |
(...skipping 30 matching lines...) Expand all Loading... |
46 } | 46 } |
47 | 47 |
48 if (section_) | 48 if (section_) |
49 CloseHandle(section_); | 49 CloseHandle(section_); |
50 } | 50 } |
51 | 51 |
52 void MappedFile::Flush() { | 52 void MappedFile::Flush() { |
53 } | 53 } |
54 | 54 |
55 } // namespace disk_cache | 55 } // namespace disk_cache |
OLD | NEW |