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

Unified Diff: webkit/fileapi/media_file_system_operation.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/media_file_system_operation.cc
diff --git a/webkit/fileapi/media_file_system_operation.cc b/webkit/fileapi/media_file_system_operation.cc
new file mode 100644
index 0000000000000000000000000000000000000000..3a7a510a59304ca6acc6ff127ea24031d408b777
--- /dev/null
+++ b/webkit/fileapi/media_file_system_operation.cc
@@ -0,0 +1,201 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "webkit/fileapi/media_file_system_operation.h"
+
+#include "base/bind.h"
+#include "base/utf_string_conversions.h"
+#include "base/platform_file.h"
+#include "base/values.h"
+#include "googleurl/src/gurl.h"
+#include "webkit/fileapi/media_file_system_proxy.h"
+// #include "webkit/fileapi/remote_file_stream_writer.h"
+#include "webkit/fileapi/file_system_callback_dispatcher.h"
+#include "webkit/fileapi/file_system_context.h"
+#include "webkit/fileapi/file_system_url.h"
+#include "webkit/fileapi/file_writer_delegate.h"
+
+using fileapi::FileSystemURL;
+
+namespace fileapi {
+
+MediaFileSystemOperation::MediaFileSystemOperation(
+ FileSystemContext* context,
+ scoped_refptr<fileapi::MediaFileSystemProxyInterface>
+ media_filesystem_proxy)
+ : operation_context_(context),
+ media_filesystem_proxy_(media_filesystem_proxy){
+}
+
+MediaFileSystemOperation::~MediaFileSystemOperation() {
+}
+
+void MediaFileSystemOperation::GetMetadata(const FileSystemURL& url,
+ const GetMetadataCallback& callback) {
+ NOTIMPLEMENTED();
+}
+
+void MediaFileSystemOperation::DirectoryExists(const FileSystemURL& url,
+ const StatusCallback& callback) {
+ NOTIMPLEMENTED();
+}
+
+void MediaFileSystemOperation::FileExists(const FileSystemURL& url,
+ const StatusCallback& callback) {
+ NOTIMPLEMENTED();
+}
+
+void MediaFileSystemOperation::ReadDirectory(const FileSystemURL& url,
+ const ReadDirectoryCallback& callback) {
+ media_filesystem_proxy_->ReadDirectory(&operation_context_, url,
+ base::Bind(&MediaFileSystemOperation::DidReadDirectory,
+ base::Owned(this), callback));
+}
+
+void MediaFileSystemOperation::Remove(const FileSystemURL& url, bool recursive,
+ const StatusCallback& callback) {
+ NOTIMPLEMENTED();
+}
+
+
+void MediaFileSystemOperation::CreateDirectory(
+ const FileSystemURL& url, bool exclusive, bool recursive,
+ const StatusCallback& callback) {
+ NOTIMPLEMENTED();
+}
+
+void MediaFileSystemOperation::CreateFile(const FileSystemURL& url,
+ bool exclusive,
+ const StatusCallback& callback) {
+ NOTIMPLEMENTED();
+}
+
+void MediaFileSystemOperation::Copy(const FileSystemURL& src_url,
+ const FileSystemURL& dest_url,
+ const StatusCallback& callback) {
+ NOTIMPLEMENTED();
+}
+
+void MediaFileSystemOperation::Move(const FileSystemURL& src_url,
+ const FileSystemURL& dest_url,
+ const StatusCallback& callback) {
+ NOTIMPLEMENTED();
+}
+
+void MediaFileSystemOperation::Write(
+ const net::URLRequestContext* url_request_context,
+ const FileSystemURL& url,
+ const GURL& blob_url,
+ int64 offset,
+ const WriteCallback& callback) {
+ NOTIMPLEMENTED();
+}
+
+void MediaFileSystemOperation::Truncate(const FileSystemURL& url,
+ int64 length,
+ const StatusCallback& callback) {
+ NOTIMPLEMENTED();
+}
+
+void MediaFileSystemOperation::Cancel(const StatusCallback& cancel_callback) {
+ NOTIMPLEMENTED();
+}
+
+void MediaFileSystemOperation::TouchFile(const FileSystemURL& url,
+ const base::Time& last_access_time,
+ const base::Time& last_modified_time,
+ const StatusCallback& callback) {
+ NOTIMPLEMENTED();
+}
+
+void MediaFileSystemOperation::OpenFile(const FileSystemURL& url,
+ int file_flags,
+ base::ProcessHandle peer_handle,
+ const OpenFileCallback& callback) {
+ NOTIMPLEMENTED();
+}
+
+void MediaFileSystemOperation::NotifyCloseFile(
+ const fileapi::FileSystemURL& url) {
+ NOTIMPLEMENTED();
+}
+
+
+void MediaFileSystemOperation::CreateSnapshotFile(
+ const fileapi::FileSystemURL& url,
+ const SnapshotFileCallback& callback){
+ NOTIMPLEMENTED();
+}
+
+fileapi::FileSystemOperation*
+MediaFileSystemOperation::AsFileSystemOperation() {
+ NOTIMPLEMENTED();
+ return NULL;
+}
+
+void MediaFileSystemOperation::DidDirectoryExists(
+ const StatusCallback& callback,
+ base::PlatformFileError rv,
+ const base::PlatformFileInfo& file_info,
+ const FilePath& unused) {
+ NOTIMPLEMENTED();
+}
+
+void MediaFileSystemOperation::DidFileExists(
+ const StatusCallback& callback,
+ base::PlatformFileError rv,
+ const base::PlatformFileInfo& file_info,
+ const FilePath& unused) {
+ NOTIMPLEMENTED();
+}
+
+void MediaFileSystemOperation::DidGetMetadata(
+ const GetMetadataCallback& callback,
+ base::PlatformFileError rv,
+ const base::PlatformFileInfo& file_info,
+ const FilePath& platform_path) {
+ NOTIMPLEMENTED();
+}
+
+void MediaFileSystemOperation::DidReadDirectory(
+ const ReadDirectoryCallback& callback,
+ base::PlatformFileError rv,
+ const std::vector<base::FileUtilProxy::Entry>& entries,
+ bool has_more) {
+ NOTIMPLEMENTED();
+ callback.Run(rv, entries, has_more /* has_more */);
+}
+
+void MediaFileSystemOperation::DidWrite(
+ const WriteCallback& callback,
+ base::PlatformFileError rv,
+ int64 bytes,
+ bool complete) {
+ NOTIMPLEMENTED();
+}
+
+void MediaFileSystemOperation::DidFinishFileOperation(
+ const StatusCallback& callback,
+ base::PlatformFileError rv) {
+ NOTIMPLEMENTED();
+}
+
+void MediaFileSystemOperation::DidCreateSnapshotFile(
+ const SnapshotFileCallback& callback,
+ base::PlatformFileError result,
+ const base::PlatformFileInfo& file_info,
+ const FilePath& platform_path,
+ const scoped_refptr<webkit_blob::ShareableFileReference>& file_ref) {
+ NOTIMPLEMENTED();
+}
+
+void MediaFileSystemOperation::DidOpenFile(
+ const OpenFileCallback& callback,
+ base::PlatformFileError result,
+ base::PlatformFile file,
+ base::ProcessHandle peer_handle) {
+ NOTIMPLEMENTED();
+}
+
+} // namespace

Powered by Google App Engine
This is Rietveld 408576698