| 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 #include "chrome/browser/sync_file_system/local/sync_file_system_backend.h" | 5 #include "chrome/browser/sync_file_system/local/sync_file_system_backend.h" |
| 6 | 6 |
| 7 #include <string> |
| 8 |
| 7 #include "base/logging.h" | 9 #include "base/logging.h" |
| 8 #include "chrome/browser/chrome_notification_types.h" | 10 #include "chrome/browser/chrome_notification_types.h" |
| 9 #include "chrome/browser/sync_file_system/local/local_file_change_tracker.h" | 11 #include "chrome/browser/sync_file_system/local/local_file_change_tracker.h" |
| 10 #include "chrome/browser/sync_file_system/local/local_file_sync_context.h" | 12 #include "chrome/browser/sync_file_system/local/local_file_sync_context.h" |
| 11 #include "chrome/browser/sync_file_system/local/syncable_file_system_operation.h
" | 13 #include "chrome/browser/sync_file_system/local/syncable_file_system_operation.h
" |
| 12 #include "chrome/browser/sync_file_system/sync_file_system_service.h" | 14 #include "chrome/browser/sync_file_system/sync_file_system_service.h" |
| 13 #include "chrome/browser/sync_file_system/sync_file_system_service_factory.h" | 15 #include "chrome/browser/sync_file_system/sync_file_system_service_factory.h" |
| 14 #include "chrome/browser/sync_file_system/syncable_file_system_util.h" | 16 #include "chrome/browser/sync_file_system/syncable_file_system_util.h" |
| 15 #include "content/public/browser/browser_thread.h" | 17 #include "content/public/browser/browser_thread.h" |
| 16 #include "content/public/browser/notification_service.h" | 18 #include "content/public/browser/notification_service.h" |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 mode, | 133 mode, |
| 132 callback); | 134 callback); |
| 133 InitializeSyncFileSystemService(url.origin(), initialize_callback); | 135 InitializeSyncFileSystemService(url.origin(), initialize_callback); |
| 134 } | 136 } |
| 135 | 137 |
| 136 storage::AsyncFileUtil* SyncFileSystemBackend::GetAsyncFileUtil( | 138 storage::AsyncFileUtil* SyncFileSystemBackend::GetAsyncFileUtil( |
| 137 storage::FileSystemType type) { | 139 storage::FileSystemType type) { |
| 138 return GetDelegate()->file_util(); | 140 return GetDelegate()->file_util(); |
| 139 } | 141 } |
| 140 | 142 |
| 143 storage::WatcherManager* SyncFileSystemBackend::GetWatcherManager( |
| 144 storage::FileSystemType type) { |
| 145 return NULL; |
| 146 } |
| 147 |
| 141 storage::CopyOrMoveFileValidatorFactory* | 148 storage::CopyOrMoveFileValidatorFactory* |
| 142 SyncFileSystemBackend::GetCopyOrMoveFileValidatorFactory( | 149 SyncFileSystemBackend::GetCopyOrMoveFileValidatorFactory( |
| 143 storage::FileSystemType type, | 150 storage::FileSystemType type, |
| 144 base::File::Error* error_code) { | 151 base::File::Error* error_code) { |
| 145 DCHECK(error_code); | 152 DCHECK(error_code); |
| 146 *error_code = base::File::FILE_OK; | 153 *error_code = base::File::FILE_OK; |
| 147 return NULL; | 154 return NULL; |
| 148 } | 155 } |
| 149 | 156 |
| 150 storage::FileSystemOperation* SyncFileSystemBackend::CreateFileSystemOperation( | 157 storage::FileSystemOperation* SyncFileSystemBackend::CreateFileSystemOperation( |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 SyncStatusCodeToFileError(status)); | 298 SyncStatusCodeToFileError(status)); |
| 292 return; | 299 return; |
| 293 } | 300 } |
| 294 | 301 |
| 295 callback.Run(GetSyncableFileSystemRootURI(origin_url), | 302 callback.Run(GetSyncableFileSystemRootURI(origin_url), |
| 296 GetFileSystemName(origin_url, type), | 303 GetFileSystemName(origin_url, type), |
| 297 base::File::FILE_OK); | 304 base::File::FILE_OK); |
| 298 } | 305 } |
| 299 | 306 |
| 300 } // namespace sync_file_system | 307 } // namespace sync_file_system |
| OLD | NEW |