| 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/local_file_system_operation.h" | 5 #include "webkit/fileapi/local_file_system_operation.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/time.h" | 9 #include "base/time.h" |
| 10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
| 11 #include "net/base/escape.h" | 11 #include "net/base/escape.h" |
| 12 #include "net/url_request/url_request_context.h" | 12 #include "net/url_request/url_request_context.h" |
| 13 #include "webkit/blob/shareable_file_reference.h" | 13 #include "webkit/blob/shareable_file_reference.h" |
| 14 #include "webkit/fileapi/async_file_util.h" | 14 #include "webkit/fileapi/async_file_util.h" |
| 15 #include "webkit/fileapi/cross_operation_delegate.h" | 15 #include "webkit/fileapi/cross_operation_delegate.h" |
| 16 #include "webkit/fileapi/file_observers.h" | 16 #include "webkit/fileapi/file_observers.h" |
| 17 #include "webkit/fileapi/file_system_context.h" | 17 #include "webkit/fileapi/file_system_context.h" |
| 18 #include "webkit/fileapi/file_system_file_util.h" |
| 18 #include "webkit/fileapi/file_system_mount_point_provider.h" | 19 #include "webkit/fileapi/file_system_mount_point_provider.h" |
| 20 #include "webkit/fileapi/file_system_operation_context.h" |
| 19 #include "webkit/fileapi/file_system_task_runners.h" | 21 #include "webkit/fileapi/file_system_task_runners.h" |
| 20 #include "webkit/fileapi/file_system_types.h" | 22 #include "webkit/fileapi/file_system_types.h" |
| 21 #include "webkit/fileapi/file_system_url.h" | 23 #include "webkit/fileapi/file_system_url.h" |
| 22 #include "webkit/fileapi/file_system_util.h" | 24 #include "webkit/fileapi/file_system_util.h" |
| 23 #include "webkit/fileapi/file_writer_delegate.h" | 25 #include "webkit/fileapi/file_writer_delegate.h" |
| 24 #include "webkit/fileapi/remove_operation_delegate.h" | 26 #include "webkit/fileapi/remove_operation_delegate.h" |
| 25 #include "webkit/fileapi/sandbox_file_stream_writer.h" | 27 #include "webkit/fileapi/sandbox_file_stream_writer.h" |
| 26 #include "webkit/quota/quota_manager.h" | 28 #include "webkit/quota/quota_manager.h" |
| 27 #include "webkit/quota/quota_types.h" | 29 #include "webkit/quota/quota_types.h" |
| 28 | 30 |
| (...skipping 835 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 864 } | 866 } |
| 865 | 867 |
| 866 bool LocalFileSystemOperation::SetPendingOperationType(OperationType type) { | 868 bool LocalFileSystemOperation::SetPendingOperationType(OperationType type) { |
| 867 if (pending_operation_ != kOperationNone) | 869 if (pending_operation_ != kOperationNone) |
| 868 return false; | 870 return false; |
| 869 pending_operation_ = type; | 871 pending_operation_ = type; |
| 870 return true; | 872 return true; |
| 871 } | 873 } |
| 872 | 874 |
| 873 } // namespace fileapi | 875 } // namespace fileapi |
| OLD | NEW |