| 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/chromeos/fileapi/cros_mount_point_provider.h" | 5 #include "webkit/chromeos/fileapi/cros_mount_point_provider.h" |
| 6 | 6 |
| 7 #include "base/chromeos/chromeos_version.h" | 7 #include "base/chromeos/chromeos_version.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
| 11 #include "base/stringprintf.h" | 11 #include "base/stringprintf.h" |
| 12 #include "base/synchronization/lock.h" | 12 #include "base/synchronization/lock.h" |
| 13 #include "base/utf_string_conversions.h" | 13 #include "base/utf_string_conversions.h" |
| 14 #include "chromeos/dbus/cros_disks_client.h" | 14 #include "chromeos/dbus/cros_disks_client.h" |
| 15 #include "third_party/WebKit/Source/Platform/chromium/public/WebCString.h" | 15 #include "third_party/WebKit/Source/Platform/chromium/public/WebCString.h" |
| 16 #include "third_party/WebKit/Source/Platform/chromium/public/WebFileSystem.h" | 16 #include "third_party/WebKit/Source/Platform/chromium/public/WebFileSystem.h" |
| 17 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h" | 17 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h" |
| 18 #include "webkit/browser/fileapi/copy_or_move_file_validator.h" | 18 #include "webkit/browser/fileapi/copy_or_move_file_validator.h" |
| 19 #include "webkit/browser/fileapi/external_mount_points.h" |
| 20 #include "webkit/browser/fileapi/file_system_task_runners.h" |
| 21 #include "webkit/browser/fileapi/isolated_context.h" |
| 19 #include "webkit/browser/fileapi/isolated_file_util.h" | 22 #include "webkit/browser/fileapi/isolated_file_util.h" |
| 23 #include "webkit/browser/fileapi/local_file_system_operation.h" |
| 20 #include "webkit/chromeos/fileapi/file_access_permissions.h" | 24 #include "webkit/chromeos/fileapi/file_access_permissions.h" |
| 21 #include "webkit/chromeos/fileapi/remote_file_stream_writer.h" | 25 #include "webkit/chromeos/fileapi/remote_file_stream_writer.h" |
| 22 #include "webkit/chromeos/fileapi/remote_file_system_operation.h" | 26 #include "webkit/chromeos/fileapi/remote_file_system_operation.h" |
| 23 #include "webkit/fileapi/async_file_util_adapter.h" | 27 #include "webkit/fileapi/async_file_util_adapter.h" |
| 24 #include "webkit/fileapi/external_mount_points.h" | |
| 25 #include "webkit/fileapi/file_system_context.h" | 28 #include "webkit/fileapi/file_system_context.h" |
| 26 #include "webkit/fileapi/file_system_file_stream_reader.h" | 29 #include "webkit/fileapi/file_system_file_stream_reader.h" |
| 27 #include "webkit/fileapi/file_system_operation_context.h" | 30 #include "webkit/fileapi/file_system_operation_context.h" |
| 28 #include "webkit/fileapi/file_system_task_runners.h" | |
| 29 #include "webkit/fileapi/file_system_url.h" | 31 #include "webkit/fileapi/file_system_url.h" |
| 30 #include "webkit/fileapi/file_system_util.h" | 32 #include "webkit/fileapi/file_system_util.h" |
| 31 #include "webkit/fileapi/isolated_context.h" | |
| 32 #include "webkit/fileapi/local_file_stream_writer.h" | 33 #include "webkit/fileapi/local_file_stream_writer.h" |
| 33 #include "webkit/fileapi/local_file_system_operation.h" | |
| 34 #include "webkit/glue/webkit_glue.h" | 34 #include "webkit/glue/webkit_glue.h" |
| 35 | 35 |
| 36 namespace { | 36 namespace { |
| 37 | 37 |
| 38 const char kChromeUIScheme[] = "chrome"; | 38 const char kChromeUIScheme[] = "chrome"; |
| 39 | 39 |
| 40 } // namespace | 40 } // namespace |
| 41 | 41 |
| 42 namespace chromeos { | 42 namespace chromeos { |
| 43 | 43 |
| (...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 350 fileapi::RemoteFileSystemProxyInterface* CrosMountPointProvider::GetRemoteProxy( | 350 fileapi::RemoteFileSystemProxyInterface* CrosMountPointProvider::GetRemoteProxy( |
| 351 const std::string& mount_name) const { | 351 const std::string& mount_name) const { |
| 352 fileapi::RemoteFileSystemProxyInterface* proxy = | 352 fileapi::RemoteFileSystemProxyInterface* proxy = |
| 353 mount_points_->GetRemoteFileSystemProxy(mount_name); | 353 mount_points_->GetRemoteFileSystemProxy(mount_name); |
| 354 if (proxy) | 354 if (proxy) |
| 355 return proxy; | 355 return proxy; |
| 356 return system_mount_points_->GetRemoteFileSystemProxy(mount_name); | 356 return system_mount_points_->GetRemoteFileSystemProxy(mount_name); |
| 357 } | 357 } |
| 358 | 358 |
| 359 } // namespace chromeos | 359 } // namespace chromeos |
| OLD | NEW |