| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // See net/disk_cache/disk_cache.h for the public interface of the cache. | 5 // See net/disk_cache/disk_cache.h for the public interface of the cache. |
| 6 | 6 |
| 7 #ifndef NET_DISK_CACHE_BLOCKFILE_BACKEND_WORKER_V3_H_ | 7 #ifndef NET_DISK_CACHE_BLOCKFILE_BACKEND_WORKER_V3_H_ |
| 8 #define NET_DISK_CACHE_BLOCKFILE_BACKEND_WORKER_V3_H_ | 8 #define NET_DISK_CACHE_BLOCKFILE_BACKEND_WORKER_V3_H_ |
| 9 | 9 |
| 10 #include "base/containers/hash_tables.h" | 10 #include "base/containers/hash_tables.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 // Returns the full name for an external storage file. | 31 // Returns the full name for an external storage file. |
| 32 base::FilePath GetFileName(Addr address) const; | 32 base::FilePath GetFileName(Addr address) const; |
| 33 | 33 |
| 34 // Creates a new backing file for the cache index. | 34 // Creates a new backing file for the cache index. |
| 35 bool CreateBackingStore(disk_cache::File* file); | 35 bool CreateBackingStore(disk_cache::File* file); |
| 36 bool InitBackingStore(bool* file_created); | 36 bool InitBackingStore(bool* file_created); |
| 37 | 37 |
| 38 // Performs basic checks on the index file. Returns false on failure. | 38 // Performs basic checks on the index file. Returns false on failure. |
| 39 bool CheckIndex(); | 39 bool CheckIndex(); |
| 40 | 40 |
| 41 base::FilePath path_; // Path to the folder used as backing storage. | 41 base::FilePath path_; // Path to the folder used as backing storage. |
| 42 BlockFiles block_files_; // Set of files used to store all data. | 42 BlockFiles block_files_; // Set of files used to store all data. |
| 43 bool init_; // controls the initialization of the system. | 43 bool init_; // controls the initialization of the system. |
| 44 | 44 |
| 45 DISALLOW_COPY_AND_ASSIGN(Worker); | 45 DISALLOW_COPY_AND_ASSIGN(Worker); |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 } // namespace disk_cache | 48 } // namespace disk_cache |
| 49 | 49 |
| 50 #endif // NET_DISK_CACHE_BLOCKFILE_BACKEND_WORKER_V3_H_ | 50 #endif // NET_DISK_CACHE_BLOCKFILE_BACKEND_WORKER_V3_H_ |
| OLD | NEW |