| 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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 | 178 |
| 177 bool SyncFileSystemBackend::HasInplaceCopyImplementation( | 179 bool SyncFileSystemBackend::HasInplaceCopyImplementation( |
| 178 storage::FileSystemType type) const { | 180 storage::FileSystemType type) const { |
| 179 return false; | 181 return false; |
| 180 } | 182 } |
| 181 | 183 |
| 182 scoped_ptr<storage::FileStreamReader> | 184 scoped_ptr<storage::FileStreamReader> |
| 183 SyncFileSystemBackend::CreateFileStreamReader( | 185 SyncFileSystemBackend::CreateFileStreamReader( |
| 184 const storage::FileSystemURL& url, | 186 const storage::FileSystemURL& url, |
| 185 int64 offset, | 187 int64 offset, |
| 188 int64 length, |
| 186 const base::Time& expected_modification_time, | 189 const base::Time& expected_modification_time, |
| 187 storage::FileSystemContext* context) const { | 190 storage::FileSystemContext* context) const { |
| 188 DCHECK(CanHandleType(url.type())); | 191 DCHECK(CanHandleType(url.type())); |
| 189 return GetDelegate()->CreateFileStreamReader( | 192 return GetDelegate()->CreateFileStreamReader( |
| 190 url, offset, expected_modification_time, context); | 193 url, offset, expected_modification_time, context); |
| 191 } | 194 } |
| 192 | 195 |
| 193 scoped_ptr<storage::FileStreamWriter> | 196 scoped_ptr<storage::FileStreamWriter> |
| 194 SyncFileSystemBackend::CreateFileStreamWriter( | 197 SyncFileSystemBackend::CreateFileStreamWriter( |
| 195 const storage::FileSystemURL& url, | 198 const storage::FileSystemURL& url, |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 SyncStatusCodeToFileError(status)); | 294 SyncStatusCodeToFileError(status)); |
| 292 return; | 295 return; |
| 293 } | 296 } |
| 294 | 297 |
| 295 callback.Run(GetSyncableFileSystemRootURI(origin_url), | 298 callback.Run(GetSyncableFileSystemRootURI(origin_url), |
| 296 GetFileSystemName(origin_url, type), | 299 GetFileSystemName(origin_url, type), |
| 297 base::File::FILE_OK); | 300 base::File::FILE_OK); |
| 298 } | 301 } |
| 299 | 302 |
| 300 } // namespace sync_file_system | 303 } // namespace sync_file_system |
| OLD | NEW |