| 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_FILE_UTIL_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_ITUNES_FILE_UTIL_H_ |
| 6 #define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_ITUNES_FILE_UTIL_H_ | 6 #define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_ITUNES_FILE_UTIL_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "chrome/browser/media_galleries/fileapi/native_media_file_util.h" | 10 #include "chrome/browser/media_galleries/fileapi/native_media_file_util.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 const fileapi::FileSystemURL& url, | 32 const fileapi::FileSystemURL& url, |
| 33 const GetFileInfoCallback& callback) OVERRIDE; | 33 const GetFileInfoCallback& callback) OVERRIDE; |
| 34 virtual void ReadDirectoryOnTaskRunnerThread( | 34 virtual void ReadDirectoryOnTaskRunnerThread( |
| 35 scoped_ptr<fileapi::FileSystemOperationContext> context, | 35 scoped_ptr<fileapi::FileSystemOperationContext> context, |
| 36 const fileapi::FileSystemURL& url, | 36 const fileapi::FileSystemURL& url, |
| 37 const ReadDirectoryCallback& callback) OVERRIDE; | 37 const ReadDirectoryCallback& callback) OVERRIDE; |
| 38 virtual void CreateSnapshotFileOnTaskRunnerThread( | 38 virtual void CreateSnapshotFileOnTaskRunnerThread( |
| 39 scoped_ptr<fileapi::FileSystemOperationContext> context, | 39 scoped_ptr<fileapi::FileSystemOperationContext> context, |
| 40 const fileapi::FileSystemURL& url, | 40 const fileapi::FileSystemURL& url, |
| 41 const CreateSnapshotFileCallback& callback) OVERRIDE; | 41 const CreateSnapshotFileCallback& callback) OVERRIDE; |
| 42 virtual base::PlatformFileError GetFileInfoSync( | 42 virtual base::File::Error GetFileInfoSync( |
| 43 fileapi::FileSystemOperationContext* context, | 43 fileapi::FileSystemOperationContext* context, |
| 44 const fileapi::FileSystemURL& url, | 44 const fileapi::FileSystemURL& url, |
| 45 base::PlatformFileInfo* file_info, | 45 base::File::Info* file_info, |
| 46 base::FilePath* platform_path) OVERRIDE; | 46 base::FilePath* platform_path) OVERRIDE; |
| 47 virtual base::PlatformFileError ReadDirectorySync( | 47 virtual base::File::Error ReadDirectorySync( |
| 48 fileapi::FileSystemOperationContext* context, | 48 fileapi::FileSystemOperationContext* context, |
| 49 const fileapi::FileSystemURL& url, | 49 const fileapi::FileSystemURL& url, |
| 50 EntryList* file_list) OVERRIDE; | 50 EntryList* file_list) OVERRIDE; |
| 51 virtual base::PlatformFileError DeleteDirectorySync( | 51 virtual base::File::Error DeleteDirectorySync( |
| 52 fileapi::FileSystemOperationContext* context, | 52 fileapi::FileSystemOperationContext* context, |
| 53 const fileapi::FileSystemURL& url) OVERRIDE; | 53 const fileapi::FileSystemURL& url) OVERRIDE; |
| 54 virtual base::PlatformFileError DeleteFileSync( | 54 virtual base::File::Error DeleteFileSync( |
| 55 fileapi::FileSystemOperationContext* context, | 55 fileapi::FileSystemOperationContext* context, |
| 56 const fileapi::FileSystemURL& url) OVERRIDE; | 56 const fileapi::FileSystemURL& url) OVERRIDE; |
| 57 virtual base::PlatformFileError CreateSnapshotFileSync( | 57 virtual base::File::Error CreateSnapshotFileSync( |
| 58 fileapi::FileSystemOperationContext* context, | 58 fileapi::FileSystemOperationContext* context, |
| 59 const fileapi::FileSystemURL& url, | 59 const fileapi::FileSystemURL& url, |
| 60 base::PlatformFileInfo* file_info, | 60 base::File::Info* file_info, |
| 61 base::FilePath* platform_path, | 61 base::FilePath* platform_path, |
| 62 scoped_refptr<webkit_blob::ShareableFileReference>* file_ref) OVERRIDE; | 62 scoped_refptr<webkit_blob::ShareableFileReference>* file_ref) OVERRIDE; |
| 63 virtual base::PlatformFileError GetLocalFilePath( | 63 virtual base::File::Error GetLocalFilePath( |
| 64 fileapi::FileSystemOperationContext* context, | 64 fileapi::FileSystemOperationContext* context, |
| 65 const fileapi::FileSystemURL& url, | 65 const fileapi::FileSystemURL& url, |
| 66 base::FilePath* local_file_path) OVERRIDE; | 66 base::FilePath* local_file_path) OVERRIDE; |
| 67 | 67 |
| 68 private: | 68 private: |
| 69 void GetFileInfoWithFreshDataProvider( | 69 void GetFileInfoWithFreshDataProvider( |
| 70 scoped_ptr<fileapi::FileSystemOperationContext> context, | 70 scoped_ptr<fileapi::FileSystemOperationContext> context, |
| 71 const fileapi::FileSystemURL& url, | 71 const fileapi::FileSystemURL& url, |
| 72 const GetFileInfoCallback& callback, | 72 const GetFileInfoCallback& callback, |
| 73 bool valid_parse); | 73 bool valid_parse); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 87 base::WeakPtrFactory<ITunesFileUtil> weak_factory_; | 87 base::WeakPtrFactory<ITunesFileUtil> weak_factory_; |
| 88 | 88 |
| 89 ImportedMediaGalleryRegistry* imported_registry_; | 89 ImportedMediaGalleryRegistry* imported_registry_; |
| 90 | 90 |
| 91 DISALLOW_COPY_AND_ASSIGN(ITunesFileUtil); | 91 DISALLOW_COPY_AND_ASSIGN(ITunesFileUtil); |
| 92 }; | 92 }; |
| 93 | 93 |
| 94 } // namespace itunes | 94 } // namespace itunes |
| 95 | 95 |
| 96 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_ITUNES_FILE_UTIL_H_ | 96 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_ITUNES_FILE_UTIL_H_ |
| OLD | NEW |