| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/media_galleries/fileapi/itunes/itunes_file_util.h" | 5 #include "chrome/browser/media_galleries/fileapi/itunes/itunes_file_util.h" |
| 6 | 6 |
| 7 #include "webkit/browser/fileapi/file_system_file_util.h" | 7 #include "webkit/browser/fileapi/file_system_file_util.h" |
| 8 #include "webkit/browser/fileapi/file_system_operation_context.h" | 8 #include "webkit/browser/fileapi/file_system_operation_context.h" |
| 9 #include "webkit/browser/fileapi/file_system_url.h" | 9 #include "webkit/browser/fileapi/file_system_url.h" |
| 10 #include "webkit/common/fileapi/file_system_util.h" | 10 #include "webkit/common/fileapi/file_system_util.h" |
| 11 | 11 |
| 12 namespace itunes { | 12 namespace itunes { |
| 13 | 13 |
| 14 ItunesFileUtil::ItunesFileUtil() {} | 14 ItunesFileUtil::ItunesFileUtil() {} |
| 15 | 15 |
| 16 ItunesFileUtil::~ItunesFileUtil() {} | 16 ItunesFileUtil::~ItunesFileUtil() {} |
| 17 | 17 |
| 18 base::PlatformFileError ItunesFileUtil::GetFileInfo( | 18 base::PlatformFileError ItunesFileUtil::GetFileInfoSync( |
| 19 fileapi::FileSystemOperationContext* context, | 19 fileapi::FileSystemOperationContext* context, |
| 20 const fileapi::FileSystemURL& url, | 20 const fileapi::FileSystemURL& url, |
| 21 base::PlatformFileInfo* file_info, | 21 base::PlatformFileInfo* file_info, |
| 22 base::FilePath* platform_path) { | 22 base::FilePath* platform_path) { |
| 23 return base::PLATFORM_FILE_ERROR_NOT_FOUND; | 23 return base::PLATFORM_FILE_ERROR_NOT_FOUND; |
| 24 } | 24 } |
| 25 | 25 |
| 26 scoped_ptr<fileapi::FileSystemFileUtil::AbstractFileEnumerator> | 26 base::PlatformFileError ItunesFileUtil::ReadDirectorySync( |
| 27 ItunesFileUtil::CreateFileEnumerator( | |
| 28 fileapi::FileSystemOperationContext* context, | 27 fileapi::FileSystemOperationContext* context, |
| 29 const fileapi::FileSystemURL& url) { | 28 const fileapi::FileSystemURL& url, |
| 29 EntryList* file_list) { |
| 30 DCHECK(context); | 30 DCHECK(context); |
| 31 DCHECK(file_list); |
| 32 DCHECK(file_list->empty()); |
| 31 | 33 |
| 32 return scoped_ptr<fileapi::FileSystemFileUtil::AbstractFileEnumerator>( | 34 return base::PLATFORM_FILE_OK; |
| 33 new fileapi::FileSystemFileUtil::EmptyFileEnumerator); | |
| 34 } | 35 } |
| 35 | 36 |
| 36 base::PlatformFileError ItunesFileUtil::GetLocalFilePath( | 37 base::PlatformFileError ItunesFileUtil::GetLocalFilePath( |
| 37 fileapi::FileSystemOperationContext* context, | 38 fileapi::FileSystemOperationContext* context, |
| 38 const fileapi::FileSystemURL& url, | 39 const fileapi::FileSystemURL& url, |
| 39 base::FilePath* local_file_path) { | 40 base::FilePath* local_file_path) { |
| 40 DCHECK(local_file_path); | 41 DCHECK(local_file_path); |
| 41 DCHECK(url.is_valid()); | 42 DCHECK(url.is_valid()); |
| 42 | 43 |
| 43 NOTREACHED(); | 44 NOTREACHED(); |
| 44 return base::PLATFORM_FILE_ERROR_INVALID_OPERATION; | 45 return base::PLATFORM_FILE_ERROR_INVALID_OPERATION; |
| 45 } | 46 } |
| 46 | 47 |
| 47 } // namespace itunes | 48 } // namespace itunes |
| OLD | NEW |