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

Unified Diff: webkit/fileapi/file_system_file_util_proxy.h

Issue 10815003: Adding FileUtil::CreateSnapshotFile (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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/file_system_file_util.h ('k') | webkit/fileapi/file_system_file_util_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/file_system_file_util_proxy.h
diff --git a/webkit/fileapi/file_system_file_util_proxy.h b/webkit/fileapi/file_system_file_util_proxy.h
index 49199c388f6fa26e48fb6f2c438c3d22a82bbe84..617dbeadf2d1e87e664138a8cf0ff83c1cfa30e7 100644
--- a/webkit/fileapi/file_system_file_util_proxy.h
+++ b/webkit/fileapi/file_system_file_util_proxy.h
@@ -13,6 +13,7 @@
#include "base/memory/ref_counted.h"
#include "base/platform_file.h"
#include "base/tracked_objects.h"
+#include "webkit/fileapi/file_system_operation_interface.h"
namespace fileapi {
@@ -37,13 +38,11 @@ class FileSystemFileUtilProxy {
typedef base::Callback<void(PlatformFileError status)> StatusCallback;
typedef base::Callback<void(PlatformFileError status,
bool created)> EnsureFileExistsCallback;
- typedef base::Callback<void(PlatformFileError status,
- const PlatformFileInfo& info,
- const FilePath& platform_path)>
- GetFileInfoCallback;
- typedef base::Callback<void(PlatformFileError,
- const std::vector<Entry>&,
- bool has_more)> ReadDirectoryCallback;
+ typedef FileSystemOperationInterface::GetMetadataCallback GetFileInfoCallback;
+ typedef FileSystemOperationInterface::SnapshotFileCallback
+ SnapshotFileCallback;
+ typedef FileSystemOperationInterface::ReadDirectoryCallback
+ ReadDirectoryCallback;
// Deletes a file or a directory on the given context's file_task_runner.
// It is an error to delete a non-empty directory with recursive=false.
@@ -125,6 +124,14 @@ class FileSystemFileUtilProxy {
const FileSystemURL& url,
const GetFileInfoCallback& callback);
+ // Creates a snapshot file by calling |file_util|'s CreateSnapshotFile
+ // method on the given context's file_task_runner.
+ static bool CreateSnapshotFile(
+ FileSystemOperationContext* context,
+ FileSystemFileUtil* file_util,
+ const FileSystemURL& url,
+ const SnapshotFileCallback& callback);
+
// Reads the filenames in |url| by calling |file_util|'s
// ReadDirectory method on the given context's file_task_runner.
// TODO: this should support returning entries in multiple chunks.
« no previous file with comments | « webkit/fileapi/file_system_file_util.h ('k') | webkit/fileapi/file_system_file_util_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698