| 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/plugin_private_file_system_backend.h" | 5 #include "storage/browser/fileapi/plugin_private_file_system_backend.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | |
| 9 #include <map> | 8 #include <map> |
| 9 #include <utility> |
| 10 | 10 |
| 11 #include "base/stl_util.h" | 11 #include "base/stl_util.h" |
| 12 #include "base/synchronization/lock.h" | 12 #include "base/synchronization/lock.h" |
| 13 #include "base/task_runner_util.h" | 13 #include "base/task_runner_util.h" |
| 14 #include "base/thread_task_runner_handle.h" | 14 #include "base/thread_task_runner_handle.h" |
| 15 #include "net/base/net_util.h" | 15 #include "net/base/net_util.h" |
| 16 #include "storage/browser/fileapi/async_file_util_adapter.h" | 16 #include "storage/browser/fileapi/async_file_util_adapter.h" |
| 17 #include "storage/browser/fileapi/file_stream_reader.h" | 17 #include "storage/browser/fileapi/file_stream_reader.h" |
| 18 #include "storage/browser/fileapi/file_stream_writer.h" | 18 #include "storage/browser/fileapi/file_stream_writer.h" |
| 19 #include "storage/browser/fileapi/file_system_context.h" | 19 #include "storage/browser/fileapi/file_system_context.h" |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 *error_code = base::File::FILE_OK; | 175 *error_code = base::File::FILE_OK; |
| 176 return NULL; | 176 return NULL; |
| 177 } | 177 } |
| 178 | 178 |
| 179 FileSystemOperation* PluginPrivateFileSystemBackend::CreateFileSystemOperation( | 179 FileSystemOperation* PluginPrivateFileSystemBackend::CreateFileSystemOperation( |
| 180 const FileSystemURL& url, | 180 const FileSystemURL& url, |
| 181 FileSystemContext* context, | 181 FileSystemContext* context, |
| 182 base::File::Error* error_code) const { | 182 base::File::Error* error_code) const { |
| 183 scoped_ptr<FileSystemOperationContext> operation_context( | 183 scoped_ptr<FileSystemOperationContext> operation_context( |
| 184 new FileSystemOperationContext(context)); | 184 new FileSystemOperationContext(context)); |
| 185 return FileSystemOperation::Create(url, context, operation_context.Pass()); | 185 return FileSystemOperation::Create(url, context, |
| 186 std::move(operation_context)); |
| 186 } | 187 } |
| 187 | 188 |
| 188 bool PluginPrivateFileSystemBackend::SupportsStreaming( | 189 bool PluginPrivateFileSystemBackend::SupportsStreaming( |
| 189 const storage::FileSystemURL& url) const { | 190 const storage::FileSystemURL& url) const { |
| 190 return false; | 191 return false; |
| 191 } | 192 } |
| 192 | 193 |
| 193 bool PluginPrivateFileSystemBackend::HasInplaceCopyImplementation( | 194 bool PluginPrivateFileSystemBackend::HasInplaceCopyImplementation( |
| 194 storage::FileSystemType type) const { | 195 storage::FileSystemType type) const { |
| 195 return false; | 196 return false; |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 FileSystemType type) const { | 291 FileSystemType type) const { |
| 291 return NULL; | 292 return NULL; |
| 292 } | 293 } |
| 293 | 294 |
| 294 ObfuscatedFileUtil* PluginPrivateFileSystemBackend::obfuscated_file_util() { | 295 ObfuscatedFileUtil* PluginPrivateFileSystemBackend::obfuscated_file_util() { |
| 295 return static_cast<ObfuscatedFileUtil*>( | 296 return static_cast<ObfuscatedFileUtil*>( |
| 296 static_cast<AsyncFileUtilAdapter*>(file_util_.get())->sync_file_util()); | 297 static_cast<AsyncFileUtilAdapter*>(file_util_.get())->sync_file_util()); |
| 297 } | 298 } |
| 298 | 299 |
| 299 } // namespace storage | 300 } // namespace storage |
| OLD | NEW |