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 // See net/disk_cache/disk_cache.h for the public interface of the cache. | 5 // See net/disk_cache/disk_cache.h for the public interface of the cache. |
6 | 6 |
7 #ifndef NET_DISK_CACHE_BLOCKFILE_MAPPED_FILE_H_ | 7 #ifndef NET_DISK_CACHE_BLOCKFILE_MAPPED_FILE_H_ |
8 #define NET_DISK_CACHE_BLOCKFILE_MAPPED_FILE_H_ | 8 #define NET_DISK_CACHE_BLOCKFILE_MAPPED_FILE_H_ |
9 | 9 |
| 10 #include <stddef.h> |
| 11 |
| 12 #include "base/macros.h" |
10 #include "net/base/net_export.h" | 13 #include "net/base/net_export.h" |
11 #include "net/disk_cache/blockfile/file.h" | 14 #include "net/disk_cache/blockfile/file.h" |
12 #include "net/disk_cache/blockfile/file_block.h" | 15 #include "net/disk_cache/blockfile/file_block.h" |
13 | 16 |
14 namespace base { | 17 namespace base { |
15 class FilePath; | 18 class FilePath; |
16 } | 19 } |
17 | 20 |
18 namespace disk_cache { | 21 namespace disk_cache { |
19 | 22 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 ~ScopedFlush() { | 76 ~ScopedFlush() { |
74 file_->Flush(); | 77 file_->Flush(); |
75 } | 78 } |
76 private: | 79 private: |
77 MappedFile* file_; | 80 MappedFile* file_; |
78 }; | 81 }; |
79 | 82 |
80 } // namespace disk_cache | 83 } // namespace disk_cache |
81 | 84 |
82 #endif // NET_DISK_CACHE_BLOCKFILE_MAPPED_FILE_H_ | 85 #endif // NET_DISK_CACHE_BLOCKFILE_MAPPED_FILE_H_ |
OLD | NEW |