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

Unified Diff: webkit/fileapi/mtp_device_interface_linux.cc

Issue 10781014: Isolated FS for media devices. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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/mtp_device_interface_linux.cc
diff --git a/webkit/fileapi/mtp_device_interface_linux.cc b/webkit/fileapi/mtp_device_interface_linux.cc
new file mode 100644
index 0000000000000000000000000000000000000000..2d882aabadf6e94b50db7561ea698660111a184d
--- /dev/null
+++ b/webkit/fileapi/mtp_device_interface_linux.cc
@@ -0,0 +1,59 @@
+// 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/mtp_device_interface_linux.h"
+
+namespace fileapi {
+
+MtpDeviceInterfaceLinux::MtpDeviceInterfaceLinux(
+ const FilePath::StringType& device_id)
+ : device_id_(device_id) {
+}
+
+MtpDeviceInterfaceLinux::~MtpDeviceInterfaceLinux() {
+}
+
+bool MtpDeviceInterfaceLinux::Init() {
+ return true;
+}
+
+PlatformFileError MtpDeviceInterfaceLinux::GetFileInfo(
+ const FilePath& file_path,
+ PlatformFileInfo* file_info) {
+ NOTIMPLEMENTED();
+ return base::PLATFORM_FILE_ERROR_SECURITY;
+}
+
+FileSystemFileUtil::AbstractFileEnumerator*
+ MtpDeviceInterfaceLinux::CreateFileEnumerator(
+ const FilePath& root,
+ bool recursive) {
+ NOTIMPLEMENTED();
+ return new FileSystemFileUtil::EmptyFileEnumerator();
+}
+
+PlatformFileError MtpDeviceInterfaceLinux::Touch(
+ const FilePath& file_path,
+ const base::Time& last_access_time,
+ const base::Time& last_modified_time) {
+ NOTIMPLEMENTED();
+ return base::PLATFORM_FILE_ERROR_SECURITY;
+}
+
+bool MtpDeviceInterfaceLinux::PathExists(const FilePath& file_path) {
+ NOTIMPLEMENTED();
+ return false;
+}
+
+bool MtpDeviceInterfaceLinux::DirectoryExists(const FilePath& file_path) {
+ NOTIMPLEMENTED();
+ return false;
+}
+
+bool MtpDeviceInterfaceLinux::IsDirectoryEmpty(const FilePath& file_path) {
+ NOTIMPLEMENTED();
+ return false;
+}
+
+} // namespace fileapi

Powered by Google App Engine
This is Rietveld 408576698