Chromium Code Reviews| 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> |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 243 std::string key_; | 243 std::string key_; |
| 244 | 244 |
| 245 bool have_open_files_; | 245 bool have_open_files_; |
| 246 bool initialized_; | 246 bool initialized_; |
| 247 | 247 |
| 248 base::PlatformFile files_[kSimpleEntryFileCount]; | 248 base::PlatformFile files_[kSimpleEntryFileCount]; |
| 249 | 249 |
| 250 // True if the corresponding stream is empty and therefore no on-disk file | 250 // True if the corresponding stream is empty and therefore no on-disk file |
| 251 // was created to store it. | 251 // was created to store it. |
| 252 bool empty_file_omitted_[kSimpleEntryFileCount]; | 252 bool empty_file_omitted_[kSimpleEntryFileCount]; |
| 253 | |
| 254 // True if the entry was created, or false if it was opened. (Used to log | |
|
gavinp
2013/09/24 21:15:42
Nit: no need for the parens, and only one space af
Deprecated (see juliatuttle)
2013/09/24 23:28:53
Done. Everywhere in net/disk_cache/simple.
| |
| 255 // SimpleCache.*.EntryCreatedWithStream2Omitted only for created entries.) | |
| 256 bool files_created_; | |
| 253 }; | 257 }; |
| 254 | 258 |
| 255 } // namespace disk_cache | 259 } // namespace disk_cache |
| 256 | 260 |
| 257 #endif // NET_DISK_CACHE_SIMPLE_SIMPLE_SYNCHRONOUS_ENTRY_H_ | 261 #endif // NET_DISK_CACHE_SIMPLE_SIMPLE_SYNCHRONOUS_ENTRY_H_ |
| OLD | NEW |