| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_MAC_MTP_DEVICE_DELEGATE_IMPL_MAC_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_MAC_MTP_DEVICE_DELEGATE_IMPL_MAC_H_ |
| 6 #define CHROME_BROWSER_MEDIA_GALLERIES_MAC_MTP_DEVICE_DELEGATE_IMPL_MAC_H_ | 6 #define CHROME_BROWSER_MEDIA_GALLERIES_MAC_MTP_DEVICE_DELEGATE_IMPL_MAC_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 const base::FilePath& local_path, | 47 const base::FilePath& local_path, |
| 48 const CreateSnapshotFileSuccessCallback& success_callback, | 48 const CreateSnapshotFileSuccessCallback& success_callback, |
| 49 const ErrorCallback& error_callback) override; | 49 const ErrorCallback& error_callback) override; |
| 50 bool IsStreaming() override; | 50 bool IsStreaming() override; |
| 51 void ReadBytes(const base::FilePath& device_file_path, | 51 void ReadBytes(const base::FilePath& device_file_path, |
| 52 const scoped_refptr<net::IOBuffer>& buf, | 52 const scoped_refptr<net::IOBuffer>& buf, |
| 53 int64 offset, | 53 int64 offset, |
| 54 int buf_len, | 54 int buf_len, |
| 55 const ReadBytesSuccessCallback& success_callback, | 55 const ReadBytesSuccessCallback& success_callback, |
| 56 const ErrorCallback& error_callback) override; | 56 const ErrorCallback& error_callback) override; |
| 57 bool IsReadOnly() override; | 57 bool IsReadOnly() const override; |
| 58 void CopyFileFromLocal( | 58 void CopyFileFromLocal( |
| 59 const base::FilePath& source_file_path, | 59 const base::FilePath& source_file_path, |
| 60 const base::FilePath& device_file_path, | 60 const base::FilePath& device_file_path, |
| 61 const CopyFileFromLocalSuccessCallback& success_callback, | 61 const CopyFileFromLocalSuccessCallback& success_callback, |
| 62 const ErrorCallback& error_callback) override; | 62 const ErrorCallback& error_callback) override; |
| 63 void DeleteFile(const base::FilePath& file_path, |
| 64 const DeleteFileSuccessCallback& success_callback, |
| 65 const ErrorCallback& error_callback) override; |
| 66 void DeleteDirectory(const base::FilePath& file_path, |
| 67 const DeleteDirectorySuccessCallback& success_callback, |
| 68 const ErrorCallback& error_callback) override; |
| 63 void CancelPendingTasksAndDeleteDelegate() override; | 69 void CancelPendingTasksAndDeleteDelegate() override; |
| 64 | 70 |
| 65 // Forward delegates for ImageCaptureDeviceListener. These are | 71 // Forward delegates for ImageCaptureDeviceListener. These are |
| 66 // invoked in callbacks of the ImageCapture library on the UI thread. | 72 // invoked in callbacks of the ImageCapture library on the UI thread. |
| 67 virtual void ItemAdded(const std::string& name, | 73 virtual void ItemAdded(const std::string& name, |
| 68 const base::File::Info& info); | 74 const base::File::Info& info); |
| 69 virtual void NoMoreItems(); | 75 virtual void NoMoreItems(); |
| 70 virtual void DownloadedFile(const std::string& name, | 76 virtual void DownloadedFile(const std::string& name, |
| 71 base::File::Error error); | 77 base::File::Error error); |
| 72 | 78 |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 | 162 |
| 157 ReadFileTransactionList read_file_transactions_; | 163 ReadFileTransactionList read_file_transactions_; |
| 158 ReadDirTransactionList read_dir_transactions_; | 164 ReadDirTransactionList read_dir_transactions_; |
| 159 | 165 |
| 160 base::WeakPtrFactory<MTPDeviceDelegateImplMac> weak_factory_; | 166 base::WeakPtrFactory<MTPDeviceDelegateImplMac> weak_factory_; |
| 161 | 167 |
| 162 DISALLOW_COPY_AND_ASSIGN(MTPDeviceDelegateImplMac); | 168 DISALLOW_COPY_AND_ASSIGN(MTPDeviceDelegateImplMac); |
| 163 }; | 169 }; |
| 164 | 170 |
| 165 #endif // CHROME_BROWSER_MEDIA_GALLERIES_MAC_MTP_DEVICE_DELEGATE_IMPL_MAC_H_ | 171 #endif // CHROME_BROWSER_MEDIA_GALLERIES_MAC_MTP_DEVICE_DELEGATE_IMPL_MAC_H_ |
| OLD | NEW |