| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_STORAGE_MONITOR_TEST_MEDIA_TRANSFER_PROTOCOL_MANAGER_LINUX_H_ | 5 #ifndef COMPONENTS_STORAGE_MONITOR_TEST_MEDIA_TRANSFER_PROTOCOL_MANAGER_LINUX_H_ |
| 6 #define COMPONENTS_STORAGE_MONITOR_TEST_MEDIA_TRANSFER_PROTOCOL_MANAGER_LINUX_H_ | 6 #define COMPONENTS_STORAGE_MONITOR_TEST_MEDIA_TRANSFER_PROTOCOL_MANAGER_LINUX_H_ |
| 7 | 7 |
| 8 #include "device/media_transfer_protocol/media_transfer_protocol_manager.h" | 8 #include "device/media_transfer_protocol/media_transfer_protocol_manager.h" |
| 9 | 9 |
| 10 namespace storage_monitor { | 10 namespace storage_monitor { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 void RemoveObserver(Observer* observer) override; | 22 void RemoveObserver(Observer* observer) override; |
| 23 const std::vector<std::string> GetStorages() const override; | 23 const std::vector<std::string> GetStorages() const override; |
| 24 const MtpStorageInfo* GetStorageInfo( | 24 const MtpStorageInfo* GetStorageInfo( |
| 25 const std::string& storage_name) const override; | 25 const std::string& storage_name) const override; |
| 26 void OpenStorage(const std::string& storage_name, | 26 void OpenStorage(const std::string& storage_name, |
| 27 const std::string& mode, | 27 const std::string& mode, |
| 28 const OpenStorageCallback& callback) override; | 28 const OpenStorageCallback& callback) override; |
| 29 void CloseStorage(const std::string& storage_handle, | 29 void CloseStorage(const std::string& storage_handle, |
| 30 const CloseStorageCallback& callback) override; | 30 const CloseStorageCallback& callback) override; |
| 31 void ReadDirectory(const std::string& storage_handle, | 31 void ReadDirectory(const std::string& storage_handle, |
| 32 uint32 file_id, | 32 const uint32 file_id, |
| 33 const size_t max_size, |
| 33 const ReadDirectoryCallback& callback) override; | 34 const ReadDirectoryCallback& callback) override; |
| 34 void ReadFileChunk(const std::string& storage_handle, | 35 void ReadFileChunk(const std::string& storage_handle, |
| 35 uint32 file_id, | 36 uint32 file_id, |
| 36 uint32 offset, | 37 uint32 offset, |
| 37 uint32 count, | 38 uint32 count, |
| 38 const ReadFileCallback& callback) override; | 39 const ReadFileCallback& callback) override; |
| 39 void GetFileInfo(const std::string& storage_handle, | 40 void GetFileInfo(const std::string& storage_handle, |
| 40 uint32 file_id, | 41 uint32 file_id, |
| 41 const GetFileInfoCallback& callback) override; | 42 const GetFileInfoCallback& callback) override; |
| 42 void CopyFileFromLocal(const std::string& storage_handle, | 43 void CopyFileFromLocal(const std::string& storage_handle, |
| 43 const int source_file_descriptor, | 44 const int source_file_descriptor, |
| 44 const uint32 parent_id, | 45 const uint32 parent_id, |
| 45 const std::string& file_name, | 46 const std::string& file_name, |
| 46 const CopyFileFromLocalCallback& callback) override; | 47 const CopyFileFromLocalCallback& callback) override; |
| 48 void DeleteObject(const std::string& storage_handle, |
| 49 const uint32 object_id, |
| 50 const DeleteObjectCallback& callback) override; |
| 47 | 51 |
| 48 DISALLOW_COPY_AND_ASSIGN(TestMediaTransferProtocolManagerLinux); | 52 DISALLOW_COPY_AND_ASSIGN(TestMediaTransferProtocolManagerLinux); |
| 49 }; | 53 }; |
| 50 | 54 |
| 51 } // namespace storage_monitor | 55 } // namespace storage_monitor |
| 52 | 56 |
| 53 #endif // COMPONENTS_STORAGE_MONITOR_TEST_MEDIA_TRANSFER_PROTOCOL_MANAGER_LINUX
_H_ | 57 #endif // COMPONENTS_STORAGE_MONITOR_TEST_MEDIA_TRANSFER_PROTOCOL_MANAGER_LINUX
_H_ |
| OLD | NEW |