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

Unified Diff: webkit/fileapi/local_file_util.cc

Issue 10834167: Create ShareableFileReference on IO thread (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: adding unknown policy for DCHECK Created 8 years, 4 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/local_file_util.h ('k') | webkit/fileapi/media/device_media_file_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/local_file_util.cc
diff --git a/webkit/fileapi/local_file_util.cc b/webkit/fileapi/local_file_util.cc
index 51a13aa581f25b1f0603bd46c1d99ed0a626878b..2bfe172e3be0700518adf829b5a3d4185294edda 100644
--- a/webkit/fileapi/local_file_util.cc
+++ b/webkit/fileapi/local_file_util.cc
@@ -269,18 +269,16 @@ PlatformFileError LocalFileUtil::DeleteSingleDirectory(
return NativeFileUtil::DeleteSingleDirectory(file_path);
}
-scoped_refptr<webkit_blob::ShareableFileReference>
-LocalFileUtil::CreateSnapshotFile(
+base::PlatformFileError LocalFileUtil::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);
- // We don't want the third party to delete our local file, so just returning
- // NULL.
- return NULL;
+ FilePath* platform_path,
+ SnapshotFilePolicy* policy) {
+ DCHECK(policy);
+ // We're just returning the local file information.
+ *policy = kSnapshotFileLocal;
+ return GetFileInfo(context, url, file_info, platform_path);
}
} // namespace fileapi
« no previous file with comments | « webkit/fileapi/local_file_util.h ('k') | webkit/fileapi/media/device_media_file_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698