OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #ifndef NET_DISK_CACHE_SIMPLE_SIMPLE_SYNCHRONOUS_ENTRY_H_ | 5 #ifndef NET_DISK_CACHE_SIMPLE_SIMPLE_SYNCHRONOUS_ENTRY_H_ |
6 #define NET_DISK_CACHE_SIMPLE_SIMPLE_SYNCHRONOUS_ENTRY_H_ | 6 #define NET_DISK_CACHE_SIMPLE_SIMPLE_SYNCHRONOUS_ENTRY_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/platform_file.h" | 13 #include "base/platform_file.h" |
14 #include "base/task_runner.h" | 14 #include "base/task_runner.h" |
15 #include "base/time.h" | 15 #include "base/time.h" |
16 #include "net/base/completion_callback.h" | 16 #include "net/base/completion_callback.h" |
17 #include "net/disk_cache/simple/simple_disk_format.h" | 17 #include "net/disk_cache/simple/simple_entry_format.h" |
18 | 18 |
19 namespace base { | 19 namespace base { |
20 class SingleThreadTaskRunner; | 20 class SingleThreadTaskRunner; |
21 } | 21 } |
22 | 22 |
23 namespace net { | 23 namespace net { |
24 class IOBuffer; | 24 class IOBuffer; |
25 } | 25 } |
26 | 26 |
27 namespace disk_cache { | 27 namespace disk_cache { |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 base::Time last_used_; | 115 base::Time last_used_; |
116 base::Time last_modified_; | 116 base::Time last_modified_; |
117 int32 data_size_[kSimpleEntryFileCount]; | 117 int32 data_size_[kSimpleEntryFileCount]; |
118 | 118 |
119 base::PlatformFile files_[kSimpleEntryFileCount]; | 119 base::PlatformFile files_[kSimpleEntryFileCount]; |
120 }; | 120 }; |
121 | 121 |
122 } // namespace disk_cache | 122 } // namespace disk_cache |
123 | 123 |
124 #endif // NET_DISK_CACHE_SIMPLE_SIMPLE_SYNCHRONOUS_ENTRY_H_ | 124 #endif // NET_DISK_CACHE_SIMPLE_SIMPLE_SYNCHRONOUS_ENTRY_H_ |
OLD | NEW |