| 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 10 matching lines...) Expand all Loading... |
| 21 virtual void AddObserver(Observer* observer) OVERRIDE; | 21 virtual void AddObserver(Observer* observer) OVERRIDE; |
| 22 virtual void RemoveObserver(Observer* observer) OVERRIDE; | 22 virtual void RemoveObserver(Observer* observer) OVERRIDE; |
| 23 virtual const std::vector<std::string> GetStorages() const OVERRIDE; | 23 virtual const std::vector<std::string> GetStorages() const OVERRIDE; |
| 24 virtual const MtpStorageInfo* GetStorageInfo( | 24 virtual const MtpStorageInfo* GetStorageInfo( |
| 25 const std::string& storage_name) const OVERRIDE; | 25 const std::string& storage_name) const OVERRIDE; |
| 26 virtual void OpenStorage(const std::string& storage_name, | 26 virtual 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 virtual void CloseStorage(const std::string& storage_handle, | 29 virtual void CloseStorage(const std::string& storage_handle, |
| 30 const CloseStorageCallback& callback) OVERRIDE; | 30 const CloseStorageCallback& callback) OVERRIDE; |
| 31 virtual void ReadDirectoryByPath( | |
| 32 const std::string& storage_handle, | |
| 33 const std::string& path, | |
| 34 const ReadDirectoryCallback& callback) OVERRIDE; | |
| 35 virtual void ReadDirectoryById( | 31 virtual void ReadDirectoryById( |
| 36 const std::string& storage_handle, | 32 const std::string& storage_handle, |
| 37 uint32 file_id, | 33 uint32 file_id, |
| 38 const ReadDirectoryCallback& callback) OVERRIDE; | 34 const ReadDirectoryCallback& callback) OVERRIDE; |
| 39 virtual void ReadFileChunkByPath(const std::string& storage_handle, | |
| 40 const std::string& path, | |
| 41 uint32 offset, | |
| 42 uint32 count, | |
| 43 const ReadFileCallback& callback) OVERRIDE; | |
| 44 virtual void ReadFileChunkById(const std::string& storage_handle, | 35 virtual void ReadFileChunkById(const std::string& storage_handle, |
| 45 uint32 file_id, | 36 uint32 file_id, |
| 46 uint32 offset, | 37 uint32 offset, |
| 47 uint32 count, | 38 uint32 count, |
| 48 const ReadFileCallback& callback) OVERRIDE; | 39 const ReadFileCallback& callback) OVERRIDE; |
| 49 virtual void GetFileInfoByPath(const std::string& storage_handle, | |
| 50 const std::string& path, | |
| 51 const GetFileInfoCallback& callback) OVERRIDE; | |
| 52 virtual void GetFileInfoById(const std::string& storage_handle, | 40 virtual void GetFileInfoById(const std::string& storage_handle, |
| 53 uint32 file_id, | 41 uint32 file_id, |
| 54 const GetFileInfoCallback& callback) OVERRIDE; | 42 const GetFileInfoCallback& callback) OVERRIDE; |
| 55 | 43 |
| 56 DISALLOW_COPY_AND_ASSIGN(TestMediaTransferProtocolManagerLinux); | 44 DISALLOW_COPY_AND_ASSIGN(TestMediaTransferProtocolManagerLinux); |
| 57 }; | 45 }; |
| 58 | 46 |
| 59 } // namespace storage_monitor | 47 } // namespace storage_monitor |
| 60 | 48 |
| 61 #endif // COMPONENTS_STORAGE_MONITOR_TEST_MEDIA_TRANSFER_PROTOCOL_MANAGER_LINUX
_H_ | 49 #endif // COMPONENTS_STORAGE_MONITOR_TEST_MEDIA_TRANSFER_PROTOCOL_MANAGER_LINUX
_H_ |
| OLD | NEW |