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_FILE_SYSTEM_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_ |
6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_ | 6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 863 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
874 void OnFileDownloaded( | 874 void OnFileDownloaded( |
875 const GetFileFromCacheParams& params, | 875 const GetFileFromCacheParams& params, |
876 GDataErrorCode status, | 876 GDataErrorCode status, |
877 const GURL& content_url, | 877 const GURL& content_url, |
878 const FilePath& downloaded_file_path); | 878 const FilePath& downloaded_file_path); |
879 | 879 |
880 // Unpins file if cache entry is pinned. | 880 // Unpins file if cache entry is pinned. |
881 void UnpinIfPinned(const std::string& resource_id, | 881 void UnpinIfPinned(const std::string& resource_id, |
882 const std::string& md5, | 882 const std::string& md5, |
883 bool success, | 883 bool success, |
884 const GDataCache::CacheEntry& cache_entry); | 884 const GDataCacheEntry& cache_entry); |
885 | 885 |
886 // Similar to OnFileDownloaded() but takes |has_enough_space| so we report | 886 // Similar to OnFileDownloaded() but takes |has_enough_space| so we report |
887 // an error in case we don't have enough disk space. | 887 // an error in case we don't have enough disk space. |
888 void OnFileDownloadedAndSpaceChecked( | 888 void OnFileDownloadedAndSpaceChecked( |
889 const GetFileFromCacheParams& params, | 889 const GetFileFromCacheParams& params, |
890 GDataErrorCode status, | 890 GDataErrorCode status, |
891 const GURL& content_url, | 891 const GURL& content_url, |
892 const FilePath& downloaded_file_path, | 892 const FilePath& downloaded_file_path, |
893 bool* has_enough_space); | 893 bool* has_enough_space); |
894 | 894 |
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1268 | 1268 |
1269 ObserverList<Observer> observers_; | 1269 ObserverList<Observer> observers_; |
1270 | 1270 |
1271 // The token is used to post tasks to the blocking pool in sequence. | 1271 // The token is used to post tasks to the blocking pool in sequence. |
1272 const base::SequencedWorkerPool::SequenceToken sequence_token_; | 1272 const base::SequencedWorkerPool::SequenceToken sequence_token_; |
1273 }; | 1273 }; |
1274 | 1274 |
1275 } // namespace gdata | 1275 } // namespace gdata |
1276 | 1276 |
1277 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_ | 1277 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_ |
OLD | NEW |