OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "webkit/fileapi/mtp_device_interface_linux.h" |
| 6 |
| 7 namespace fileapi { |
| 8 |
| 9 MtpDeviceInterfaceLinux::MtpDeviceInterfaceLinux( |
| 10 const FilePath::StringType& device_id) |
| 11 : device_id_(device_id) { |
| 12 } |
| 13 |
| 14 MtpDeviceInterfaceLinux::~MtpDeviceInterfaceLinux() { |
| 15 } |
| 16 |
| 17 bool MtpDeviceInterfaceLinux::Init() { |
| 18 return true; |
| 19 } |
| 20 |
| 21 PlatformFileError MtpDeviceInterfaceLinux::GetFileInfo( |
| 22 const FilePath& file_path, |
| 23 PlatformFileInfo* file_info) { |
| 24 NOTIMPLEMENTED(); |
| 25 return base::PLATFORM_FILE_ERROR_SECURITY; |
| 26 } |
| 27 |
| 28 FileSystemFileUtil::AbstractFileEnumerator* |
| 29 MtpDeviceInterfaceLinux::CreateFileEnumerator( |
| 30 const FilePath& root, |
| 31 bool recursive) { |
| 32 NOTIMPLEMENTED(); |
| 33 return new FileSystemFileUtil::EmptyFileEnumerator(); |
| 34 } |
| 35 |
| 36 PlatformFileError MtpDeviceInterfaceLinux::Touch( |
| 37 const FilePath& file_path, |
| 38 const base::Time& last_access_time, |
| 39 const base::Time& last_modified_time) { |
| 40 NOTIMPLEMENTED(); |
| 41 return base::PLATFORM_FILE_ERROR_SECURITY; |
| 42 } |
| 43 |
| 44 bool MtpDeviceInterfaceLinux::PathExists(const FilePath& file_path) { |
| 45 NOTIMPLEMENTED(); |
| 46 return false; |
| 47 } |
| 48 |
| 49 bool MtpDeviceInterfaceLinux::DirectoryExists(const FilePath& file_path) { |
| 50 NOTIMPLEMENTED(); |
| 51 return false; |
| 52 } |
| 53 |
| 54 bool MtpDeviceInterfaceLinux::IsDirectoryEmpty(const FilePath& file_path) { |
| 55 NOTIMPLEMENTED(); |
| 56 return false; |
| 57 } |
| 58 |
| 59 } // namespace fileapi |
OLD | NEW |