| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_DEVICE_MEDIA_ASYNC_FILE_UTIL_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_DEVICE_MEDIA_ASYNC_FILE_UTIL_H_ |
| 6 #define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_DEVICE_MEDIA_ASYNC_FILE_UTIL_H_ | 6 #define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_DEVICE_MEDIA_ASYNC_FILE_UTIL_H_ |
| 7 | 7 |
| 8 #include "base/files/file.h" | 8 #include "base/files/file.h" |
| 9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 void OnDidReadDirectory( | 138 void OnDidReadDirectory( |
| 139 base::SequencedTaskRunner* task_runner, | 139 base::SequencedTaskRunner* task_runner, |
| 140 const ReadDirectoryCallback& callback, | 140 const ReadDirectoryCallback& callback, |
| 141 const EntryList& file_list, | 141 const EntryList& file_list, |
| 142 bool has_more); | 142 bool has_more); |
| 143 | 143 |
| 144 // Called when CopyInForeignFile method call succeeds. |callback| is invoked | 144 // Called when CopyInForeignFile method call succeeds. |callback| is invoked |
| 145 // to complete the CopyInForeignFile request. | 145 // to complete the CopyInForeignFile request. |
| 146 void OnDidCopyInForeignFile(const StatusCallback& callback); | 146 void OnDidCopyInForeignFile(const StatusCallback& callback); |
| 147 | 147 |
| 148 // Called when DeleteFile method call succeeeds. |callback| is invoked to |
| 149 // complete the DeleteFile request. |
| 150 void OnDidDeleteFile(const StatusCallback& callback); |
| 151 |
| 152 // Called when DeleteDirectory method call succeeds. |callback| is invoked to |
| 153 // complete the DeleteDirectory request. |
| 154 void OnDidDeleteDirectory(const StatusCallback& callback); |
| 155 |
| 148 bool validate_media_files() const; | 156 bool validate_media_files() const; |
| 149 | 157 |
| 150 // Profile path. | 158 // Profile path. |
| 151 const base::FilePath profile_path_; | 159 const base::FilePath profile_path_; |
| 152 | 160 |
| 153 scoped_refptr<MediaPathFilterWrapper> media_path_filter_wrapper_; | 161 scoped_refptr<MediaPathFilterWrapper> media_path_filter_wrapper_; |
| 154 | 162 |
| 155 // For callbacks that may run after destruction. | 163 // For callbacks that may run after destruction. |
| 156 base::WeakPtrFactory<DeviceMediaAsyncFileUtil> weak_ptr_factory_; | 164 base::WeakPtrFactory<DeviceMediaAsyncFileUtil> weak_ptr_factory_; |
| 157 | 165 |
| 158 DISALLOW_COPY_AND_ASSIGN(DeviceMediaAsyncFileUtil); | 166 DISALLOW_COPY_AND_ASSIGN(DeviceMediaAsyncFileUtil); |
| 159 }; | 167 }; |
| 160 | 168 |
| 161 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_DEVICE_MEDIA_ASYNC_FILE_UTIL_H
_ | 169 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_DEVICE_MEDIA_ASYNC_FILE_UTIL_H
_ |
| OLD | NEW |