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 #include "webkit/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 "webkit/blob/shareable_file_reference.h" | 8 #include "webkit/blob/shareable_file_reference.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/sandbox_mount_point_provider.h" | 12 #include "webkit/browser/fileapi/sandbox_mount_point_provider.h" |
13 #include "webkit/fileapi/syncable/local_file_sync_context.h" | 13 #include "webkit/browser/fileapi/syncable/local_file_sync_context.h" |
14 #include "webkit/fileapi/syncable/syncable_file_operation_runner.h" | 14 #include "webkit/browser/fileapi/syncable/syncable_file_operation_runner.h" |
15 #include "webkit/fileapi/syncable/syncable_file_system_util.h" | 15 #include "webkit/browser/fileapi/syncable/syncable_file_system_util.h" |
16 | 16 |
17 using fileapi::FileSystemURL; | 17 using fileapi::FileSystemURL; |
18 using fileapi::FileSystemOperationContext; | 18 using fileapi::FileSystemOperationContext; |
19 using fileapi::LocalFileSystemOperation; | 19 using fileapi::LocalFileSystemOperation; |
20 | 20 |
21 namespace sync_file_system { | 21 namespace sync_file_system { |
22 | 22 |
23 namespace { | 23 namespace { |
24 | 24 |
25 void WriteCallbackAdapter( | 25 void WriteCallbackAdapter( |
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
399 | 399 |
400 void SyncableFileSystemOperation::AbortOperation( | 400 void SyncableFileSystemOperation::AbortOperation( |
401 const StatusCallback& callback, | 401 const StatusCallback& callback, |
402 base::PlatformFileError error) { | 402 base::PlatformFileError error) { |
403 callback.Run(error); | 403 callback.Run(error); |
404 delete inflight_operation_; | 404 delete inflight_operation_; |
405 delete this; | 405 delete this; |
406 } | 406 } |
407 | 407 |
408 } // namespace sync_file_system | 408 } // namespace sync_file_system |
OLD | NEW |