| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 823 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 834 GDataErrorCode status, | 834 GDataErrorCode status, |
| 835 scoped_ptr<base::Value> created_entry); | 835 scoped_ptr<base::Value> created_entry); |
| 836 | 836 |
| 837 // Callback for handling file downloading requests. | 837 // Callback for handling file downloading requests. |
| 838 void OnFileDownloaded( | 838 void OnFileDownloaded( |
| 839 const GetFileFromCacheParams& params, | 839 const GetFileFromCacheParams& params, |
| 840 GDataErrorCode status, | 840 GDataErrorCode status, |
| 841 const GURL& content_url, | 841 const GURL& content_url, |
| 842 const FilePath& downloaded_file_path); | 842 const FilePath& downloaded_file_path); |
| 843 | 843 |
| 844 // Unpins file if cache entry is pinned. |
| 845 void UnpinIfPinned(const FilePath& file_path, |
| 846 scoped_ptr<GDataCache::CacheEntry>* cache_entry); |
| 847 |
| 844 // Similar to OnFileDownloaded() but takes |has_enough_space| so we report | 848 // Similar to OnFileDownloaded() but takes |has_enough_space| so we report |
| 845 // an error in case we don't have enough disk space. | 849 // an error in case we don't have enough disk space. |
| 846 void OnFileDownloadedAndSpaceChecked( | 850 void OnFileDownloadedAndSpaceChecked( |
| 847 const GetFileFromCacheParams& params, | 851 const GetFileFromCacheParams& params, |
| 848 GDataErrorCode status, | 852 GDataErrorCode status, |
| 849 const GURL& content_url, | 853 const GURL& content_url, |
| 850 const FilePath& downloaded_file_path, | 854 const FilePath& downloaded_file_path, |
| 851 bool* has_enough_space); | 855 bool* has_enough_space); |
| 852 | 856 |
| 853 // Callback for handling internal StoreToCache() calls after downloading | 857 // Callback for handling internal StoreToCache() calls after downloading |
| (...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1509 }; | 1513 }; |
| 1510 | 1514 |
| 1511 // Sets the free disk space getter for testing. | 1515 // Sets the free disk space getter for testing. |
| 1512 // The existing getter is deleted. | 1516 // The existing getter is deleted. |
| 1513 void SetFreeDiskSpaceGetterForTesting( | 1517 void SetFreeDiskSpaceGetterForTesting( |
| 1514 FreeDiskSpaceGetterInterface* getter); | 1518 FreeDiskSpaceGetterInterface* getter); |
| 1515 | 1519 |
| 1516 } // namespace gdata | 1520 } // namespace gdata |
| 1517 | 1521 |
| 1518 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_ | 1522 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_ |
| OLD | NEW |