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

Unified Diff: webkit/fileapi/isolated_mount_point_provider.cc

Issue 10781014: Isolated FS for media devices. (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
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 35cbcf37e4eecf17250468d64bddaa685911b719..c550c7e96acf0db12020636ad19942afeef03d82 100644
--- a/webkit/fileapi/isolated_mount_point_provider.cc
+++ b/webkit/fileapi/isolated_mount_point_provider.cc
@@ -20,6 +20,8 @@
#include "webkit/fileapi/file_system_util.h"
#include "webkit/fileapi/isolated_context.h"
#include "webkit/fileapi/isolated_file_util.h"
+#include "webkit/fileapi/media_file_system_operation.h"
+#include "webkit/fileapi/media_file_system_proxy_win.h"
#include "webkit/fileapi/local_file_stream_writer.h"
#include "webkit/fileapi/native_file_util.h"
@@ -109,6 +111,14 @@ FileSystemOperationInterface*
IsolatedMountPointProvider::CreateFileSystemOperation(
const FileSystemURL& url,
FileSystemContext* context) const {
+ FilePath temp = GetPathFromURL(url);
kinuko 2012/07/18 10:33:24 Please check if the path is not empty. GetPathFro
+ printf("temp.path:%s\n", temp.value().c_str());
kinuko 2012/07/18 10:33:24 Please remove this when you create a final patch
+ FilePath::StringType Filename(temp.value());
kinuko 2012/07/18 10:33:24 nit: Filename -> filename
+ const wchar_t file_prefix[] = L"\\?\\";
kinuko 2012/07/18 10:33:24 wchar_t -> FilePath::CharType Since this works on
+ int res = Filename.compare(0,4, file_prefix);
+ if (!res) {
+ return new fileapi::MediaFileSystemOperation(context, new fileapi::MediaFileSystemProxyWin(Filename));
kinuko 2012/07/18 10:33:24 Ditto. We should have a platform-common factory me
+ }
return new FileSystemOperation(context);
}

Powered by Google App Engine
This is Rietveld 408576698