OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/fileapi/cross_operation_delegate.h" | 5 #include "webkit/fileapi/cross_operation_delegate.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/files/file_path.h" |
8 #include "webkit/blob/shareable_file_reference.h" | 9 #include "webkit/blob/shareable_file_reference.h" |
9 #include "webkit/fileapi/copy_or_move_file_validator.h" | 10 #include "webkit/fileapi/copy_or_move_file_validator.h" |
10 #include "webkit/fileapi/file_system_context.h" | 11 #include "webkit/fileapi/file_system_context.h" |
11 #include "webkit/fileapi/file_system_operation_context.h" | 12 #include "webkit/fileapi/file_system_operation_context.h" |
| 13 #include "webkit/fileapi/file_system_url.h" |
12 #include "webkit/fileapi/file_system_util.h" | 14 #include "webkit/fileapi/file_system_util.h" |
13 #include "webkit/fileapi/local_file_system_operation.h" | 15 #include "webkit/fileapi/local_file_system_operation.h" |
14 | 16 |
15 namespace fileapi { | 17 namespace fileapi { |
16 | 18 |
17 CrossOperationDelegate::CrossOperationDelegate( | 19 CrossOperationDelegate::CrossOperationDelegate( |
18 FileSystemContext* file_system_context, | 20 FileSystemContext* file_system_context, |
19 scoped_ptr<LocalFileSystemOperation> src_root_operation, | 21 scoped_ptr<LocalFileSystemOperation> src_root_operation, |
20 LocalFileSystemOperation* dest_root_operation, | 22 LocalFileSystemOperation* dest_root_operation, |
21 const FileSystemURL& src_root, | 23 const FileSystemURL& src_root, |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 return NewNestedOperation(); | 237 return NewNestedOperation(); |
236 } | 238 } |
237 | 239 |
238 LocalFileSystemOperation* CrossOperationDelegate::NewSourceOperation() { | 240 LocalFileSystemOperation* CrossOperationDelegate::NewSourceOperation() { |
239 if (same_file_system_) | 241 if (same_file_system_) |
240 return NewDestOperation(); | 242 return NewDestOperation(); |
241 return src_root_operation_->CreateNestedOperation(); | 243 return src_root_operation_->CreateNestedOperation(); |
242 } | 244 } |
243 | 245 |
244 } // namespace fileapi | 246 } // namespace fileapi |
OLD | NEW |