| 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 #ifndef WEBKIT_FILEAPI_FILE_SYSTEM_TYPES_H_ | 5 #ifndef WEBKIT_FILEAPI_FILE_SYSTEM_TYPES_H_ |
| 6 #define WEBKIT_FILEAPI_FILE_SYSTEM_TYPES_H_ | 6 #define WEBKIT_FILEAPI_FILE_SYSTEM_TYPES_H_ |
| 7 | 7 |
| 8 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebFileSyste
m.h" | 8 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebFileSyste
m.h" |
| 9 | 9 |
| 10 namespace fileapi { | 10 namespace fileapi { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 kFileSystemTypeIsolated = WebKit::WebFileSystem::TypeIsolated, | 27 kFileSystemTypeIsolated = WebKit::WebFileSystem::TypeIsolated, |
| 28 | 28 |
| 29 // Indicates non-sandboxed filesystem where files are placed outside the | 29 // Indicates non-sandboxed filesystem where files are placed outside the |
| 30 // profile directory (thus called 'external' filesystem). | 30 // profile directory (thus called 'external' filesystem). |
| 31 // This filesystem is used only by Chrome OS as of writing. | 31 // This filesystem is used only by Chrome OS as of writing. |
| 32 kFileSystemTypeExternal = WebKit::WebFileSystem::TypeExternal, | 32 kFileSystemTypeExternal = WebKit::WebFileSystem::TypeExternal, |
| 33 | 33 |
| 34 // Should be used only for testing. | 34 // Should be used only for testing. |
| 35 kFileSystemTypeTest = 100, | 35 kFileSystemTypeTest = 100, |
| 36 | 36 |
| 37 // Internal filesystem types, which are not exposed to WebKit but are | 37 // Following file system types are internal and they are not exposed to |
| 38 // accessible via Isolated file system. | 38 // WebKit, but are accessible via IsolatedContext. |
| 39 |
| 40 // Indicates a transient, isolated file system for a native local path. |
| 41 // TODO(kinuko): Rename all kFileSystemTypeIsolated used as internal type |
| 42 // with this one. |
| 43 kFileSystemTypeNativeLocal, |
| 44 |
| 45 // Indicates a transient, isolated file system for dragged files (which could |
| 46 // contain multiple dragged paths in the virtual root). |
| 39 kFileSystemTypeDragged, | 47 kFileSystemTypeDragged, |
| 40 | 48 |
| 41 // Indicates media filesystem which we can access with same manner to | 49 // Indicates media filesystem which we can access with same manner to |
| 42 // regular filesystem. | 50 // regular filesystem. |
| 43 kFileSystemTypeNativeMedia, | 51 kFileSystemTypeNativeMedia, |
| 44 | 52 |
| 45 // Indicates media filesystem to which we need special protocol to access, | 53 // Indicates media filesystem to which we need special protocol to access, |
| 46 // such as MTP or PTP. | 54 // such as MTP or PTP. |
| 47 kFileSystemTypeDeviceMedia, | 55 kFileSystemTypeDeviceMedia, |
| 56 |
| 57 // Indicates a Drive filesystem which provides access to Google Drive. |
| 58 kFileSystemTypeDrive, |
| 59 }; |
| 60 |
| 61 enum FileSystemMountType { |
| 62 kFileSystemMountTypeUnknown = -1, |
| 63 |
| 64 // For kFileSystemTypeIsolated file systems. URLs for this type of |
| 65 // file system is cracked via IsolatedContext. |
| 66 kFileSystemMountTypeIsolated = kFileSystemTypeIsolated, |
| 67 |
| 68 // For kFileSystemTypeIsolated file systems. URLs for this type of |
| 69 // file system is cracked via IsolatedContext. |
| 70 kFileSystemMountTypeExternal = kFileSystemTypeExternal, |
| 48 }; | 71 }; |
| 49 | 72 |
| 50 } // namespace fileapi | 73 } // namespace fileapi |
| 51 | 74 |
| 52 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_TYPES_H_ | 75 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_TYPES_H_ |
| OLD | NEW |