| 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 "storage/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 "storage/browser/blob/shareable_file_reference.h" | 13 #include "storage/browser/blob/shareable_file_reference.h" |
| 14 #include "storage/browser/fileapi/async_file_util.h" | 14 #include "storage/browser/fileapi/async_file_util.h" |
| 15 #include "storage/browser/fileapi/copy_or_move_operation_delegate.h" | 15 #include "storage/browser/fileapi/copy_or_move_operation_delegate.h" |
| 16 #include "storage/browser/fileapi/file_observers.h" | 16 #include "storage/browser/fileapi/file_observers.h" |
| 17 #include "storage/browser/fileapi/file_system_backend.h" | 17 #include "storage/browser/fileapi/file_system_backend.h" |
| 18 #include "storage/browser/fileapi/file_system_context.h" | 18 #include "storage/browser/fileapi/file_system_context.h" |
| 19 #include "storage/browser/fileapi/file_system_file_util.h" | 19 #include "storage/browser/fileapi/file_system_file_util.h" |
| 20 #include "storage/browser/fileapi/file_system_operation_context.h" | |
| 21 #include "storage/browser/fileapi/file_system_url.h" | |
| 22 #include "storage/browser/fileapi/file_writer_delegate.h" | |
| 23 #include "storage/browser/fileapi/remove_operation_delegate.h" | 20 #include "storage/browser/fileapi/remove_operation_delegate.h" |
| 24 #include "storage/browser/fileapi/sandbox_file_system_backend.h" | 21 #include "storage/browser/fileapi/sandbox_file_system_backend.h" |
| 25 #include "storage/browser/quota/quota_manager_proxy.h" | 22 #include "storage/browser/quota/quota_manager_proxy.h" |
| 26 #include "storage/common/fileapi/file_system_types.h" | 23 #include "storage/common/fileapi/file_system_types.h" |
| 27 #include "storage/common/fileapi/file_system_util.h" | 24 #include "storage/common/fileapi/file_system_util.h" |
| 28 #include "storage/common/quota/quota_types.h" | |
| 29 | 25 |
| 30 using storage::ScopedFile; | 26 using storage::ScopedFile; |
| 31 | 27 |
| 32 namespace storage { | 28 namespace storage { |
| 33 | 29 |
| 34 namespace { | 30 namespace { |
| 35 | 31 |
| 36 // Takes ownership and destruct on the target thread. | 32 // Takes ownership and destruct on the target thread. |
| 37 void Destruct(base::File file) {} | 33 void Destruct(base::File file) {} |
| 38 | 34 |
| (...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 565 } | 561 } |
| 566 | 562 |
| 567 bool FileSystemOperationImpl::SetPendingOperationType(OperationType type) { | 563 bool FileSystemOperationImpl::SetPendingOperationType(OperationType type) { |
| 568 if (pending_operation_ != kOperationNone) | 564 if (pending_operation_ != kOperationNone) |
| 569 return false; | 565 return false; |
| 570 pending_operation_ = type; | 566 pending_operation_ = type; |
| 571 return true; | 567 return true; |
| 572 } | 568 } |
| 573 | 569 |
| 574 } // namespace storage | 570 } // namespace storage |
| OLD | NEW |