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/browser/fileapi/isolated_file_system_backend.h" | 5 #include "storage/browser/fileapi/isolated_file_system_backend.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
11 #include "base/files/file_util_proxy.h" | 11 #include "base/files/file_util_proxy.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/message_loop/message_loop_proxy.h" | 13 #include "base/message_loop/message_loop_proxy.h" |
14 #include "base/sequenced_task_runner.h" | 14 #include "base/sequenced_task_runner.h" |
15 #include "webkit/browser/blob/file_stream_reader.h" | 15 #include "storage/browser/blob/file_stream_reader.h" |
16 #include "webkit/browser/fileapi/async_file_util_adapter.h" | 16 #include "storage/browser/fileapi/async_file_util_adapter.h" |
17 #include "webkit/browser/fileapi/copy_or_move_file_validator.h" | 17 #include "storage/browser/fileapi/copy_or_move_file_validator.h" |
18 #include "webkit/browser/fileapi/dragged_file_util.h" | 18 #include "storage/browser/fileapi/dragged_file_util.h" |
19 #include "webkit/browser/fileapi/file_stream_writer.h" | 19 #include "storage/browser/fileapi/file_stream_writer.h" |
20 #include "webkit/browser/fileapi/file_system_context.h" | 20 #include "storage/browser/fileapi/file_system_context.h" |
21 #include "webkit/browser/fileapi/file_system_operation.h" | 21 #include "storage/browser/fileapi/file_system_operation.h" |
22 #include "webkit/browser/fileapi/file_system_operation_context.h" | 22 #include "storage/browser/fileapi/file_system_operation_context.h" |
23 #include "webkit/browser/fileapi/isolated_context.h" | 23 #include "storage/browser/fileapi/isolated_context.h" |
24 #include "webkit/browser/fileapi/native_file_util.h" | 24 #include "storage/browser/fileapi/native_file_util.h" |
25 #include "webkit/browser/fileapi/transient_file_util.h" | 25 #include "storage/browser/fileapi/transient_file_util.h" |
26 #include "webkit/browser/fileapi/watcher_manager.h" | 26 #include "storage/browser/fileapi/watcher_manager.h" |
27 #include "webkit/common/fileapi/file_system_types.h" | 27 #include "storage/common/fileapi/file_system_types.h" |
28 #include "webkit/common/fileapi/file_system_util.h" | 28 #include "storage/common/fileapi/file_system_util.h" |
29 | 29 |
30 namespace storage { | 30 namespace storage { |
31 | 31 |
32 IsolatedFileSystemBackend::IsolatedFileSystemBackend() | 32 IsolatedFileSystemBackend::IsolatedFileSystemBackend() |
33 : isolated_file_util_(new AsyncFileUtilAdapter(new LocalFileUtil())), | 33 : isolated_file_util_(new AsyncFileUtilAdapter(new LocalFileUtil())), |
34 dragged_file_util_(new AsyncFileUtilAdapter(new DraggedFileUtil())), | 34 dragged_file_util_(new AsyncFileUtilAdapter(new DraggedFileUtil())), |
35 transient_file_util_(new AsyncFileUtilAdapter(new TransientFileUtil())) { | 35 transient_file_util_(new AsyncFileUtilAdapter(new TransientFileUtil())) { |
36 } | 36 } |
37 | 37 |
38 IsolatedFileSystemBackend::~IsolatedFileSystemBackend() { | 38 IsolatedFileSystemBackend::~IsolatedFileSystemBackend() { |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 offset, | 143 offset, |
144 FileStreamWriter::OPEN_EXISTING_FILE)); | 144 FileStreamWriter::OPEN_EXISTING_FILE)); |
145 } | 145 } |
146 | 146 |
147 FileSystemQuotaUtil* IsolatedFileSystemBackend::GetQuotaUtil() { | 147 FileSystemQuotaUtil* IsolatedFileSystemBackend::GetQuotaUtil() { |
148 // No quota support. | 148 // No quota support. |
149 return NULL; | 149 return NULL; |
150 } | 150 } |
151 | 151 |
152 } // namespace storage | 152 } // namespace storage |
OLD | NEW |