| 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 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_ITUNES_ITUNES_FILE_UTIL_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_ITUNES_ITUNES_FILE_UTIL_H_ |
| 6 #define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_ITUNES_ITUNES_FILE_UTIL_H_ | 6 #define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_ITUNES_ITUNES_FILE_UTIL_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/media_galleries/fileapi/native_media_file_util.h" | 8 #include "chrome/browser/media_galleries/fileapi/native_media_file_util.h" |
| 9 | 9 |
| 10 namespace itunes { | 10 namespace itunes { |
| 11 | 11 |
| 12 class ItunesFileUtil : public chrome::NativeMediaFileUtil { | 12 class ItunesFileUtil : public chrome::NativeMediaFileUtil { |
| 13 public: | 13 public: |
| 14 ItunesFileUtil(); | 14 ItunesFileUtil(); |
| 15 virtual ~ItunesFileUtil(); | 15 virtual ~ItunesFileUtil(); |
| 16 | 16 |
| 17 // Overrides from NativeMediaFileUtil | 17 private: |
| 18 virtual base::PlatformFileError GetFileInfo( | 18 // NativeMediaFileUtil overrides. |
| 19 virtual base::PlatformFileError GetFileInfoSync( |
| 19 fileapi::FileSystemOperationContext* context, | 20 fileapi::FileSystemOperationContext* context, |
| 20 const fileapi::FileSystemURL& url, | 21 const fileapi::FileSystemURL& url, |
| 21 base::PlatformFileInfo* file_info, | 22 base::PlatformFileInfo* file_info, |
| 22 base::FilePath* platform_path) OVERRIDE; | 23 base::FilePath* platform_path) OVERRIDE; |
| 23 | 24 virtual base::PlatformFileError ReadDirectorySync( |
| 24 // Paths are enumerated in lexicographical order. | |
| 25 virtual scoped_ptr<AbstractFileEnumerator> CreateFileEnumerator( | |
| 26 fileapi::FileSystemOperationContext* context, | 25 fileapi::FileSystemOperationContext* context, |
| 27 const fileapi::FileSystemURL& url) OVERRIDE; | 26 const fileapi::FileSystemURL& url, |
| 28 | 27 EntryList* file_list) OVERRIDE; |
| 29 virtual base::PlatformFileError GetLocalFilePath( | 28 virtual base::PlatformFileError GetLocalFilePath( |
| 30 fileapi::FileSystemOperationContext* context, | 29 fileapi::FileSystemOperationContext* context, |
| 31 const fileapi::FileSystemURL& url, | 30 const fileapi::FileSystemURL& url, |
| 32 base::FilePath* local_file_path) OVERRIDE; | 31 base::FilePath* local_file_path) OVERRIDE; |
| 33 | 32 |
| 34 private: | 33 private: |
| 35 DISALLOW_COPY_AND_ASSIGN(ItunesFileUtil); | 34 DISALLOW_COPY_AND_ASSIGN(ItunesFileUtil); |
| 36 }; | 35 }; |
| 37 | 36 |
| 38 } // namespace itunes | 37 } // namespace itunes |
| 39 | 38 |
| 40 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_ITUNES_ITUNES_FILE_UTIL_H_ | 39 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_ITUNES_ITUNES_FILE_UTIL_H_ |
| 41 | 40 |
| OLD | NEW |