| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 // This file provides file system related API functions. | 5 // This file provides file system related API functions. |
| 6 | 6 |
| 7 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_FILE_SYSTEM_
H_ | 7 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_FILE_SYSTEM_
H_ |
| 8 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_FILE_SYSTEM_
H_ | 8 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_FILE_SYSTEM_
H_ |
| 9 | 9 |
| 10 #include <stddef.h> | 10 #include <stddef.h> |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 DECLARE_EXTENSION_FUNCTION("fileManagerPrivate.getSizeStats", | 148 DECLARE_EXTENSION_FUNCTION("fileManagerPrivate.getSizeStats", |
| 149 FILEMANAGERPRIVATE_GETSIZESTATS) | 149 FILEMANAGERPRIVATE_GETSIZESTATS) |
| 150 | 150 |
| 151 protected: | 151 protected: |
| 152 ~FileManagerPrivateGetSizeStatsFunction() override {} | 152 ~FileManagerPrivateGetSizeStatsFunction() override {} |
| 153 | 153 |
| 154 // AsyncExtensionFunction overrides. | 154 // AsyncExtensionFunction overrides. |
| 155 bool RunAsync() override; | 155 bool RunAsync() override; |
| 156 | 156 |
| 157 private: | 157 private: |
| 158 void OnGetLocalSpace(uint64_t* total_size, | |
| 159 uint64_t* remaining_size, | |
| 160 bool is_download); | |
| 161 | |
| 162 void OnGetDriveAvailableSpace(drive::FileError error, | 158 void OnGetDriveAvailableSpace(drive::FileError error, |
| 163 int64_t bytes_total, | 159 int64_t bytes_total, |
| 164 int64_t bytes_used); | 160 int64_t bytes_used); |
| 165 | 161 |
| 166 void OnGetMtpAvailableSpace(const MtpStorageInfo& mtp_storage_info, | 162 void OnGetMtpAvailableSpace(const MtpStorageInfo& mtp_storage_info, |
| 167 const bool error); | 163 const bool error); |
| 168 | 164 |
| 169 void OnGetSizeStats(const uint64_t* total_size, | 165 void OnGetSizeStats(const uint64_t* total_size, |
| 170 const uint64_t* remaining_size); | 166 const uint64_t* remaining_size); |
| 171 }; | 167 }; |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 // Called when setting a tag is completed with either a success or an error. | 332 // Called when setting a tag is completed with either a success or an error. |
| 337 void OnSetEntryPropertyCompleted(drive::FileError result); | 333 void OnSetEntryPropertyCompleted(drive::FileError result); |
| 338 | 334 |
| 339 ExtensionFunction::ResponseAction Run() override; | 335 ExtensionFunction::ResponseAction Run() override; |
| 340 DISALLOW_COPY_AND_ASSIGN(FileManagerPrivateInternalSetEntryTagFunction); | 336 DISALLOW_COPY_AND_ASSIGN(FileManagerPrivateInternalSetEntryTagFunction); |
| 341 }; | 337 }; |
| 342 | 338 |
| 343 } // namespace extensions | 339 } // namespace extensions |
| 344 | 340 |
| 345 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_FILE_SYST
EM_H_ | 341 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_FILE_SYST
EM_H_ |
| OLD | NEW |