| 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 "webkit/browser/fileapi/syncable/syncable_file_system_operation.h" | 5 #include "webkit/browser/fileapi/syncable/syncable_file_system_operation.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "net/url_request/url_request.h" | 8 #include "net/url_request/url_request.h" |
| 9 #include "webkit/browser/fileapi/file_system_context.h" | 9 #include "webkit/browser/fileapi/file_system_context.h" |
| 10 #include "webkit/browser/fileapi/file_system_operation_context.h" | 10 #include "webkit/browser/fileapi/file_system_operation_context.h" |
| 11 #include "webkit/browser/fileapi/file_system_url.h" | 11 #include "webkit/browser/fileapi/file_system_url.h" |
| 12 #include "webkit/browser/fileapi/local_file_system_operation.h" | 12 #include "webkit/browser/fileapi/local_file_system_operation.h" |
| 13 #include "webkit/browser/fileapi/sandbox_mount_point_provider.h" | 13 #include "webkit/browser/fileapi/sandbox_file_system_backend.h" |
| 14 #include "webkit/browser/fileapi/syncable/local_file_sync_context.h" | 14 #include "webkit/browser/fileapi/syncable/local_file_sync_context.h" |
| 15 #include "webkit/browser/fileapi/syncable/syncable_file_operation_runner.h" | 15 #include "webkit/browser/fileapi/syncable/syncable_file_operation_runner.h" |
| 16 #include "webkit/browser/fileapi/syncable/syncable_file_system_util.h" | 16 #include "webkit/browser/fileapi/syncable/syncable_file_system_util.h" |
| 17 #include "webkit/common/blob/shareable_file_reference.h" | 17 #include "webkit/common/blob/shareable_file_reference.h" |
| 18 | 18 |
| 19 using fileapi::FileSystemURL; | 19 using fileapi::FileSystemURL; |
| 20 using fileapi::FileSystemOperationContext; | 20 using fileapi::FileSystemOperationContext; |
| 21 using fileapi::LocalFileSystemOperation; | 21 using fileapi::LocalFileSystemOperation; |
| 22 | 22 |
| 23 namespace sync_file_system { | 23 namespace sync_file_system { |
| (...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 operation_runner_->OnOperationCompleted(target_paths_); | 358 operation_runner_->OnOperationCompleted(target_paths_); |
| 359 callback.Run(result, bytes, complete); | 359 callback.Run(result, bytes, complete); |
| 360 } | 360 } |
| 361 | 361 |
| 362 void SyncableFileSystemOperation::OnCancelled() { | 362 void SyncableFileSystemOperation::OnCancelled() { |
| 363 DCHECK(!completion_callback_.is_null()); | 363 DCHECK(!completion_callback_.is_null()); |
| 364 completion_callback_.Run(base::PLATFORM_FILE_ERROR_ABORT); | 364 completion_callback_.Run(base::PLATFORM_FILE_ERROR_ABORT); |
| 365 } | 365 } |
| 366 | 366 |
| 367 } // namespace sync_file_system | 367 } // namespace sync_file_system |
| OLD | NEW |