| 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 WEBKIT_FILEAPI_SYNCABLE_SYNC_CALLBACKS_H_ | 5 #ifndef WEBKIT_FILEAPI_SYNCABLE_SYNC_CALLBACKS_H_ |
| 6 #define WEBKIT_FILEAPI_SYNCABLE_SYNC_CALLBACKS_H_ | 6 #define WEBKIT_FILEAPI_SYNCABLE_SYNC_CALLBACKS_H_ |
| 7 | 7 |
| 8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
| 9 #include "webkit/fileapi/file_system_url.h" | 9 #include "webkit/fileapi/file_system_url.h" |
| 10 #include "webkit/fileapi/syncable/sync_file_status.h" | 10 #include "webkit/fileapi/syncable/sync_file_status.h" |
| 11 #include "webkit/fileapi/syncable/sync_status_code.h" | 11 #include "webkit/fileapi/syncable/sync_status_code.h" |
| 12 | 12 |
| 13 // TODO(calvinlo): Move to sync_file_system namespace. http://crbug/174870. |
| 13 namespace fileapi { | 14 namespace fileapi { |
| 14 | 15 |
| 15 class FileSystemURL; | 16 class FileSystemURL; |
| 16 class SyncFileMetadata; | 17 class SyncFileMetadata; |
| 17 class ConflictFileInfo; | 18 class ConflictFileInfo; |
| 18 | 19 |
| 19 typedef base::Callback<void(SyncStatusCode status)> | 20 typedef base::Callback<void(SyncStatusCode status)> |
| 20 SyncStatusCallback; | 21 SyncStatusCallback; |
| 21 | 22 |
| 22 typedef base::Callback<void(SyncStatusCode status, | 23 typedef base::Callback<void(SyncStatusCode status, |
| 23 const FileSystemURL& url)> | 24 const FileSystemURL& url)> |
| 24 SyncFileCallback; | 25 SyncFileCallback; |
| 25 | 26 |
| 26 typedef base::Callback<void(SyncStatusCode status, | 27 typedef base::Callback<void(SyncStatusCode status, |
| 27 const SyncFileMetadata& metadata)> | 28 const SyncFileMetadata& metadata)> |
| 28 SyncFileMetadataCallback; | 29 SyncFileMetadataCallback; |
| 29 | 30 |
| 30 typedef base::Callback<void(fileapi::SyncStatusCode status, | 31 typedef base::Callback<void(fileapi::SyncStatusCode status, |
| 31 const fileapi::FileSystemURLSet& urls)> | 32 const fileapi::FileSystemURLSet& urls)> |
| 32 SyncFileSetCallback; | 33 SyncFileSetCallback; |
| 33 | 34 |
| 34 typedef base::Callback<void(fileapi::SyncStatusCode status, | 35 typedef base::Callback<void(fileapi::SyncStatusCode status, |
| 35 const fileapi::ConflictFileInfo& conflict_info)> | 36 const fileapi::ConflictFileInfo& conflict_info)> |
| 36 ConflictFileInfoCallback; | 37 ConflictFileInfoCallback; |
| 37 | 38 |
| 38 typedef base::Callback<void(SyncStatusCode status, | 39 typedef base::Callback<void(SyncStatusCode status, |
| 39 SyncFileStatus sync_file_status)> | 40 sync_file_system::SyncFileStatus sync_file_status)> |
| 40 SyncFileStatusCallback; | 41 SyncFileStatusCallback; |
| 41 | 42 |
| 42 } // namespace fileapi | 43 } // namespace fileapi |
| 43 | 44 |
| 44 #endif // WEBKIT_FILEAPI_SYNCABLE_SYNC_CALLBACKS_H_ | 45 #endif // WEBKIT_FILEAPI_SYNCABLE_SYNC_CALLBACKS_H_ |
| OLD | NEW |