Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(313)

Side by Side Diff: components/storage_monitor/test_media_transfer_protocol_manager_chromeos.h

Issue 2358493002: Remove MTP support on Linux. (Closed)
Patch Set: move files Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_CHROMEOS _H_
6 #define COMPONENTS_STORAGE_MONITOR_TEST_MEDIA_TRANSFER_PROTOCOL_MANAGER_LINUX_H_ 6 #define COMPONENTS_STORAGE_MONITOR_TEST_MEDIA_TRANSFER_PROTOCOL_MANAGER_CHROMEOS _H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "device/media_transfer_protocol/media_transfer_protocol_manager.h" 12 #include "device/media_transfer_protocol/media_transfer_protocol_manager.h"
13 13
14 namespace storage_monitor { 14 namespace storage_monitor {
15 15
16 // A dummy MediaTransferProtocolManager implementation. 16 // A dummy MediaTransferProtocolManager implementation.
17 class TestMediaTransferProtocolManagerLinux 17 class TestMediaTransferProtocolManagerChromeOS
18 : public device::MediaTransferProtocolManager { 18 : public device::MediaTransferProtocolManager {
19 public: 19 public:
20 TestMediaTransferProtocolManagerLinux(); 20 TestMediaTransferProtocolManagerChromeOS();
21 ~TestMediaTransferProtocolManagerLinux() override; 21 ~TestMediaTransferProtocolManagerChromeOS() override;
22 22
23 private: 23 private:
24 // device::MediaTransferProtocolManager implementation. 24 // device::MediaTransferProtocolManager implementation.
25 void AddObserver(Observer* observer) override; 25 void AddObserver(Observer* observer) override;
26 void RemoveObserver(Observer* observer) override; 26 void RemoveObserver(Observer* observer) override;
27 const std::vector<std::string> GetStorages() const override; 27 const std::vector<std::string> GetStorages() const override;
28 const MtpStorageInfo* GetStorageInfo( 28 const MtpStorageInfo* GetStorageInfo(
29 const std::string& storage_name) const override; 29 const std::string& storage_name) const override;
30 void GetStorageInfoFromDevice( 30 void GetStorageInfoFromDevice(
31 const std::string& storage_name, 31 const std::string& storage_name,
(...skipping 25 matching lines...) Expand all
57 const RenameObjectCallback& callback) override; 57 const RenameObjectCallback& callback) override;
58 void CopyFileFromLocal(const std::string& storage_handle, 58 void CopyFileFromLocal(const std::string& storage_handle,
59 const int source_file_descriptor, 59 const int source_file_descriptor,
60 const uint32_t parent_id, 60 const uint32_t parent_id,
61 const std::string& file_name, 61 const std::string& file_name,
62 const CopyFileFromLocalCallback& callback) override; 62 const CopyFileFromLocalCallback& callback) override;
63 void DeleteObject(const std::string& storage_handle, 63 void DeleteObject(const std::string& storage_handle,
64 const uint32_t object_id, 64 const uint32_t object_id,
65 const DeleteObjectCallback& callback) override; 65 const DeleteObjectCallback& callback) override;
66 66
67 DISALLOW_COPY_AND_ASSIGN(TestMediaTransferProtocolManagerLinux); 67 DISALLOW_COPY_AND_ASSIGN(TestMediaTransferProtocolManagerChromeOS);
68 }; 68 };
69 69
70 } // namespace storage_monitor 70 } // namespace storage_monitor
71 71
72 #endif // COMPONENTS_STORAGE_MONITOR_TEST_MEDIA_TRANSFER_PROTOCOL_MANAGER_LINUX _H_ 72 #endif // COMPONENTS_STORAGE_MONITOR_TEST_MEDIA_TRANSFER_PROTOCOL_MANAGER_CHROM EOS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698