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 DEVICE_MEDIA_TRANSFER_PROTOCOL_MEDIA_TRANSFER_PROTOCOL_MANAGER_H_ | 5 #ifndef DEVICE_MEDIA_TRANSFER_PROTOCOL_MEDIA_TRANSFER_PROTOCOL_MANAGER_H_ |
6 #define DEVICE_MEDIA_TRANSFER_PROTOCOL_MEDIA_TRANSFER_PROTOCOL_MANAGER_H_ | 6 #define DEVICE_MEDIA_TRANSFER_PROTOCOL_MEDIA_TRANSFER_PROTOCOL_MANAGER_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 | 169 |
170 // Deletes |object_id|. | 170 // Deletes |object_id|. |
171 virtual void DeleteObject(const std::string& storage_handle, | 171 virtual void DeleteObject(const std::string& storage_handle, |
172 const uint32_t object_id, | 172 const uint32_t object_id, |
173 const DeleteObjectCallback& callback) = 0; | 173 const DeleteObjectCallback& callback) = 0; |
174 | 174 |
175 // Creates and returns the global MediaTransferProtocolManager instance. | 175 // Creates and returns the global MediaTransferProtocolManager instance. |
176 // On Linux, |task_runner| specifies the task runner to process asynchronous | 176 // On Linux, |task_runner| specifies the task runner to process asynchronous |
177 // operations. | 177 // operations. |
178 // On ChromeOS, |task_runner| should just be set to NULL because ChromeOS | 178 // On ChromeOS, |task_runner| should just be set to NULL because ChromeOS |
179 // already has a dedicated message loop proxy. | 179 // already has a dedicated task runner. |
180 static MediaTransferProtocolManager* Initialize( | 180 static MediaTransferProtocolManager* Initialize( |
181 scoped_refptr<base::SequencedTaskRunner> task_runner); | 181 scoped_refptr<base::SequencedTaskRunner> task_runner); |
182 }; | 182 }; |
183 | 183 |
184 } // namespace device | 184 } // namespace device |
185 | 185 |
186 #endif // DEVICE_MEDIA_TRANSFER_PROTOCOL_MEDIA_TRANSFER_PROTOCOL_MANAGER_H_ | 186 #endif // DEVICE_MEDIA_TRANSFER_PROTOCOL_MEDIA_TRANSFER_PROTOCOL_MANAGER_H_ |
OLD | NEW |