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/file_system_operation_impl.h" | 5 #include "storage/browser/fileapi/file_system_operation_impl.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/single_thread_task_runner.h" | 8 #include "base/single_thread_task_runner.h" |
9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
11 #include "net/base/escape.h" | 11 #include "net/base/escape.h" |
12 #include "net/url_request/url_request.h" | 12 #include "net/url_request/url_request.h" |
13 #include "webkit/browser/fileapi/async_file_util.h" | 13 #include "storage/browser/fileapi/async_file_util.h" |
14 #include "webkit/browser/fileapi/copy_or_move_operation_delegate.h" | 14 #include "storage/browser/fileapi/copy_or_move_operation_delegate.h" |
15 #include "webkit/browser/fileapi/file_observers.h" | 15 #include "storage/browser/fileapi/file_observers.h" |
16 #include "webkit/browser/fileapi/file_system_backend.h" | 16 #include "storage/browser/fileapi/file_system_backend.h" |
17 #include "webkit/browser/fileapi/file_system_context.h" | 17 #include "storage/browser/fileapi/file_system_context.h" |
18 #include "webkit/browser/fileapi/file_system_file_util.h" | 18 #include "storage/browser/fileapi/file_system_file_util.h" |
19 #include "webkit/browser/fileapi/file_system_operation_context.h" | 19 #include "storage/browser/fileapi/file_system_operation_context.h" |
20 #include "webkit/browser/fileapi/file_system_url.h" | 20 #include "storage/browser/fileapi/file_system_url.h" |
21 #include "webkit/browser/fileapi/file_writer_delegate.h" | 21 #include "storage/browser/fileapi/file_writer_delegate.h" |
22 #include "webkit/browser/fileapi/remove_operation_delegate.h" | 22 #include "storage/browser/fileapi/remove_operation_delegate.h" |
23 #include "webkit/browser/fileapi/sandbox_file_system_backend.h" | 23 #include "storage/browser/fileapi/sandbox_file_system_backend.h" |
24 #include "webkit/browser/quota/quota_manager_proxy.h" | 24 #include "storage/browser/quota/quota_manager_proxy.h" |
25 #include "webkit/common/blob/shareable_file_reference.h" | 25 #include "storage/common/blob/shareable_file_reference.h" |
26 #include "webkit/common/fileapi/file_system_types.h" | 26 #include "storage/common/fileapi/file_system_types.h" |
27 #include "webkit/common/fileapi/file_system_util.h" | 27 #include "storage/common/fileapi/file_system_util.h" |
28 #include "webkit/common/quota/quota_types.h" | 28 #include "storage/common/quota/quota_types.h" |
29 | 29 |
30 using storage::ScopedFile; | 30 using storage::ScopedFile; |
31 | 31 |
32 namespace storage { | 32 namespace storage { |
33 | 33 |
34 FileSystemOperation* FileSystemOperation::Create( | 34 FileSystemOperation* FileSystemOperation::Create( |
35 const FileSystemURL& url, | 35 const FileSystemURL& url, |
36 FileSystemContext* file_system_context, | 36 FileSystemContext* file_system_context, |
37 scoped_ptr<FileSystemOperationContext> operation_context) { | 37 scoped_ptr<FileSystemOperationContext> operation_context) { |
38 return new FileSystemOperationImpl(url, file_system_context, | 38 return new FileSystemOperationImpl(url, file_system_context, |
(...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
550 } | 550 } |
551 | 551 |
552 bool FileSystemOperationImpl::SetPendingOperationType(OperationType type) { | 552 bool FileSystemOperationImpl::SetPendingOperationType(OperationType type) { |
553 if (pending_operation_ != kOperationNone) | 553 if (pending_operation_ != kOperationNone) |
554 return false; | 554 return false; |
555 pending_operation_ = type; | 555 pending_operation_ = type; |
556 return true; | 556 return true; |
557 } | 557 } |
558 | 558 |
559 } // namespace storage | 559 } // namespace storage |
OLD | NEW |