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 3 // found in the LICENSE file. 4 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_CALLBACKS_H_ 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_CALLBACKS_H_ 7 8 #include "base/callback_forward.h" 9 #include "chrome/browser/sync_file_system/sync_file_status.h" 10 #include "chrome/browser/sync_file_system/sync_status_code.h" 11 #include "storage/browser/fileapi/file_system_url.h" 12 13 namespace storage { 14 class FileSystemURL; 15 } 16 17 namespace sync_file_system { 18 19 class SyncFileMetadata; 20 21 typedef base::Callback<void(SyncStatusCode status)> 22 SyncStatusCallback; 23 24 typedef base::Callback< 25 void(SyncStatusCode status, const storage::FileSystemURL& url)> 26 SyncFileCallback; 27 28 typedef base::Callback<void(SyncStatusCode status, 29 const SyncFileMetadata& metadata)> 30 SyncFileMetadataCallback; 31 32 typedef base::Callback< 33 void(SyncStatusCode status, const storage::FileSystemURLSet& urls)> 34 SyncFileSetCallback; 35 36 typedef base::Callback<void(SyncStatusCode status, 37 SyncFileStatus sync_file_status)> 38 SyncFileStatusCallback; 39 40 } // namespace sync_file_system 41 42 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_CALLBACKS_H_ 43