| 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_WIN_MTP_DEVICE_DELEGATE_IMPL_WIN_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_WIN_MTP_DEVICE_DELEGATE_IMPL_WIN_H_ |
| 6 #define CHROME_BROWSER_MEDIA_GALLERIES_WIN_MTP_DEVICE_DELEGATE_IMPL_WIN_H_ | 6 #define CHROME_BROWSER_MEDIA_GALLERIES_WIN_MTP_DEVICE_DELEGATE_IMPL_WIN_H_ |
| 7 | 7 |
| 8 #include <queue> | 8 #include <queue> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 // Called when ReadDirectory() completes. |file_list| contains the directory | 152 // Called when ReadDirectory() completes. |file_list| contains the directory |
| 153 // file entries information. |error| specifies the platform file error code. | 153 // file entries information. |error| specifies the platform file error code. |
| 154 // | 154 // |
| 155 // If the ReadDirectory() succeeds, |success_callback| is invoked to notify | 155 // If the ReadDirectory() succeeds, |success_callback| is invoked to notify |
| 156 // the caller about the directory file entries. | 156 // the caller about the directory file entries. |
| 157 // | 157 // |
| 158 // If the ReadDirectory() fails, |file_list| is not set and |error_callback| | 158 // If the ReadDirectory() fails, |file_list| is not set and |error_callback| |
| 159 // is invoked to notify the caller about the platform file |error|. | 159 // is invoked to notify the caller about the platform file |error|. |
| 160 void OnDidReadDirectory(const ReadDirectorySuccessCallback& success_callback, | 160 void OnDidReadDirectory(const ReadDirectorySuccessCallback& success_callback, |
| 161 const ErrorCallback& error_callback, | 161 const ErrorCallback& error_callback, |
| 162 fileapi::AsyncFileUtil::EntryList* file_list, | 162 storage::AsyncFileUtil::EntryList* file_list, |
| 163 base::File::Error error); | 163 base::File::Error error); |
| 164 | 164 |
| 165 // Called when the get file stream request completes. | 165 // Called when the get file stream request completes. |
| 166 // |file_details.request_info| contains the CreateSnapshot request param | 166 // |file_details.request_info| contains the CreateSnapshot request param |
| 167 // details. |error| specifies the platform file error code. | 167 // details. |error| specifies the platform file error code. |
| 168 // | 168 // |
| 169 // If the file stream of the device file is successfully | 169 // If the file stream of the device file is successfully |
| 170 // fetched, |file_details| will contain the required details for the creation | 170 // fetched, |file_details| will contain the required details for the creation |
| 171 // of the snapshot file. | 171 // of the snapshot file. |
| 172 // | 172 // |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 // Used to make sure only one task is in progress at any time. | 213 // Used to make sure only one task is in progress at any time. |
| 214 bool task_in_progress_; | 214 bool task_in_progress_; |
| 215 | 215 |
| 216 // For callbacks that may run after destruction. | 216 // For callbacks that may run after destruction. |
| 217 base::WeakPtrFactory<MTPDeviceDelegateImplWin> weak_ptr_factory_; | 217 base::WeakPtrFactory<MTPDeviceDelegateImplWin> weak_ptr_factory_; |
| 218 | 218 |
| 219 DISALLOW_COPY_AND_ASSIGN(MTPDeviceDelegateImplWin); | 219 DISALLOW_COPY_AND_ASSIGN(MTPDeviceDelegateImplWin); |
| 220 }; | 220 }; |
| 221 | 221 |
| 222 #endif // CHROME_BROWSER_MEDIA_GALLERIES_WIN_MTP_DEVICE_DELEGATE_IMPL_WIN_H_ | 222 #endif // CHROME_BROWSER_MEDIA_GALLERIES_WIN_MTP_DEVICE_DELEGATE_IMPL_WIN_H_ |
| OLD | NEW |