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

Unified Diff: webkit/fileapi/transient_file_util.h

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.cc ('k') | webkit/fileapi/transient_file_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/transient_file_util.h
diff --git a/webkit/fileapi/transient_file_util.h b/webkit/fileapi/transient_file_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..d4d7ab2deb5976f8c1df1e502e97860968559086
--- /dev/null
+++ b/webkit/fileapi/transient_file_util.h
@@ -0,0 +1,36 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef WEBKIT_FILEAPI_TRANSIENT_FILE_UTIL_H_
+#define WEBKIT_FILEAPI_TRANSIENT_FILE_UTIL_H_
+
+#include "base/memory/scoped_ptr.h"
+#include "webkit/fileapi/isolated_file_util.h"
+#include "webkit/storage/webkit_storage_export.h"
+
+namespace fileapi {
+
+class FileSystemOperationContext;
+
+class WEBKIT_STORAGE_EXPORT_PRIVATE TransientFileUtil
+ : public IsolatedFileUtil {
+ public:
+ TransientFileUtil() {}
+ virtual ~TransientFileUtil() {}
+
+ // IsolatedFileUtil overrides.
+ virtual webkit_blob::ScopedFile CreateSnapshotFile(
+ FileSystemOperationContext* context,
+ const FileSystemURL& url,
+ base::PlatformFileError* error,
+ base::PlatformFileInfo* file_info,
+ base::FilePath* platform_path) OVERRIDE;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(TransientFileUtil);
+};
+
+} // namespace fileapi
+
+#endif // WEBKIT_FILEAPI_TRANSIENT_FILE_UTIL_H_
« no previous file with comments | « webkit/fileapi/isolated_mount_point_provider.cc ('k') | webkit/fileapi/transient_file_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698