| 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/local_file_sync_context.h" | 5 #include "webkit/browser/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" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 #include "webkit/browser/fileapi/syncable/sync_file_metadata.h" | 21 #include "webkit/browser/fileapi/syncable/sync_file_metadata.h" |
| 22 #include "webkit/browser/fileapi/syncable/syncable_file_operation_runner.h" | 22 #include "webkit/browser/fileapi/syncable/syncable_file_operation_runner.h" |
| 23 #include "webkit/browser/fileapi/syncable/syncable_file_system_util.h" | 23 #include "webkit/browser/fileapi/syncable/syncable_file_system_util.h" |
| 24 #include "webkit/common/fileapi/file_system_util.h" | 24 #include "webkit/common/fileapi/file_system_util.h" |
| 25 | 25 |
| 26 using fileapi::FileSystemContext; | 26 using fileapi::FileSystemContext; |
| 27 using fileapi::FileSystemFileUtil; | 27 using fileapi::FileSystemFileUtil; |
| 28 using fileapi::FileSystemOperation; | 28 using fileapi::FileSystemOperation; |
| 29 using fileapi::FileSystemOperationContext; | 29 using fileapi::FileSystemOperationContext; |
| 30 using fileapi::FileSystemURL; | 30 using fileapi::FileSystemURL; |
| 31 using fileapi::LocalFileSystemOperation; | |
| 32 | 31 |
| 33 namespace sync_file_system { | 32 namespace sync_file_system { |
| 34 | 33 |
| 35 namespace { | 34 namespace { |
| 36 | 35 |
| 37 const int kMaxConcurrentSyncableOperation = 3; | 36 const int kMaxConcurrentSyncableOperation = 3; |
| 38 const int kNotifyChangesDurationInSec = 1; | 37 const int kNotifyChangesDurationInSec = 1; |
| 39 const int kMaxURLsToFetchForLocalSync = 5; | 38 const int kMaxURLsToFetchForLocalSync = 5; |
| 40 | 39 |
| 41 } // namespace | 40 } // namespace |
| (...skipping 693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 735 return; | 734 return; |
| 736 } | 735 } |
| 737 | 736 |
| 738 FileSystemURL url_for_sync = CreateSyncableFileSystemURLForSync( | 737 FileSystemURL url_for_sync = CreateSyncableFileSystemURLForSync( |
| 739 file_system_context, dest_url); | 738 file_system_context, dest_url); |
| 740 file_system_context->operation_runner()->CopyInForeignFile( | 739 file_system_context->operation_runner()->CopyInForeignFile( |
| 741 local_path, url_for_sync, callback); | 740 local_path, url_for_sync, callback); |
| 742 } | 741 } |
| 743 | 742 |
| 744 } // namespace sync_file_system | 743 } // namespace sync_file_system |
| OLD | NEW |