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_IPHOTO_FILE_UTIL_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_IPHOTO_FILE_UTIL_H_ |
6 #define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_IPHOTO_FILE_UTIL_H_ | 6 #define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_IPHOTO_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 30 matching lines...) Expand all Loading... |
41 const fileapi::FileSystemURL& url, | 41 const fileapi::FileSystemURL& url, |
42 const GetFileInfoCallback& callback) OVERRIDE; | 42 const GetFileInfoCallback& callback) OVERRIDE; |
43 virtual void ReadDirectoryOnTaskRunnerThread( | 43 virtual void ReadDirectoryOnTaskRunnerThread( |
44 scoped_ptr<fileapi::FileSystemOperationContext> context, | 44 scoped_ptr<fileapi::FileSystemOperationContext> context, |
45 const fileapi::FileSystemURL& url, | 45 const fileapi::FileSystemURL& url, |
46 const ReadDirectoryCallback& callback) OVERRIDE; | 46 const ReadDirectoryCallback& callback) OVERRIDE; |
47 virtual void CreateSnapshotFileOnTaskRunnerThread( | 47 virtual void CreateSnapshotFileOnTaskRunnerThread( |
48 scoped_ptr<fileapi::FileSystemOperationContext> context, | 48 scoped_ptr<fileapi::FileSystemOperationContext> context, |
49 const fileapi::FileSystemURL& url, | 49 const fileapi::FileSystemURL& url, |
50 const CreateSnapshotFileCallback& callback) OVERRIDE; | 50 const CreateSnapshotFileCallback& callback) OVERRIDE; |
51 virtual base::PlatformFileError GetFileInfoSync( | 51 virtual base::File::Error GetFileInfoSync( |
52 fileapi::FileSystemOperationContext* context, | 52 fileapi::FileSystemOperationContext* context, |
53 const fileapi::FileSystemURL& url, | 53 const fileapi::FileSystemURL& url, |
54 base::PlatformFileInfo* file_info, | 54 base::File::Info* file_info, |
55 base::FilePath* platform_path) OVERRIDE; | 55 base::FilePath* platform_path) OVERRIDE; |
56 virtual base::PlatformFileError ReadDirectorySync( | 56 virtual base::File::Error ReadDirectorySync( |
57 fileapi::FileSystemOperationContext* context, | 57 fileapi::FileSystemOperationContext* context, |
58 const fileapi::FileSystemURL& url, | 58 const fileapi::FileSystemURL& url, |
59 EntryList* file_list) OVERRIDE; | 59 EntryList* file_list) OVERRIDE; |
60 virtual base::PlatformFileError DeleteDirectorySync( | 60 virtual base::File::Error DeleteDirectorySync( |
61 fileapi::FileSystemOperationContext* context, | 61 fileapi::FileSystemOperationContext* context, |
62 const fileapi::FileSystemURL& url) OVERRIDE; | 62 const fileapi::FileSystemURL& url) OVERRIDE; |
63 virtual base::PlatformFileError DeleteFileSync( | 63 virtual base::File::Error DeleteFileSync( |
64 fileapi::FileSystemOperationContext* context, | 64 fileapi::FileSystemOperationContext* context, |
65 const fileapi::FileSystemURL& url) OVERRIDE; | 65 const fileapi::FileSystemURL& url) OVERRIDE; |
66 virtual base::PlatformFileError GetLocalFilePath( | 66 virtual base::File::Error GetLocalFilePath( |
67 fileapi::FileSystemOperationContext* context, | 67 fileapi::FileSystemOperationContext* context, |
68 const fileapi::FileSystemURL& url, | 68 const fileapi::FileSystemURL& url, |
69 base::FilePath* local_file_path) OVERRIDE; | 69 base::FilePath* local_file_path) OVERRIDE; |
70 | 70 |
71 private: | 71 private: |
72 void GetFileInfoWithFreshDataProvider( | 72 void GetFileInfoWithFreshDataProvider( |
73 scoped_ptr<fileapi::FileSystemOperationContext> context, | 73 scoped_ptr<fileapi::FileSystemOperationContext> context, |
74 const fileapi::FileSystemURL& url, | 74 const fileapi::FileSystemURL& url, |
75 const GetFileInfoCallback& callback, | 75 const GetFileInfoCallback& callback, |
76 bool valid_parse); | 76 bool valid_parse); |
(...skipping 13 matching lines...) Expand all Loading... |
90 base::WeakPtrFactory<IPhotoFileUtil> weak_factory_; | 90 base::WeakPtrFactory<IPhotoFileUtil> weak_factory_; |
91 | 91 |
92 ImportedMediaGalleryRegistry* imported_registry_; | 92 ImportedMediaGalleryRegistry* imported_registry_; |
93 | 93 |
94 DISALLOW_COPY_AND_ASSIGN(IPhotoFileUtil); | 94 DISALLOW_COPY_AND_ASSIGN(IPhotoFileUtil); |
95 }; | 95 }; |
96 | 96 |
97 } // namespace iphoto | 97 } // namespace iphoto |
98 | 98 |
99 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_IPHOTO_FILE_UTIL_H_ | 99 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_IPHOTO_FILE_UTIL_H_ |
OLD | NEW |