Index: chrome/browser/media_galleries/fileapi/itunes/itunes_file_util.h |
diff --git a/chrome/browser/media_galleries/fileapi/itunes/itunes_file_util.h b/chrome/browser/media_galleries/fileapi/itunes/itunes_file_util.h |
index be186252841e5c26962143a2ac1b3af3cfaae53b..f40647c2caa1a99db97c5c26717f6ba38d623c78 100644 |
--- a/chrome/browser/media_galleries/fileapi/itunes/itunes_file_util.h |
+++ b/chrome/browser/media_galleries/fileapi/itunes/itunes_file_util.h |
@@ -5,17 +5,32 @@ |
#ifndef CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_ITUNES_ITUNES_FILE_UTIL_H_ |
#define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_ITUNES_ITUNES_FILE_UTIL_H_ |
+#include "base/memory/weak_ptr.h" |
#include "chrome/browser/media_galleries/fileapi/native_media_file_util.h" |
+namespace chrome { |
+class ImportedMediaGalleryRegistry; |
+} |
+ |
namespace itunes { |
+class ITunesDataProvider; |
+ |
class ItunesFileUtil : public chrome::NativeMediaFileUtil { |
public: |
ItunesFileUtil(); |
virtual ~ItunesFileUtil(); |
- private: |
+ protected: |
// NativeMediaFileUtil overrides. |
+ virtual void GetFileInfoOnTaskRunnerThread( |
+ fileapi::FileSystemOperationContext* context, |
+ const fileapi::FileSystemURL& url, |
+ const GetFileInfoCallback& callback) OVERRIDE; |
+ virtual void ReadDirectoryOnTaskRunnerThread( |
+ fileapi::FileSystemOperationContext* context, |
+ const fileapi::FileSystemURL& url, |
+ const ReadDirectoryCallback& callback) OVERRIDE; |
virtual base::PlatformFileError GetFileInfoSync( |
fileapi::FileSystemOperationContext* context, |
const fileapi::FileSystemURL& url, |
@@ -31,6 +46,21 @@ class ItunesFileUtil : public chrome::NativeMediaFileUtil { |
base::FilePath* local_file_path) OVERRIDE; |
private: |
+ void GetFileInfoWithFreshDataProvider( |
+ fileapi::FileSystemOperationContext* context, |
+ const fileapi::FileSystemURL& url, |
+ const GetFileInfoCallback& callback); |
+ void ReadDirectoryWithFreshDataProvider( |
+ fileapi::FileSystemOperationContext* context, |
+ const fileapi::FileSystemURL& url, |
+ const ReadDirectoryCallback& callback); |
+ |
+ ITunesDataProvider* GetDataProvider(); |
+ |
+ base::WeakPtrFactory<ItunesFileUtil> weak_factory_; |
+ |
+ chrome::ImportedMediaGalleryRegistry* imported_registry_; |
+ |
DISALLOW_COPY_AND_ASSIGN(ItunesFileUtil); |
}; |