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 "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
10 #include "chrome/browser/chromeos/fileapi/file_access_permissions.h" | 10 #include "chrome/browser/chromeos/fileapi/file_access_permissions.h" |
11 #include "chrome/browser/chromeos/fileapi/file_system_backend_delegate.h" | 11 #include "chrome/browser/chromeos/fileapi/file_system_backend_delegate.h" |
12 #include "chrome/browser/media_galleries/fileapi/media_file_system_backend.h" | 12 #include "chrome/browser/media_galleries/fileapi/media_file_system_backend.h" |
13 #include "chromeos/dbus/cros_disks_client.h" | 13 #include "chromeos/dbus/cros_disks_client.h" |
14 #include "webkit/browser/blob/file_stream_reader.h" | 14 #include "storage/browser/blob/file_stream_reader.h" |
15 #include "webkit/browser/fileapi/async_file_util.h" | 15 #include "storage/browser/fileapi/async_file_util.h" |
16 #include "webkit/browser/fileapi/external_mount_points.h" | 16 #include "storage/browser/fileapi/external_mount_points.h" |
17 #include "webkit/browser/fileapi/file_stream_writer.h" | 17 #include "storage/browser/fileapi/file_stream_writer.h" |
18 #include "webkit/browser/fileapi/file_system_context.h" | 18 #include "storage/browser/fileapi/file_system_context.h" |
19 #include "webkit/browser/fileapi/file_system_operation.h" | 19 #include "storage/browser/fileapi/file_system_operation.h" |
20 #include "webkit/browser/fileapi/file_system_operation_context.h" | 20 #include "storage/browser/fileapi/file_system_operation_context.h" |
21 #include "webkit/browser/fileapi/file_system_url.h" | 21 #include "storage/browser/fileapi/file_system_url.h" |
22 | 22 |
23 namespace chromeos { | 23 namespace chromeos { |
24 | 24 |
25 // static | 25 // static |
26 bool FileSystemBackend::CanHandleURL(const storage::FileSystemURL& url) { | 26 bool FileSystemBackend::CanHandleURL(const storage::FileSystemURL& url) { |
27 if (!url.is_valid()) | 27 if (!url.is_valid()) |
28 return false; | 28 return false; |
29 return url.type() == storage::kFileSystemTypeNativeLocal || | 29 return url.type() == storage::kFileSystemTypeNativeLocal || |
30 url.type() == storage::kFileSystemTypeRestrictedNativeLocal || | 30 url.type() == storage::kFileSystemTypeRestrictedNativeLocal || |
31 url.type() == storage::kFileSystemTypeDrive || | 31 url.type() == storage::kFileSystemTypeDrive || |
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
410 case storage::kFileSystemTypeRestrictedNativeLocal: | 410 case storage::kFileSystemTypeRestrictedNativeLocal: |
411 callback.Run(GURL()); | 411 callback.Run(GURL()); |
412 return; | 412 return; |
413 default: | 413 default: |
414 NOTREACHED(); | 414 NOTREACHED(); |
415 } | 415 } |
416 callback.Run(GURL()); | 416 callback.Run(GURL()); |
417 } | 417 } |
418 | 418 |
419 } // namespace chromeos | 419 } // namespace chromeos |
OLD | NEW |