| 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 #include "chrome/browser/chromeos/gdata/gdata_file_system.h" | 5 #include "chrome/browser/chromeos/gdata/gdata_file_system.h" |
| 6 | 6 |
| 7 #include <errno.h> | 7 #include <errno.h> |
| 8 #include <sys/stat.h> | 8 #include <sys/stat.h> |
| 9 | 9 |
| 10 #include <set> | 10 #include <set> |
| (...skipping 2822 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2833 return; | 2833 return; |
| 2834 } | 2834 } |
| 2835 | 2835 |
| 2836 SaveFeed(data.Pass(), FilePath(kAccountMetadataFile)); | 2836 SaveFeed(data.Pass(), FilePath(kAccountMetadataFile)); |
| 2837 | 2837 |
| 2838 callback.Run(base::PLATFORM_FILE_OK, | 2838 callback.Run(base::PLATFORM_FILE_OK, |
| 2839 feed->quota_bytes_total(), | 2839 feed->quota_bytes_total(), |
| 2840 feed->quota_bytes_used()); | 2840 feed->quota_bytes_used()); |
| 2841 } | 2841 } |
| 2842 | 2842 |
| 2843 GDataOperationRegistry* GDataFileSystem::GetOperationRegistry() { | |
| 2844 return documents_service_->operation_registry(); | |
| 2845 } | |
| 2846 | |
| 2847 void GDataFileSystem::OnCreateDirectoryCompleted( | 2843 void GDataFileSystem::OnCreateDirectoryCompleted( |
| 2848 const CreateDirectoryParams& params, | 2844 const CreateDirectoryParams& params, |
| 2849 GDataErrorCode status, | 2845 GDataErrorCode status, |
| 2850 scoped_ptr<base::Value> data) { | 2846 scoped_ptr<base::Value> data) { |
| 2851 | 2847 |
| 2852 base::PlatformFileError error = GDataToPlatformError(status); | 2848 base::PlatformFileError error = GDataToPlatformError(status); |
| 2853 if (error != base::PLATFORM_FILE_OK) { | 2849 if (error != base::PLATFORM_FILE_OK) { |
| 2854 if (!params.callback.is_null()) | 2850 if (!params.callback.is_null()) |
| 2855 params.callback.Run(error); | 2851 params.callback.Run(error); |
| 2856 | 2852 |
| (...skipping 2415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5272 base::PlatformFileError error, | 5268 base::PlatformFileError error, |
| 5273 const std::string& resource_id, | 5269 const std::string& resource_id, |
| 5274 const std::string& md5) { | 5270 const std::string& md5) { |
| 5275 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 5271 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 5276 | 5272 |
| 5277 if (!callback.is_null()) | 5273 if (!callback.is_null()) |
| 5278 callback.Run(error); | 5274 callback.Run(error); |
| 5279 } | 5275 } |
| 5280 | 5276 |
| 5281 } // namespace gdata | 5277 } // namespace gdata |
| OLD | NEW |