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_ENTRY_IMPL_H_ | 5 #ifndef NET_DISK_CACHE_SIMPLE_SIMPLE_ENTRY_IMPL_H_ |
6 #define NET_DISK_CACHE_SIMPLE_SIMPLE_ENTRY_IMPL_H_ | 6 #define NET_DISK_CACHE_SIMPLE_SIMPLE_ENTRY_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 // |last_used_|, |last_modified_| and |data_size_| are copied from the | 106 // |last_used_|, |last_modified_| and |data_size_| are copied from the |
107 // synchronous entry at the completion of each item of asynchronous IO. | 107 // synchronous entry at the completion of each item of asynchronous IO. |
108 base::Time last_used_; | 108 base::Time last_used_; |
109 base::Time last_modified_; | 109 base::Time last_modified_; |
110 int32 data_size_[kSimpleEntryFileCount]; | 110 int32 data_size_[kSimpleEntryFileCount]; |
111 | 111 |
112 // The |synchronous_entry_| is the worker thread object that performs IO on | 112 // The |synchronous_entry_| is the worker thread object that performs IO on |
113 // entries. It is set to NULL while operations are pending to prevent unsafe | 113 // entries. It is set to NULL while operations are pending to prevent unsafe |
114 // access from multiple threads. | 114 // access from multiple threads. |
115 SimpleSynchronousEntry* synchronous_entry_; | 115 SimpleSynchronousEntry* synchronous_entry_; |
116 | |
117 bool has_been_doomed_; | |
118 }; | 116 }; |
119 | 117 |
120 } // namespace disk_cache | 118 } // namespace disk_cache |
121 | 119 |
122 #endif // NET_DISK_CACHE_SIMPLE_SIMPLE_ENTRY_IMPL_H_ | 120 #endif // NET_DISK_CACHE_SIMPLE_SIMPLE_ENTRY_IMPL_H_ |
OLD | NEW |