diff options
author | kinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-18 01:25:28 +0000 |
---|---|---|
committer | kinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-18 01:25:28 +0000 |
commit | 7ec1744abb81ff97f4f2eabc9ea29d7f4f11c686 (patch) | |
tree | 6e1c061a2aedce97e8ce8ec24ccd76b8d681d9e5 | |
parent | 46552698842691598c911840749e117273b6be7b (diff) | |
download | chromium_src-7ec1744abb81ff97f4f2eabc9ea29d7f4f11c686.zip chromium_src-7ec1744abb81ff97f4f2eabc9ea29d7f4f11c686.tar.gz chromium_src-7ec1744abb81ff97f4f2eabc9ea29d7f4f11c686.tar.bz2 |
Add PluginPrivate filesystem type (type only, no impl yet)
This CL just adds a new type but no implementation.
(Contains part of changes from https://codereview.chromium.org/26322008/
created by nhiroki)
BUG=286240
TEST=compile
R=nhiroki@chromium.org, tzik@chromium.org
Review URL: https://codereview.chromium.org/27400004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229272 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | webkit/browser/fileapi/file_system_context.cc | 1 | ||||
-rw-r--r-- | webkit/common/fileapi/file_system_types.h | 5 | ||||
-rw-r--r-- | webkit/common/fileapi/file_system_util.cc | 2 |
3 files changed, 8 insertions, 0 deletions
diff --git a/webkit/browser/fileapi/file_system_context.cc b/webkit/browser/fileapi/file_system_context.cc index ce913b8..3248d7c 100644 --- a/webkit/browser/fileapi/file_system_context.cc +++ b/webkit/browser/fileapi/file_system_context.cc @@ -83,6 +83,7 @@ int FileSystemContext::GetPermissionPolicy(FileSystemType type) { case kFileSystemTypeItunes: case kFileSystemTypeNativeMedia: case kFileSystemTypePicasa: + case kFileSystemTypePluginPrivate: return FILE_PERMISSION_ALWAYS_DENY; // Following types only appear as mount_type, and will not be diff --git a/webkit/common/fileapi/file_system_types.h b/webkit/common/fileapi/file_system_types.h index 3e62172..ee96ed5 100644 --- a/webkit/common/fileapi/file_system_types.h +++ b/webkit/common/fileapi/file_system_types.h @@ -111,6 +111,11 @@ enum FileSystemType { // file which must go away when the blob's last reference is dropped. kFileSystemTypeForTransientFile, + // Sandboxed private filesystem. This filesystem cannot be opened + // via regular OpenFileSystem, and provides private filesystem space for + // given identifier in each origin. + kFileSystemTypePluginPrivate, + // -------------------------------------------------------------------- // Marks the end of internal type enum. (This is not the actual fs type) // New internal filesystem types must be added above this line. diff --git a/webkit/common/fileapi/file_system_util.cc b/webkit/common/fileapi/file_system_util.cc index 0882f33..bc3f435 100644 --- a/webkit/common/fileapi/file_system_util.cc +++ b/webkit/common/fileapi/file_system_util.cc @@ -250,6 +250,8 @@ std::string GetFileSystemTypeString(FileSystemType type) { return "NativeForPlatformApp"; case kFileSystemTypeForTransientFile: return "TransientFile"; + case kFileSystemTypePluginPrivate: + return "PluginPrivate"; case kFileSystemInternalTypeEnumStart: case kFileSystemInternalTypeEnumEnd: NOTREACHED(); |