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; |
| 58 void CopyFileFromLocal( |
| 59 const base::FilePath& source_file_path, |
| 60 const base::FilePath& device_file_path, |
| 61 const CopyFileFromLocalSuccessCallback& success_callback, |
| 62 const ErrorCallback& error_callback) override; |
57 void CancelPendingTasksAndDeleteDelegate() override; | 63 void CancelPendingTasksAndDeleteDelegate() override; |
58 | 64 |
59 // Forward delegates for ImageCaptureDeviceListener. These are | 65 // Forward delegates for ImageCaptureDeviceListener. These are |
60 // invoked in callbacks of the ImageCapture library on the UI thread. | 66 // invoked in callbacks of the ImageCapture library on the UI thread. |
61 virtual void ItemAdded(const std::string& name, | 67 virtual void ItemAdded(const std::string& name, |
62 const base::File::Info& info); | 68 const base::File::Info& info); |
63 virtual void NoMoreItems(); | 69 virtual void NoMoreItems(); |
64 virtual void DownloadedFile(const std::string& name, | 70 virtual void DownloadedFile(const std::string& name, |
65 base::File::Error error); | 71 base::File::Error error); |
66 | 72 |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 | 156 |
151 ReadFileTransactionList read_file_transactions_; | 157 ReadFileTransactionList read_file_transactions_; |
152 ReadDirTransactionList read_dir_transactions_; | 158 ReadDirTransactionList read_dir_transactions_; |
153 | 159 |
154 base::WeakPtrFactory<MTPDeviceDelegateImplMac> weak_factory_; | 160 base::WeakPtrFactory<MTPDeviceDelegateImplMac> weak_factory_; |
155 | 161 |
156 DISALLOW_COPY_AND_ASSIGN(MTPDeviceDelegateImplMac); | 162 DISALLOW_COPY_AND_ASSIGN(MTPDeviceDelegateImplMac); |
157 }; | 163 }; |
158 | 164 |
159 #endif // CHROME_BROWSER_MEDIA_GALLERIES_MAC_MTP_DEVICE_DELEGATE_IMPL_MAC_H_ | 165 #endif // CHROME_BROWSER_MEDIA_GALLERIES_MAC_MTP_DEVICE_DELEGATE_IMPL_MAC_H_ |
OLD | NEW |