Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2401)

Unified Diff: chrome/browser/media_galleries/fileapi/itunes/itunes_file_util.h

Issue 16158004: iTunes file util and data provider for media galleries (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Undo incorrect fix Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
};

Powered by Google App Engine
This is Rietveld 408576698