| 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 "chrome/browser/chromeos/fileapi/file_system_backend.h" | 5 #include "chrome/browser/chromeos/fileapi/file_system_backend.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| 11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
| 12 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "base/memory/ptr_util.h" | 13 #include "base/memory/ptr_util.h" |
| 14 #include "base/strings/stringprintf.h" | |
| 15 #include "chrome/browser/chromeos/fileapi/file_access_permissions.h" | 14 #include "chrome/browser/chromeos/fileapi/file_access_permissions.h" |
| 16 #include "chrome/browser/chromeos/fileapi/file_system_backend_delegate.h" | 15 #include "chrome/browser/chromeos/fileapi/file_system_backend_delegate.h" |
| 17 #include "chrome/browser/media_galleries/fileapi/media_file_system_backend.h" | 16 #include "chrome/browser/media_galleries/fileapi/media_file_system_backend.h" |
| 18 #include "chrome/common/url_constants.h" | 17 #include "chrome/common/url_constants.h" |
| 19 #include "chromeos/chromeos_switches.h" | 18 #include "chromeos/chromeos_switches.h" |
| 20 #include "chromeos/dbus/cros_disks_client.h" | 19 #include "chromeos/dbus/cros_disks_client.h" |
| 21 #include "storage/browser/fileapi/async_file_util.h" | 20 #include "storage/browser/fileapi/async_file_util.h" |
| 22 #include "storage/browser/fileapi/external_mount_points.h" | 21 #include "storage/browser/fileapi/external_mount_points.h" |
| 23 #include "storage/browser/fileapi/file_stream_reader.h" | 22 #include "storage/browser/fileapi/file_stream_reader.h" |
| 24 #include "storage/browser/fileapi/file_stream_writer.h" | 23 #include "storage/browser/fileapi/file_stream_writer.h" |
| (...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 448 const base::FilePath& entry_path) const { | 447 const base::FilePath& entry_path) const { |
| 449 base::FilePath virtual_path; | 448 base::FilePath virtual_path; |
| 450 if (!GetVirtualPath(entry_path, &virtual_path)) | 449 if (!GetVirtualPath(entry_path, &virtual_path)) |
| 451 return storage::FileSystemURL(); | 450 return storage::FileSystemURL(); |
| 452 | 451 |
| 453 return context->CreateCrackedFileSystemURL( | 452 return context->CreateCrackedFileSystemURL( |
| 454 GURL() /* origin */, storage::kFileSystemTypeExternal, virtual_path); | 453 GURL() /* origin */, storage::kFileSystemTypeExternal, virtual_path); |
| 455 } | 454 } |
| 456 | 455 |
| 457 } // namespace chromeos | 456 } // namespace chromeos |
| OLD | NEW |