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 <algorithm> | 8 #include <algorithm> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "base/platform_file.h" | 15 #include "base/platform_file.h" |
16 #include "base/time.h" | 16 #include "base/time/time.h" |
17 #include "net/disk_cache/simple/simple_entry_format.h" | 17 #include "net/disk_cache/simple/simple_entry_format.h" |
18 | 18 |
19 namespace net { | 19 namespace net { |
20 class IOBuffer; | 20 class IOBuffer; |
21 } | 21 } |
22 | 22 |
23 namespace disk_cache { | 23 namespace disk_cache { |
24 | 24 |
25 // Worker thread interface to the very simple cache. This interface is not | 25 // Worker thread interface to the very simple cache. This interface is not |
26 // thread safe, and callers must ensure that it is only ever accessed from | 26 // thread safe, and callers must ensure that it is only ever accessed from |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 base::Time last_used_; | 129 base::Time last_used_; |
130 base::Time last_modified_; | 130 base::Time last_modified_; |
131 int32 data_size_[kSimpleEntryFileCount]; | 131 int32 data_size_[kSimpleEntryFileCount]; |
132 | 132 |
133 base::PlatformFile files_[kSimpleEntryFileCount]; | 133 base::PlatformFile files_[kSimpleEntryFileCount]; |
134 }; | 134 }; |
135 | 135 |
136 } // namespace disk_cache | 136 } // namespace disk_cache |
137 | 137 |
138 #endif // NET_DISK_CACHE_SIMPLE_SIMPLE_SYNCHRONOUS_ENTRY_H_ | 138 #endif // NET_DISK_CACHE_SIMPLE_SIMPLE_SYNCHRONOUS_ENTRY_H_ |
OLD | NEW |