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_FILE_H_ | 7 #ifndef NET_DISK_CACHE_BLOCKFILE_FILE_H_ |
8 #define NET_DISK_CACHE_BLOCKFILE_FILE_H_ | 8 #define NET_DISK_CACHE_BLOCKFILE_FILE_H_ |
9 | 9 |
| 10 #include <stddef.h> |
| 11 |
10 #include "base/files/file.h" | 12 #include "base/files/file.h" |
| 13 #include "base/macros.h" |
11 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
12 #include "net/base/net_export.h" | 15 #include "net/base/net_export.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 |
20 // This interface is used to support asynchronous ReadData and WriteData calls. | 23 // This interface is used to support asynchronous ReadData and WriteData calls. |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 bool mixed_; | 94 bool mixed_; |
92 base::File base_file_; // Regular, asynchronous IO handle. | 95 base::File base_file_; // Regular, asynchronous IO handle. |
93 base::File sync_base_file_; // Synchronous IO handle. | 96 base::File sync_base_file_; // Synchronous IO handle. |
94 | 97 |
95 DISALLOW_COPY_AND_ASSIGN(File); | 98 DISALLOW_COPY_AND_ASSIGN(File); |
96 }; | 99 }; |
97 | 100 |
98 } // namespace disk_cache | 101 } // namespace disk_cache |
99 | 102 |
100 #endif // NET_DISK_CACHE_BLOCKFILE_FILE_H_ | 103 #endif // NET_DISK_CACHE_BLOCKFILE_FILE_H_ |
OLD | NEW |