| 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 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILES_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILES_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILES_H_ | 6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILES_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 CACHE_TYPE_PINNED, // Symlinks to files in persistent dir that are | 267 CACHE_TYPE_PINNED, // Symlinks to files in persistent dir that are |
| 268 // pinned, or to /dev/null for non-existent | 268 // pinned, or to /dev/null for non-existent |
| 269 // files. | 269 // files. |
| 270 CACHE_TYPE_OUTGOING, // Symlinks to files in persistent or tmp dir to | 270 CACHE_TYPE_OUTGOING, // Symlinks to files in persistent or tmp dir to |
| 271 // be uploaded. | 271 // be uploaded. |
| 272 CACHE_TYPE_PERSISTENT, // Files that are pinned or modified locally, | 272 CACHE_TYPE_PERSISTENT, // Files that are pinned or modified locally, |
| 273 // not evictable, hopefully. | 273 // not evictable, hopefully. |
| 274 CACHE_TYPE_TMP, // Files that don't meet criteria to be in | 274 CACHE_TYPE_TMP, // Files that don't meet criteria to be in |
| 275 // persistent dir, and hence evictable. | 275 // persistent dir, and hence evictable. |
| 276 CACHE_TYPE_TMP_DOWNLOADS, // Downloaded files. | 276 CACHE_TYPE_TMP_DOWNLOADS, // Downloaded files. |
| 277 CACHE_TYPE_TMP_DOCUMENTS, // Temporary JSON files for hosted documents. |
| 277 }; | 278 }; |
| 278 | 279 |
| 279 // Structure to store information of an existing cache file. | 280 // Structure to store information of an existing cache file. |
| 280 struct CacheEntry { | 281 struct CacheEntry { |
| 281 CacheEntry(const std::string& in_md5, | 282 CacheEntry(const std::string& in_md5, |
| 282 CacheSubDirectoryType in_sub_dir_type, | 283 CacheSubDirectoryType in_sub_dir_type, |
| 283 int in_cache_state) | 284 int in_cache_state) |
| 284 : md5(in_md5), | 285 : md5(in_md5), |
| 285 sub_dir_type(in_sub_dir_type), | 286 sub_dir_type(in_sub_dir_type), |
| 286 cache_state(in_cache_state) { | 287 cache_state(in_cache_state) { |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 | 352 |
| 352 // Weak pointer to GDataFileSystem that owns us. | 353 // Weak pointer to GDataFileSystem that owns us. |
| 353 GDataFileSystem* file_system_; | 354 GDataFileSystem* file_system_; |
| 354 | 355 |
| 355 DISALLOW_COPY_AND_ASSIGN(GDataRootDirectory); | 356 DISALLOW_COPY_AND_ASSIGN(GDataRootDirectory); |
| 356 }; | 357 }; |
| 357 | 358 |
| 358 } // namespace gdata | 359 } // namespace gdata |
| 359 | 360 |
| 360 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILES_H_ | 361 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILES_H_ |
| OLD | NEW |