| 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/local_file_sync_context.h" | 5 #include "webkit/fileapi/syncable/local_file_sync_context.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/location.h" | 8 #include "base/location.h" |
| 9 #include "base/platform_file.h" | 9 #include "base/platform_file.h" |
| 10 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
| 11 #include "base/stl_util.h" | 11 #include "base/stl_util.h" |
| 12 #include "base/task_runner_util.h" | 12 #include "base/task_runner_util.h" |
| 13 #include "webkit/browser/fileapi/file_system_file_util.h" | 13 #include "webkit/browser/fileapi/file_system_file_util.h" |
| 14 #include "webkit/common/fileapi/file_system_util.h" |
| 14 #include "webkit/fileapi/file_system_context.h" | 15 #include "webkit/fileapi/file_system_context.h" |
| 15 #include "webkit/fileapi/file_system_operation_context.h" | 16 #include "webkit/fileapi/file_system_operation_context.h" |
| 16 #include "webkit/fileapi/file_system_task_runners.h" | 17 #include "webkit/fileapi/file_system_task_runners.h" |
| 17 #include "webkit/fileapi/file_system_util.h" | |
| 18 #include "webkit/fileapi/local_file_system_operation.h" | 18 #include "webkit/fileapi/local_file_system_operation.h" |
| 19 #include "webkit/fileapi/syncable/file_change.h" | 19 #include "webkit/fileapi/syncable/file_change.h" |
| 20 #include "webkit/fileapi/syncable/local_file_change_tracker.h" | 20 #include "webkit/fileapi/syncable/local_file_change_tracker.h" |
| 21 #include "webkit/fileapi/syncable/local_origin_change_observer.h" | 21 #include "webkit/fileapi/syncable/local_origin_change_observer.h" |
| 22 #include "webkit/fileapi/syncable/sync_file_metadata.h" | 22 #include "webkit/fileapi/syncable/sync_file_metadata.h" |
| 23 #include "webkit/fileapi/syncable/syncable_file_operation_runner.h" | 23 #include "webkit/fileapi/syncable/syncable_file_operation_runner.h" |
| 24 #include "webkit/fileapi/syncable/syncable_file_system_util.h" | 24 #include "webkit/fileapi/syncable/syncable_file_system_util.h" |
| 25 | 25 |
| 26 using fileapi::FileSystemContext; | 26 using fileapi::FileSystemContext; |
| 27 using fileapi::FileSystemFileUtil; | 27 using fileapi::FileSystemFileUtil; |
| (...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 736 return; | 736 return; |
| 737 } | 737 } |
| 738 | 738 |
| 739 LocalFileSystemOperation* operation = CreateFileSystemOperationForSync( | 739 LocalFileSystemOperation* operation = CreateFileSystemOperationForSync( |
| 740 file_system_context); | 740 file_system_context); |
| 741 DCHECK(operation); | 741 DCHECK(operation); |
| 742 operation->CopyInForeignFile(local_path, dest_url, callback); | 742 operation->CopyInForeignFile(local_path, dest_url, callback); |
| 743 } | 743 } |
| 744 | 744 |
| 745 } // namespace sync_file_system | 745 } // namespace sync_file_system |
| OLD | NEW |