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

Unified Diff: webkit/fileapi/isolated_file_util.cc

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/isolated_file_util.h ('k') | webkit/fileapi/local_file_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/isolated_file_util.cc
diff --git a/webkit/fileapi/isolated_file_util.cc b/webkit/fileapi/isolated_file_util.cc
index 502902d428e955b40adb11b8dd5b480a2e8a0800..1d50a56f71c35cfd3e8d8ff8b6c0a04f36880b73 100644
--- a/webkit/fileapi/isolated_file_util.cc
+++ b/webkit/fileapi/isolated_file_util.cc
@@ -8,6 +8,7 @@
#include <vector>
#include "base/memory/scoped_ptr.h"
+#include "webkit/blob/shareable_file_reference.h"
#include "webkit/fileapi/file_system_context.h"
#include "webkit/fileapi/file_system_operation_context.h"
#include "webkit/fileapi/file_system_url.h"
@@ -371,6 +372,18 @@ PlatformFileError IsolatedFileUtil::DeleteSingleDirectory(
return base::PLATFORM_FILE_ERROR_SECURITY;
}
+scoped_refptr<webkit_blob::ShareableFileReference>
+IsolatedFileUtil::CreateSnapshotFile(
+ FileSystemOperationContext* context,
+ const FileSystemURL& url,
+ base::PlatformFileError* result,
+ base::PlatformFileInfo* file_info,
+ FilePath* platform_path) {
+ DCHECK(result);
+ *result = GetFileInfo(context, url, file_info, platform_path);
+ return NULL;
+}
+
bool IsolatedFileUtil::GetPlatformPath(const FileSystemURL& url,
FilePath* platform_path) const {
DCHECK(platform_path);
« no previous file with comments | « webkit/fileapi/isolated_file_util.h ('k') | webkit/fileapi/local_file_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698