Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(186)

Side by Side Diff: webkit/fileapi/file_system_types.h

Issue 10879002: kFileSystemTypeIsolated should be only used in the URL exposed to renderer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: build fix Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/chromeos/fileapi/cros_mount_point_provider.cc ('k') | webkit/fileapi/file_system_url.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 {
11 11
12 enum FileSystemType { 12 enum FileSystemType {
13 // Indicates uninitialized or invalid filesystem type. 13 // Indicates uninitialized or invalid filesystem type.
14 kFileSystemTypeUnknown = -1, 14 kFileSystemTypeUnknown = -1,
15 15
16 // ------------------------------------------------------------------------
17 // Public FileSystem types, that are embedded in filesystem: URL and exposed
18 // to WebKit/renderer. Both Chrome and WebKit know how to handle these types.
19
16 // Following two types are for TEMPORARY or PERSISTENT filesystems that 20 // Following two types are for TEMPORARY or PERSISTENT filesystems that
17 // can be used by webapps via standard app-facing API 21 // can be used by webapps via standard app-facing API
18 // as defined in File API: Directories and System. 22 // as defined in File API: Directories and System.
19 // http://www.w3.org/TR/file-system-api/#temporary-vs.-persistent-storage 23 // http://www.w3.org/TR/file-system-api/#temporary-vs.-persistent-storage
20 // They are sandboxed filesystems; all the files in the filesystems are 24 // They are sandboxed filesystems; all the files in the filesystems are
21 // placed under the profile directory with path obfuscation and quota 25 // placed under the profile directory with path obfuscation and quota
22 // enforcement. 26 // enforcement.
23 kFileSystemTypeTemporary = WebKit::WebFileSystem::TypeTemporary, 27 kFileSystemTypeTemporary = WebKit::WebFileSystem::TypeTemporary,
24 kFileSystemTypePersistent = WebKit::WebFileSystem::TypePersistent, 28 kFileSystemTypePersistent = WebKit::WebFileSystem::TypePersistent,
25 29
26 // Indicates non-sandboxed isolated filesystem. 30 // Indicates non-sandboxed isolated filesystem.
27 kFileSystemTypeIsolated = WebKit::WebFileSystem::TypeIsolated, 31 kFileSystemTypeIsolated = WebKit::WebFileSystem::TypeIsolated,
28 32
29 // Indicates non-sandboxed filesystem where files are placed outside the 33 // Indicates non-sandboxed filesystem where files are placed outside the
30 // profile directory (thus called 'external' filesystem). 34 // profile directory (thus called 'external' filesystem).
31 // This filesystem is used only by Chrome OS as of writing. 35 // This filesystem is used only by Chrome OS as of writing.
32 kFileSystemTypeExternal = WebKit::WebFileSystem::TypeExternal, 36 kFileSystemTypeExternal = WebKit::WebFileSystem::TypeExternal,
33 37
38 // ------------------------------------------------------------------------
39 // Private FileSystem types, that should not appear in filesystem: URL as
40 // WebKit has no idea how to handle those types.
41 //
42 // One can register (mount) a new file system with a private file system type
43 // using IsolatedContext. Files in such file systems can be accessed via
44 // either Isolated or External public file system types (depending on
45 // how the file system is registered).
46 // See the comments for IsolatedContext and/or FileSystemURL for more details.
47
34 // Should be used only for testing. 48 // Should be used only for testing.
35 kFileSystemTypeTest = 100, 49 kFileSystemTypeTest = 100,
36 50
37 // Following file system types are internal and they are not exposed to 51 // Indicates a local filesystem where we can access files using native
38 // WebKit, but are accessible via IsolatedContext. 52 // local path.
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, 53 kFileSystemTypeNativeLocal,
44 54
45 // Indicates a transient, isolated file system for dragged files (which could 55 // Indicates a transient, isolated file system for dragged files (which could
46 // contain multiple dragged paths in the virtual root). 56 // contain multiple dragged paths in the virtual root).
47 kFileSystemTypeDragged, 57 kFileSystemTypeDragged,
48 58
49 // Indicates media filesystem which we can access with same manner to 59 // Indicates media filesystem which we can access with same manner to
50 // regular filesystem. 60 // regular filesystem.
51 kFileSystemTypeNativeMedia, 61 kFileSystemTypeNativeMedia,
52 62
53 // Indicates media filesystem to which we need special protocol to access, 63 // Indicates media filesystem to which we need special protocol to access,
54 // such as MTP or PTP. 64 // such as MTP or PTP.
55 kFileSystemTypeDeviceMedia, 65 kFileSystemTypeDeviceMedia,
56 66
57 // Indicates a Drive filesystem which provides access to Google Drive. 67 // Indicates a Drive filesystem which provides access to Google Drive.
58 kFileSystemTypeDrive, 68 kFileSystemTypeDrive,
59 }; 69 };
60 70
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,
71 };
72
73 } // namespace fileapi 71 } // namespace fileapi
74 72
75 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_TYPES_H_ 73 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_TYPES_H_
OLDNEW
« no previous file with comments | « webkit/chromeos/fileapi/cros_mount_point_provider.cc ('k') | webkit/fileapi/file_system_url.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698