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

Unified Diff: webkit/fileapi/isolated_mount_point_provider.cc

Issue 13811013: Refactor FileSystemMountPointProvider::CreateFileStream{Reader,Writer} (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: conflict fix 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/sandbox_mount_point_provider.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 c6590f8d7d718e79b30b6f2c3dcd8848c3b8a98e..3dc57acb17c260a128d7ba93c41d40578ee82450 100644
--- a/webkit/fileapi/isolated_mount_point_provider.cc
+++ b/webkit/fileapi/isolated_mount_point_provider.cc
@@ -181,22 +181,24 @@ FileSystemOperation* IsolatedMountPointProvider::CreateFileSystemOperation(
return new LocalFileSystemOperation(context, operation_context.Pass());
}
-webkit_blob::FileStreamReader*
+scoped_ptr<webkit_blob::FileStreamReader>
IsolatedMountPointProvider::CreateFileStreamReader(
const FileSystemURL& url,
int64 offset,
const base::Time& expected_modification_time,
FileSystemContext* context) const {
- return new webkit_blob::LocalFileStreamReader(
- context->task_runners()->file_task_runner(),
- url.path(), offset, expected_modification_time);
+ return scoped_ptr<webkit_blob::FileStreamReader>(
+ new webkit_blob::LocalFileStreamReader(
+ context->task_runners()->file_task_runner(),
+ url.path(), offset, expected_modification_time));
}
-FileStreamWriter* IsolatedMountPointProvider::CreateFileStreamWriter(
+scoped_ptr<FileStreamWriter> IsolatedMountPointProvider::CreateFileStreamWriter(
const FileSystemURL& url,
int64 offset,
FileSystemContext* context) const {
- return new LocalFileStreamWriter(url.path(), offset);
+ return scoped_ptr<FileStreamWriter>(
+ new LocalFileStreamWriter(url.path(), offset));
}
FileSystemQuotaUtil* IsolatedMountPointProvider::GetQuotaUtil() {
« no previous file with comments | « webkit/fileapi/isolated_mount_point_provider.h ('k') | webkit/fileapi/sandbox_mount_point_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698