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 |