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

Unified Diff: webkit/chromeos/fileapi/cros_mount_point_provider.cc

Issue 10539154: Return RemoteFileStreamWriter from remote mount point provider. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/chromeos/fileapi/cros_mount_point_provider.cc
diff --git a/webkit/chromeos/fileapi/cros_mount_point_provider.cc b/webkit/chromeos/fileapi/cros_mount_point_provider.cc
index 9a6bcb751acd9a7eff159d0be0b353111c79f71c..c9eaa6c3484fb651b1af1c30be0d9c09afc3e4bf 100644
--- a/webkit/chromeos/fileapi/cros_mount_point_provider.cc
+++ b/webkit/chromeos/fileapi/cros_mount_point_provider.cc
@@ -16,6 +16,7 @@
#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebFileSystem.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h"
#include "webkit/chromeos/fileapi/file_access_permissions.h"
+#include "webkit/chromeos/fileapi/remote_file_stream_writer.h"
#include "webkit/chromeos/fileapi/remote_file_system_operation.h"
#include "webkit/fileapi/file_system_file_stream_reader.h"
#include "webkit/fileapi/file_system_operation.h"
@@ -276,8 +277,9 @@ fileapi::FileStreamWriter* CrosMountPointProvider::CreateFileStreamWriter(
if (!mount_point)
return NULL;
if (mount_point->location == REMOTE) {
- // TODO(kinaba): return a gdata writer for remote file system.
- return NULL;
+ return new fileapi::RemoteFileStreamWriter(mount_point->remote_proxy,
+ url,
+ offset);
}
FilePath root_path = mount_point->local_root_path;
return new fileapi::LocalFileStreamWriter(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698