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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 const ReadDirectorySuccessCallback& success_callback, | 43 const ReadDirectorySuccessCallback& success_callback, |
44 const ErrorCallback& error_callback) OVERRIDE; | 44 const ErrorCallback& error_callback) OVERRIDE; |
45 | 45 |
46 // Note: passed absolute paths. | 46 // Note: passed absolute paths. |
47 virtual void CreateSnapshotFile( | 47 virtual void CreateSnapshotFile( |
48 const base::FilePath& device_file_path, | 48 const base::FilePath& device_file_path, |
49 const base::FilePath& local_path, | 49 const base::FilePath& local_path, |
50 const CreateSnapshotFileSuccessCallback& success_callback, | 50 const CreateSnapshotFileSuccessCallback& success_callback, |
51 const ErrorCallback& error_callback) OVERRIDE; | 51 const ErrorCallback& error_callback) OVERRIDE; |
52 virtual bool IsStreaming() OVERRIDE; | 52 virtual bool IsStreaming() OVERRIDE; |
53 virtual void ReadBytes( | 53 virtual void ReadBytes(const base::FilePath& device_file_path, |
54 const base::FilePath& device_file_path, | 54 const scoped_refptr<net::IOBuffer>& buf, |
55 net::IOBuffer* buf, int64 offset, int buf_len, | 55 int64 offset, |
56 const ReadBytesSuccessCallback& success_callback, | 56 int buf_len, |
57 const ErrorCallback& error_callback) OVERRIDE; | 57 const ReadBytesSuccessCallback& success_callback, |
| 58 const ErrorCallback& error_callback) OVERRIDE; |
58 virtual void CancelPendingTasksAndDeleteDelegate() OVERRIDE; | 59 virtual void CancelPendingTasksAndDeleteDelegate() OVERRIDE; |
59 | 60 |
60 // Forward delegates for ImageCaptureDeviceListener. These are | 61 // Forward delegates for ImageCaptureDeviceListener. These are |
61 // invoked in callbacks of the ImageCapture library on the UI thread. | 62 // invoked in callbacks of the ImageCapture library on the UI thread. |
62 virtual void ItemAdded(const std::string& name, | 63 virtual void ItemAdded(const std::string& name, |
63 const base::File::Info& info); | 64 const base::File::Info& info); |
64 virtual void NoMoreItems(); | 65 virtual void NoMoreItems(); |
65 virtual void DownloadedFile(const std::string& name, | 66 virtual void DownloadedFile(const std::string& name, |
66 base::File::Error error); | 67 base::File::Error error); |
67 | 68 |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 | 152 |
152 ReadFileTransactionList read_file_transactions_; | 153 ReadFileTransactionList read_file_transactions_; |
153 ReadDirTransactionList read_dir_transactions_; | 154 ReadDirTransactionList read_dir_transactions_; |
154 | 155 |
155 base::WeakPtrFactory<MTPDeviceDelegateImplMac> weak_factory_; | 156 base::WeakPtrFactory<MTPDeviceDelegateImplMac> weak_factory_; |
156 | 157 |
157 DISALLOW_COPY_AND_ASSIGN(MTPDeviceDelegateImplMac); | 158 DISALLOW_COPY_AND_ASSIGN(MTPDeviceDelegateImplMac); |
158 }; | 159 }; |
159 | 160 |
160 #endif // CHROME_BROWSER_MEDIA_GALLERIES_MAC_MTP_DEVICE_DELEGATE_IMPL_MAC_H_ | 161 #endif // CHROME_BROWSER_MEDIA_GALLERIES_MAC_MTP_DEVICE_DELEGATE_IMPL_MAC_H_ |
OLD | NEW |