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

Unified Diff: webkit/fileapi/isolated_mount_point_provider.cc

Issue 14493007: Add Transient FileSystem which goes away after its snapsot file is gone (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/fileapi/isolated_mount_point_provider.h ('k') | webkit/fileapi/transient_file_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/isolated_mount_point_provider.cc
diff --git a/webkit/fileapi/isolated_mount_point_provider.cc b/webkit/fileapi/isolated_mount_point_provider.cc
index b8094e426ca1fc3cddeef539dc831ff5fb28b11e..36d88794eb656dfe1f67d838a9d3fe4af92b7130 100644
--- a/webkit/fileapi/isolated_mount_point_provider.cc
+++ b/webkit/fileapi/isolated_mount_point_provider.cc
@@ -27,12 +27,14 @@
#include "webkit/fileapi/local_file_stream_writer.h"
#include "webkit/fileapi/local_file_system_operation.h"
#include "webkit/fileapi/native_file_util.h"
+#include "webkit/fileapi/transient_file_util.h"
namespace fileapi {
IsolatedMountPointProvider::IsolatedMountPointProvider()
: isolated_file_util_(new AsyncFileUtilAdapter(new IsolatedFileUtil())),
- dragged_file_util_(new AsyncFileUtilAdapter(new DraggedFileUtil())) {
+ dragged_file_util_(new AsyncFileUtilAdapter(new DraggedFileUtil())),
+ transient_file_util_(new AsyncFileUtilAdapter(new TransientFileUtil())) {
}
IsolatedMountPointProvider::~IsolatedMountPointProvider() {
@@ -42,6 +44,7 @@ bool IsolatedMountPointProvider::CanHandleType(FileSystemType type) const {
switch (type) {
case kFileSystemTypeIsolated:
case kFileSystemTypeDragged:
+ case kFileSystemTypeForTransientFile:
return true;
#if !defined(OS_CHROMEOS)
case kFileSystemTypeNativeLocal:
@@ -79,6 +82,8 @@ FileSystemFileUtil* IsolatedMountPointProvider::GetFileUtil(
return isolated_file_util_->sync_file_util();
case kFileSystemTypeDragged:
return dragged_file_util_->sync_file_util();
+ case kFileSystemTypeForTransientFile:
+ return transient_file_util_->sync_file_util();
default:
NOTREACHED();
}
@@ -92,6 +97,8 @@ AsyncFileUtil* IsolatedMountPointProvider::GetAsyncFileUtil(
return isolated_file_util_.get();
case kFileSystemTypeDragged:
return dragged_file_util_.get();
+ case kFileSystemTypeForTransientFile:
+ return transient_file_util_.get();
default:
NOTREACHED();
}
« no previous file with comments | « webkit/fileapi/isolated_mount_point_provider.h ('k') | webkit/fileapi/transient_file_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698