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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 int32 data_size_[kSimpleEntryFileCount]; | 118 int32 data_size_[kSimpleEntryFileCount]; |
119 | 119 |
120 // The |synchronous_entry_| is the worker thread object that performs IO on | 120 // The |synchronous_entry_| is the worker thread object that performs IO on |
121 // entries. | 121 // entries. |
122 SimpleSynchronousEntry* synchronous_entry_; | 122 SimpleSynchronousEntry* synchronous_entry_; |
123 | 123 |
124 // Set to true when a worker operation is posted on the |synchronous_entry_|, | 124 // Set to true when a worker operation is posted on the |synchronous_entry_|, |
125 // and false after. Used to insure thread safety by not allowing multiple | 125 // and false after. Used to insure thread safety by not allowing multiple |
126 // threads to access the |synchronous_entry_| simultaniously. | 126 // threads to access the |synchronous_entry_| simultaniously. |
127 bool synchronous_entry_in_use_by_worker_; | 127 bool synchronous_entry_in_use_by_worker_; |
128 | |
129 bool has_been_doomed_; | |
130 }; | 128 }; |
131 | 129 |
132 } // namespace disk_cache | 130 } // namespace disk_cache |
133 | 131 |
134 #endif // NET_DISK_CACHE_SIMPLE_SIMPLE_ENTRY_IMPL_H_ | 132 #endif // NET_DISK_CACHE_SIMPLE_SIMPLE_ENTRY_IMPL_H_ |
OLD | NEW |