summaryrefslogtreecommitdiffstats
path: root/webkit/fileapi/file_system_context.cc
diff options
context:
space:
mode:
authorkinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-02 09:35:05 +0000
committerkinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-02 09:35:05 +0000
commit6fe6965e2d0e4ac248d6825a88b5e53a77ac5ffe (patch)
tree674002b384f19261c6bf00c1033954b7a771345c /webkit/fileapi/file_system_context.cc
parentb93a8aea9cc770f414fdfad8fad7dcae432eb177 (diff)
downloadchromium_src-6fe6965e2d0e4ac248d6825a88b5e53a77ac5ffe.zip
chromium_src-6fe6965e2d0e4ac248d6825a88b5e53a77ac5ffe.tar.gz
chromium_src-6fe6965e2d0e4ac248d6825a88b5e53a77ac5ffe.tar.bz2
Add isolated file_util for directory (and file) drag-and-drop support.
patch from http://codereview.chromium.org/9204009/ BUG=99823 TEST=test_shell_tests:IsolatedFileUtil* Review URL: https://chromiumcodereview.appspot.com/9272007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130110 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/fileapi/file_system_context.cc')
-rw-r--r--webkit/fileapi/file_system_context.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/webkit/fileapi/file_system_context.cc b/webkit/fileapi/file_system_context.cc
index 600518e..07acff2 100644
--- a/webkit/fileapi/file_system_context.cc
+++ b/webkit/fileapi/file_system_context.cc
@@ -13,6 +13,7 @@
#include "webkit/fileapi/file_system_options.h"
#include "webkit/fileapi/file_system_quota_client.h"
#include "webkit/fileapi/file_system_util.h"
+#include "webkit/fileapi/isolated_mount_point_provider.h"
#include "webkit/fileapi/sandbox_mount_point_provider.h"
#include "webkit/quota/quota_manager.h"
#include "webkit/quota/special_storage_policy.h"
@@ -57,7 +58,8 @@ FileSystemContext::FileSystemContext(
new SandboxMountPointProvider(
file_message_loop,
profile_path,
- options)) {
+ options)),
+ isolated_provider_(new IsolatedMountPointProvider) {
if (quota_manager_proxy) {
quota_manager_proxy->RegisterClient(CreateQuotaClient(
file_message_loop, this, options.is_incognito()));
@@ -123,6 +125,8 @@ FileSystemMountPointProvider* FileSystemContext::GetMountPointProvider(
return sandbox_provider_.get();
case kFileSystemTypeExternal:
return external_provider_.get();
+ case kFileSystemTypeIsolated:
+ return isolated_provider_.get();
case kFileSystemTypeUnknown:
default:
NOTREACHED();