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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
336 // pinned, or to /dev/null for non-existent | 336 // pinned, or to /dev/null for non-existent |
337 // files. | 337 // files. |
338 CACHE_TYPE_OUTGOING, // Symlinks to files in persistent or tmp dir to | 338 CACHE_TYPE_OUTGOING, // Symlinks to files in persistent or tmp dir to |
339 // be uploaded. | 339 // be uploaded. |
340 CACHE_TYPE_PERSISTENT, // Files that are pinned or modified locally, | 340 CACHE_TYPE_PERSISTENT, // Files that are pinned or modified locally, |
341 // not evictable, hopefully. | 341 // not evictable, hopefully. |
342 CACHE_TYPE_TMP, // Files that don't meet criteria to be in | 342 CACHE_TYPE_TMP, // Files that don't meet criteria to be in |
343 // persistent dir, and hence evictable. | 343 // persistent dir, and hence evictable. |
344 CACHE_TYPE_TMP_DOWNLOADS, // Downloaded files. | 344 CACHE_TYPE_TMP_DOWNLOADS, // Downloaded files. |
345 CACHE_TYPE_TMP_DOCUMENTS, // Temporary JSON files for hosted documents. | 345 CACHE_TYPE_TMP_DOCUMENTS, // Temporary JSON files for hosted documents. |
| 346 NUM_CACHE_TYPES, // This must be at the end. |
346 }; | 347 }; |
347 | 348 |
348 // Structure to store information of an existing cache file. | 349 // Structure to store information of an existing cache file. |
349 struct CacheEntry { | 350 struct CacheEntry { |
350 CacheEntry(const std::string& in_md5, | 351 CacheEntry(const std::string& in_md5, |
351 CacheSubDirectoryType in_sub_dir_type, | 352 CacheSubDirectoryType in_sub_dir_type, |
352 int in_cache_state) | 353 int in_cache_state) |
353 : md5(in_md5), | 354 : md5(in_md5), |
354 sub_dir_type(in_sub_dir_type), | 355 sub_dir_type(in_sub_dir_type), |
355 cache_state(in_cache_state) { | 356 cache_state(in_cache_state) { |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
451 base::Time last_serialized_; | 452 base::Time last_serialized_; |
452 int largest_changestamp_; | 453 int largest_changestamp_; |
453 size_t serialized_size_; | 454 size_t serialized_size_; |
454 | 455 |
455 DISALLOW_COPY_AND_ASSIGN(GDataRootDirectory); | 456 DISALLOW_COPY_AND_ASSIGN(GDataRootDirectory); |
456 }; | 457 }; |
457 | 458 |
458 } // namespace gdata | 459 } // namespace gdata |
459 | 460 |
460 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILES_H_ | 461 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILES_H_ |
OLD | NEW |