[email protected] | 3653146a | 2012-05-29 13:41:47 | [diff] [blame] | 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 |
| 3 | // found in the LICENSE file. |
| 4 | |
yawano | 3513e14 | 2016-04-20 00:42:42 | [diff] [blame] | 5 | #ifndef COMPONENTS_DRIVE_CHROMEOS_FILE_CACHE_H_ |
| 6 | #define COMPONENTS_DRIVE_CHROMEOS_FILE_CACHE_H_ |
[email protected] | 3653146a | 2012-05-29 13:41:47 | [diff] [blame] | 7 | |
avi | bc5337b | 2015-12-25 23:16:33 | [diff] [blame] | 8 | #include <stddef.h> |
| 9 | #include <stdint.h> |
| 10 | |
dcheng | f4275023 | 2016-04-12 04:12:27 | [diff] [blame] | 11 | #include <memory> |
[email protected] | 4b60a25f | 2013-06-17 09:43:11 | [diff] [blame] | 12 | #include <set> |
[email protected] | 3653146a | 2012-05-29 13:41:47 | [diff] [blame] | 13 | #include <string> |
| 14 | |
[email protected] | 5799981 | 2013-02-24 05:40:52 | [diff] [blame] | 15 | #include "base/files/file_path.h" |
avi | bc5337b | 2015-12-25 23:16:33 | [diff] [blame] | 16 | #include "base/macros.h" |
[email protected] | 73f9c74 | 2012-06-15 07:37:13 | [diff] [blame] | 17 | #include "base/memory/weak_ptr.h" |
Francois Doray | 374612f | 2019-06-27 16:33:31 | [diff] [blame] | 18 | #include "base/synchronization/atomic_flag.h" |
lukasza | 037c10b1 | 2015-06-12 04:21:25 | [diff] [blame] | 19 | #include "base/threading/thread_checker.h" |
avi | bc5337b | 2015-12-25 23:16:33 | [diff] [blame] | 20 | #include "build/build_config.h" |
lukasza | 76b4a98 | 2015-08-08 00:36:39 | [diff] [blame] | 21 | #include "components/drive/file_errors.h" |
lukasza | 6364a02 | 2015-08-21 01:13:24 | [diff] [blame] | 22 | #include "components/drive/resource_metadata_storage.h" |
lukasza | 3fb2262 | 2015-08-27 21:04:34 | [diff] [blame] | 23 | #if defined(OS_CHROMEOS) |
| 24 | #include "third_party/cros_system_api/constants/cryptohome.h" |
| 25 | #endif |
[email protected] | 3653146a | 2012-05-29 13:41:47 | [diff] [blame] | 26 | |
[email protected] | ddbf205 | 2012-07-13 15:07:02 | [diff] [blame] | 27 | namespace base { |
[email protected] | 8b03ab3a | 2014-01-15 17:52:45 | [diff] [blame] | 28 | class ScopedClosureRunner; |
[email protected] | ddbf205 | 2012-07-13 15:07:02 | [diff] [blame] | 29 | class SequencedTaskRunner; |
[email protected] | ddbf205 | 2012-07-13 15:07:02 | [diff] [blame] | 30 | } // namespace base |
| 31 | |
[email protected] | d9d04df | 2012-10-12 07:06:35 | [diff] [blame] | 32 | namespace drive { |
[email protected] | 3653146a | 2012-05-29 13:41:47 | [diff] [blame] | 33 | |
[email protected] | 59c7cdec | 2013-05-07 04:17:13 | [diff] [blame] | 34 | namespace internal { |
| 35 | |
lukasza | 3fb2262 | 2015-08-27 21:04:34 | [diff] [blame] | 36 | #if defined(OS_CHROMEOS) |
avi | bc5337b | 2015-12-25 23:16:33 | [diff] [blame] | 37 | const int64_t kMinFreeSpaceInBytes = cryptohome::kMinFreeSpaceInBytes; |
lukasza | 3fb2262 | 2015-08-27 21:04:34 | [diff] [blame] | 38 | #else |
avi | bc5337b | 2015-12-25 23:16:33 | [diff] [blame] | 39 | const int64_t kMinFreeSpaceInBytes = 512ull * 1024ull * 1024ull; // 512MB |
lukasza | 3fb2262 | 2015-08-27 21:04:34 | [diff] [blame] | 40 | #endif |
| 41 | |
[email protected] | f6fd98a | 2012-12-14 00:04:02 | [diff] [blame] | 42 | // Interface class used for getting the free disk space. Tests can inject an |
| 43 | // implementation that reports fake free disk space. |
| 44 | class FreeDiskSpaceGetterInterface { |
| 45 | public: |
Stuart Langley | be403574 | 2018-05-10 05:32:27 | [diff] [blame] | 46 | virtual ~FreeDiskSpaceGetterInterface() = default; |
avi | bc5337b | 2015-12-25 23:16:33 | [diff] [blame] | 47 | virtual int64_t AmountOfFreeDiskSpace() = 0; |
[email protected] | f6fd98a | 2012-12-14 00:04:02 | [diff] [blame] | 48 | }; |
| 49 | |
[email protected] | 0d52ed5 | 2013-05-01 08:21:21 | [diff] [blame] | 50 | // FileCache is used to maintain cache states of FileSystem. |
[email protected] | 6b70c7b | 2012-06-14 03:10:43 | [diff] [blame] | 51 | // |
| 52 | // All non-static public member functions, unless mentioned otherwise (see |
[email protected] | 54ba3750 | 2013-05-09 08:43:40 | [diff] [blame] | 53 | // GetCacheFilePath() for example), should be run with |blocking_task_runner|. |
[email protected] | eca3fc9 | 2013-05-01 03:53:40 | [diff] [blame] | 54 | class FileCache { |
[email protected] | 3653146a | 2012-05-29 13:41:47 | [diff] [blame] | 55 | public: |
oka | c6aac50 | 2016-05-23 12:16:58 | [diff] [blame] | 56 | // The file extended attribute assigned to Drive cache directory. |
| 57 | static const char kGCacheFilesAttribute[]; |
Sergei Datsenko | e5a99eb | 2018-08-31 06:30:39 | [diff] [blame] | 58 | // The file extended attribute assigned to files that can be removed. |
| 59 | static const char kGCacheRemovableAttribute[]; |
oka | c6aac50 | 2016-05-23 12:16:58 | [diff] [blame] | 60 | |
[email protected] | a321b963 | 2012-06-14 03:29:17 | [diff] [blame] | 61 | // Enum defining type of file operation e.g. copy or move, etc. |
| 62 | enum FileOperationType { |
| 63 | FILE_OPERATION_MOVE = 0, |
| 64 | FILE_OPERATION_COPY, |
| 65 | }; |
[email protected] | 32a7fc85 | 2012-06-08 17:25:50 | [diff] [blame] | 66 | |
[email protected] | 2df61e1 | 2013-06-21 16:00:09 | [diff] [blame] | 67 | // |cache_file_directory| stores cached files. |
[email protected] | 17196ee | 2012-12-13 06:23:51 | [diff] [blame] | 68 | // |
[email protected] | 8e37b9b | 2013-12-11 09:06:02 | [diff] [blame] | 69 | // |blocking_task_runner| indicates the blocking worker pool for cache |
| 70 | // operations. All operations on this FileCache must be run on this runner. |
| 71 | // Must not be null. |
[email protected] | f6fd98a | 2012-12-14 00:04:02 | [diff] [blame] | 72 | // |
| 73 | // |free_disk_space_getter| is used to inject a custom free disk space |
| 74 | // getter for testing. NULL must be passed for production code. |
[email protected] | 54ba3750 | 2013-05-09 08:43:40 | [diff] [blame] | 75 | // |
| 76 | // Must be called on the UI thread. |
[email protected] | 2df61e1 | 2013-06-21 16:00:09 | [diff] [blame] | 77 | FileCache(ResourceMetadataStorage* storage, |
[email protected] | e07f7b7b | 2013-06-19 03:43:12 | [diff] [blame] | 78 | const base::FilePath& cache_file_directory, |
[email protected] | 54ba3750 | 2013-05-09 08:43:40 | [diff] [blame] | 79 | base::SequencedTaskRunner* blocking_task_runner, |
| 80 | FreeDiskSpaceGetterInterface* free_disk_space_getter); |
[email protected] | 17196ee | 2012-12-13 06:23:51 | [diff] [blame] | 81 | |
yawano | 4c36b9a0 | 2015-10-23 06:17:23 | [diff] [blame] | 82 | // Sets maximum number of evicted cache files for test. |
| 83 | void SetMaxNumOfEvictedCacheFilesForTest( |
| 84 | size_t max_num_of_evicted_cache_files); |
| 85 | |
[email protected] | 7bb73e3d | 2012-09-08 17:41:29 | [diff] [blame] | 86 | // Returns true if the given path is under drive cache directory, i.e. |
[email protected] | 01ba15f7 | 2012-06-09 00:41:05 | [diff] [blame] | 87 | // <user_profile_dir>/GCache/v1 |
[email protected] | 6b70c7b | 2012-06-14 03:10:43 | [diff] [blame] | 88 | // |
| 89 | // Can be called on any thread. |
[email protected] | eca3fc9 | 2013-05-01 03:53:40 | [diff] [blame] | 90 | bool IsUnderFileCacheDirectory(const base::FilePath& path) const; |
[email protected] | 01ba15f7 | 2012-06-09 00:41:05 | [diff] [blame] | 91 | |
[email protected] | ec51436 | 2013-05-27 17:52:22 | [diff] [blame] | 92 | // Frees up disk space to store a file with |num_bytes| size content, while |
lukasza | 3fb2262 | 2015-08-27 21:04:34 | [diff] [blame] | 93 | // keeping drive::internal::kMinFreeSpaceInBytes bytes on the disk, if needed. |
[email protected] | ec51436 | 2013-05-27 17:52:22 | [diff] [blame] | 94 | // Returns true if we successfully manage to have enough space, otherwise |
| 95 | // false. |
avi | bc5337b | 2015-12-25 23:16:33 | [diff] [blame] | 96 | bool FreeDiskSpaceIfNeededFor(int64_t num_bytes); |
[email protected] | ec51436 | 2013-05-27 17:52:22 | [diff] [blame] | 97 | |
fukino | 6380c07c | 2016-06-09 07:28:29 | [diff] [blame] | 98 | // Calculates and returns cache size. In error case, this returns 0. |
| 99 | int64_t CalculateCacheSize(); |
| 100 | |
yawano | 8578abf | 2015-08-26 09:15:50 | [diff] [blame] | 101 | // Calculates and returns evictable cache size. In error case, this returns 0. |
fukino | 6380c07c | 2016-06-09 07:28:29 | [diff] [blame] | 102 | int64_t CalculateEvictableCacheSize(); |
yawano | 8578abf | 2015-08-26 09:15:50 | [diff] [blame] | 103 | |
[email protected] | c9e4738d | 2013-08-26 03:04:07 | [diff] [blame] | 104 | // Checks if file corresponding to |id| exists in cache, and returns |
[email protected] | a61fd688 | 2013-07-26 05:12:39 | [diff] [blame] | 105 | // FILE_ERROR_OK with |cache_file_path| storing the path to the file. |
[email protected] | ec51436 | 2013-05-27 17:52:22 | [diff] [blame] | 106 | // |cache_file_path| must not be null. |
[email protected] | c9e4738d | 2013-08-26 03:04:07 | [diff] [blame] | 107 | FileError GetFile(const std::string& id, base::FilePath* cache_file_path); |
[email protected] | ec51436 | 2013-05-27 17:52:22 | [diff] [blame] | 108 | |
[email protected] | 82c4eb9 | 2013-05-21 11:25:23 | [diff] [blame] | 109 | // Stores |source_path| as a cache of the remote content of the file |
[email protected] | c9e4738d | 2013-08-26 03:04:07 | [diff] [blame] | 110 | // with |id| and |md5|. |
[email protected] | bae99ae5 | 2014-01-29 01:13:14 | [diff] [blame] | 111 | // Pass an empty string as MD5 to mark the entry as dirty. |
[email protected] | c9e4738d | 2013-08-26 03:04:07 | [diff] [blame] | 112 | FileError Store(const std::string& id, |
[email protected] | 82c4eb9 | 2013-05-21 11:25:23 | [diff] [blame] | 113 | const std::string& md5, |
| 114 | const base::FilePath& source_path, |
| 115 | FileOperationType file_operation_type); |
| 116 | |
[email protected] | f8b1a53 | 2013-06-06 08:35:08 | [diff] [blame] | 117 | // Pins the specified entry. |
[email protected] | c9e4738d | 2013-08-26 03:04:07 | [diff] [blame] | 118 | FileError Pin(const std::string& id); |
[email protected] | f8b1a53 | 2013-06-06 08:35:08 | [diff] [blame] | 119 | |
[email protected] | b53e8da | 2013-05-29 07:47:18 | [diff] [blame] | 120 | // Unpins the specified entry. |
[email protected] | c9e4738d | 2013-08-26 03:04:07 | [diff] [blame] | 121 | FileError Unpin(const std::string& id); |
[email protected] | ec51436 | 2013-05-27 17:52:22 | [diff] [blame] | 122 | |
[email protected] | c3f6564 | 2013-08-28 02:04:33 | [diff] [blame] | 123 | // Sets the state of the cache entry corresponding to |id| as mounted. |
| 124 | FileError MarkAsMounted(const std::string& id, |
| 125 | base::FilePath* cache_file_path); |
| 126 | |
Tatsuhisa Yamaguchi | 4810128 | 2018-03-20 02:18:39 | [diff] [blame] | 127 | // Returns if a file corresponding to |id| is marked as mounted. |
| 128 | bool IsMarkedAsMounted(const std::string& id); |
| 129 | |
[email protected] | 8e37b9b | 2013-12-11 09:06:02 | [diff] [blame] | 130 | // Sets the state of the cache entry corresponding to file_path as unmounted. |
| 131 | FileError MarkAsUnmounted(const base::FilePath& file_path); |
[email protected] | a321b963 | 2012-06-14 03:29:17 | [diff] [blame] | 132 | |
[email protected] | 8b03ab3a | 2014-01-15 17:52:45 | [diff] [blame] | 133 | // Opens the cache file corresponding to |id| for write. |file_closer| should |
| 134 | // be kept alive until writing finishes. |
| 135 | // This method must be called before writing to cache files. |
dcheng | f4275023 | 2016-04-12 04:12:27 | [diff] [blame] | 136 | FileError OpenForWrite( |
| 137 | const std::string& id, |
| 138 | std::unique_ptr<base::ScopedClosureRunner>* file_closer); |
[email protected] | 8b03ab3a | 2014-01-15 17:52:45 | [diff] [blame] | 139 | |
| 140 | // Returns true if the cache file corresponding to |id| is write-opened. |
| 141 | bool IsOpenedForWrite(const std::string& id); |
[email protected] | b568b88 | 2013-06-10 04:38:07 | [diff] [blame] | 142 | |
[email protected] | b1bf19a | 2014-01-21 04:45:19 | [diff] [blame] | 143 | // Calculates MD5 of the cache file and updates the stored value. |
| 144 | FileError UpdateMd5(const std::string& id); |
| 145 | |
| 146 | // Clears dirty state of the specified entry. |
| 147 | FileError ClearDirty(const std::string& id); |
[email protected] | a321b963 | 2012-06-14 03:29:17 | [diff] [blame] | 148 | |
[email protected] | 3361a54 | 2013-05-22 17:38:27 | [diff] [blame] | 149 | // Removes the specified cache entry and delete cache files if available. |
[email protected] | c9e4738d | 2013-08-26 03:04:07 | [diff] [blame] | 150 | FileError Remove(const std::string& id); |
[email protected] | 3361a54 | 2013-05-22 17:38:27 | [diff] [blame] | 151 | |
[email protected] | cd8fd37f | 2014-05-20 15:45:21 | [diff] [blame] | 152 | // Removes all the files in the cache directory. |
[email protected] | 823ca971 | 2013-09-13 10:09:09 | [diff] [blame] | 153 | bool ClearAll(); |
[email protected] | f861b39 | 2012-08-03 20:41:12 | [diff] [blame] | 154 | |
[email protected] | 34a1bbf3 | 2013-06-17 07:24:02 | [diff] [blame] | 155 | // Initializes the cache. Returns true on success. |
| 156 | bool Initialize(); |
[email protected] | 73f9c74 | 2012-06-15 07:37:13 | [diff] [blame] | 157 | |
[email protected] | 17196ee | 2012-12-13 06:23:51 | [diff] [blame] | 158 | // Destroys this cache. This function posts a task to the blocking task |
| 159 | // runner to safely delete the object. |
[email protected] | 54ba3750 | 2013-05-09 08:43:40 | [diff] [blame] | 160 | // Must be called on the UI thread. |
[email protected] | 77fb1a6 | 2012-11-01 13:42:32 | [diff] [blame] | 161 | void Destroy(); |
[email protected] | 73f9c74 | 2012-06-15 07:37:13 | [diff] [blame] | 162 | |
[email protected] | 8e37b9b | 2013-12-11 09:06:02 | [diff] [blame] | 163 | // Moves files in the cache directory which are not managed by FileCache to |
[email protected] | b7af4f1 | 2013-10-31 06:57:45 | [diff] [blame] | 164 | // |dest_directory|. |
[email protected] | 026d4a52 | 2013-11-05 14:22:18 | [diff] [blame] | 165 | // |recovered_cache_info| should contain cache info recovered from the trashed |
| 166 | // metadata DB. It is used to ignore non-dirty files. |
[email protected] | 760abc3 | 2013-11-01 05:13:01 | [diff] [blame] | 167 | bool RecoverFilesFromCacheDirectory( |
| 168 | const base::FilePath& dest_directory, |
[email protected] | 026d4a52 | 2013-11-05 14:22:18 | [diff] [blame] | 169 | const ResourceMetadataStorage::RecoveredCacheInfoMap& |
| 170 | recovered_cache_info); |
[email protected] | b7af4f1 | 2013-10-31 06:57:45 | [diff] [blame] | 171 | |
[email protected] | ca5f6da | 2012-06-18 12:54:59 | [diff] [blame] | 172 | private: |
[email protected] | eca3fc9 | 2013-05-01 03:53:40 | [diff] [blame] | 173 | friend class FileCacheTest; |
[email protected] | e966339 | 2013-04-12 09:55:15 | [diff] [blame] | 174 | |
[email protected] | 54ba3750 | 2013-05-09 08:43:40 | [diff] [blame] | 175 | ~FileCache(); |
[email protected] | fcc92a5 | 2012-06-08 22:54:16 | [diff] [blame] | 176 | |
[email protected] | e966339 | 2013-04-12 09:55:15 | [diff] [blame] | 177 | // Returns absolute path of the file if it were cached or to be cached. |
| 178 | // |
| 179 | // Can be called on any thread. |
[email protected] | c9e4738d | 2013-08-26 03:04:07 | [diff] [blame] | 180 | base::FilePath GetCacheFilePath(const std::string& id) const; |
[email protected] | e966339 | 2013-04-12 09:55:15 | [diff] [blame] | 181 | |
[email protected] | fcc92a5 | 2012-06-08 22:54:16 | [diff] [blame] | 182 | // Checks whether the current thread is on the right sequenced worker pool |
| 183 | // with the right sequence ID. If not, DCHECK will fail. |
| 184 | void AssertOnSequencedWorkerPool(); |
[email protected] | 3653146a | 2012-05-29 13:41:47 | [diff] [blame] | 185 | |
[email protected] | 17196ee | 2012-12-13 06:23:51 | [diff] [blame] | 186 | // Destroys the cache on the blocking pool. |
[email protected] | 77fb1a6 | 2012-11-01 13:42:32 | [diff] [blame] | 187 | void DestroyOnBlockingPool(); |
[email protected] | 73f9c74 | 2012-06-15 07:37:13 | [diff] [blame] | 188 | |
yawano | 4c36b9a0 | 2015-10-23 06:17:23 | [diff] [blame] | 189 | // Returns available space, while keeping |
| 190 | // drive::internal::kMinFreeSpaceInBytes bytes on the disk. |
avi | bc5337b | 2015-12-25 23:16:33 | [diff] [blame] | 191 | int64_t GetAvailableSpace(); |
[email protected] | f6fd98a | 2012-12-14 00:04:02 | [diff] [blame] | 192 | |
[email protected] | f2731d1 | 2013-10-22 03:23:15 | [diff] [blame] | 193 | // Renames cache files from old "prefix:id.md5" format to the new format. |
[email protected] | 91a464e6 | 2013-07-10 09:30:06 | [diff] [blame] | 194 | // TODO(hashimoto): Remove this method at some point. |
[email protected] | f2731d1 | 2013-10-22 03:23:15 | [diff] [blame] | 195 | bool RenameCacheFilesToNewFormat(); |
[email protected] | 91a464e6 | 2013-07-10 09:30:06 | [diff] [blame] | 196 | |
oka | c6aac50 | 2016-05-23 12:16:58 | [diff] [blame] | 197 | // Adds appropriate file attributes to the Drive cache directory and files in |
| 198 | // it for crbug.com/533750. Returns true on success. |
| 199 | // This also resolves inconsistency between cache files and metadata which can |
| 200 | // be produced when cryptohome removed cache files or on abrupt shutdown. |
| 201 | bool FixMetadataAndFileAttributes(); |
| 202 | |
[email protected] | 8b03ab3a | 2014-01-15 17:52:45 | [diff] [blame] | 203 | // This method must be called after writing to a cache file. |
| 204 | // Used to implement OpenForWrite(). |
| 205 | void CloseForWrite(const std::string& id); |
| 206 | |
yawano | 8578abf | 2015-08-26 09:15:50 | [diff] [blame] | 207 | // Returns true if the cache entry can be evicted. |
| 208 | bool IsEvictable(const std::string& id, const ResourceEntry& entry); |
| 209 | |
[email protected] | e07f7b7b | 2013-06-19 03:43:12 | [diff] [blame] | 210 | const base::FilePath cache_file_directory_; |
| 211 | |
[email protected] | ddbf205 | 2012-07-13 15:07:02 | [diff] [blame] | 212 | scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_; |
[email protected] | 32a7fc85 | 2012-06-08 17:25:50 | [diff] [blame] | 213 | |
Francois Doray | 374612f | 2019-06-27 16:33:31 | [diff] [blame] | 214 | base::AtomicFlag in_shutdown_; |
hashimoto | 246e4a8 | 2015-04-17 07:44:49 | [diff] [blame] | 215 | |
[email protected] | 2df61e1 | 2013-06-21 16:00:09 | [diff] [blame] | 216 | ResourceMetadataStorage* storage_; |
[email protected] | ca5f6da | 2012-06-18 12:54:59 | [diff] [blame] | 217 | |
[email protected] | f6fd98a | 2012-12-14 00:04:02 | [diff] [blame] | 218 | FreeDiskSpaceGetterInterface* free_disk_space_getter_; // Not owned. |
| 219 | |
yawano | 4c36b9a0 | 2015-10-23 06:17:23 | [diff] [blame] | 220 | // Maximum number of cache files which can be evicted by a single call of |
| 221 | // FreeDiskSpaceIfNeededFor. That method takes O(n) memory space, we need to |
| 222 | // set this value not to use up memory. |
| 223 | size_t max_num_of_evicted_cache_files_; |
| 224 | |
[email protected] | 8b03ab3a | 2014-01-15 17:52:45 | [diff] [blame] | 225 | // IDs of files being write-opened. |
| 226 | std::map<std::string, int> write_opened_files_; |
| 227 | |
[email protected] | c9e4738d | 2013-08-26 03:04:07 | [diff] [blame] | 228 | // IDs of files marked mounted. |
[email protected] | 4b60a25f | 2013-06-17 09:43:11 | [diff] [blame] | 229 | std::set<std::string> mounted_files_; |
| 230 | |
Stuart Langley | be403574 | 2018-05-10 05:32:27 | [diff] [blame] | 231 | THREAD_CHECKER(thread_checker_); |
lukasza | 037c10b1 | 2015-06-12 04:21:25 | [diff] [blame] | 232 | |
[email protected] | e53ac8f | 2012-08-02 07:05:00 | [diff] [blame] | 233 | // Note: This should remain the last member so it'll be destroyed and |
| 234 | // invalidate its weak pointers before any other members are destroyed. |
[email protected] | 8b03ab3a | 2014-01-15 17:52:45 | [diff] [blame] | 235 | // This object should be accessed only on |blocking_task_runner_|. |
Jeremy Roman | 47d432e | 2019-08-20 14:24:00 | [diff] [blame] | 236 | base::WeakPtrFactory<FileCache> weak_ptr_factory_{this}; |
[email protected] | eca3fc9 | 2013-05-01 03:53:40 | [diff] [blame] | 237 | DISALLOW_COPY_AND_ASSIGN(FileCache); |
[email protected] | 3653146a | 2012-05-29 13:41:47 | [diff] [blame] | 238 | }; |
| 239 | |
[email protected] | 59c7cdec | 2013-05-07 04:17:13 | [diff] [blame] | 240 | } // namespace internal |
[email protected] | d9d04df | 2012-10-12 07:06:35 | [diff] [blame] | 241 | } // namespace drive |
[email protected] | 3653146a | 2012-05-29 13:41:47 | [diff] [blame] | 242 | |
yawano | 3513e14 | 2016-04-20 00:42:42 | [diff] [blame] | 243 | #endif // COMPONENTS_DRIVE_CHROMEOS_FILE_CACHE_H_ |