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

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

Issue 1550503002: Switch to standard integer types in base/threading/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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_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 <stdint.h>
9
8 #include "device/media_transfer_protocol/media_transfer_protocol_manager.h" 10 #include "device/media_transfer_protocol/media_transfer_protocol_manager.h"
9 11
10 namespace storage_monitor { 12 namespace storage_monitor {
11 13
12 // A dummy MediaTransferProtocolManager implementation. 14 // A dummy MediaTransferProtocolManager implementation.
13 class TestMediaTransferProtocolManagerLinux 15 class TestMediaTransferProtocolManagerLinux
14 : public device::MediaTransferProtocolManager { 16 : public device::MediaTransferProtocolManager {
15 public: 17 public:
16 TestMediaTransferProtocolManagerLinux(); 18 TestMediaTransferProtocolManagerLinux();
17 ~TestMediaTransferProtocolManagerLinux() override; 19 ~TestMediaTransferProtocolManagerLinux() override;
18 20
19 private: 21 private:
20 // device::MediaTransferProtocolManager implementation. 22 // device::MediaTransferProtocolManager implementation.
21 void AddObserver(Observer* observer) override; 23 void AddObserver(Observer* observer) override;
22 void RemoveObserver(Observer* observer) override; 24 void RemoveObserver(Observer* observer) override;
23 const std::vector<std::string> GetStorages() const override; 25 const std::vector<std::string> GetStorages() const override;
24 const MtpStorageInfo* GetStorageInfo( 26 const MtpStorageInfo* GetStorageInfo(
25 const std::string& storage_name) const override; 27 const std::string& storage_name) const override;
26 void GetStorageInfoFromDevice( 28 void GetStorageInfoFromDevice(
27 const std::string& storage_name, 29 const std::string& storage_name,
28 const GetStorageInfoFromDeviceCallback& callback) override; 30 const GetStorageInfoFromDeviceCallback& callback) override;
29 void OpenStorage(const std::string& storage_name, 31 void OpenStorage(const std::string& storage_name,
30 const std::string& mode, 32 const std::string& mode,
31 const OpenStorageCallback& callback) override; 33 const OpenStorageCallback& callback) override;
32 void CloseStorage(const std::string& storage_handle, 34 void CloseStorage(const std::string& storage_handle,
33 const CloseStorageCallback& callback) override; 35 const CloseStorageCallback& callback) override;
34 void CreateDirectory(const std::string& storage_handle, 36 void CreateDirectory(const std::string& storage_handle,
35 const uint32 parent_id, 37 const uint32_t parent_id,
36 const std::string& directory_name, 38 const std::string& directory_name,
37 const CreateDirectoryCallback& callback) override; 39 const CreateDirectoryCallback& callback) override;
38 void ReadDirectory(const std::string& storage_handle, 40 void ReadDirectory(const std::string& storage_handle,
39 const uint32 file_id, 41 const uint32_t file_id,
40 const size_t max_size, 42 const size_t max_size,
41 const ReadDirectoryCallback& callback) override; 43 const ReadDirectoryCallback& callback) override;
42 void ReadFileChunk(const std::string& storage_handle, 44 void ReadFileChunk(const std::string& storage_handle,
43 uint32 file_id, 45 uint32_t file_id,
44 uint32 offset, 46 uint32_t offset,
45 uint32 count, 47 uint32_t count,
46 const ReadFileCallback& callback) override; 48 const ReadFileCallback& callback) override;
47 void GetFileInfo(const std::string& storage_handle, 49 void GetFileInfo(const std::string& storage_handle,
48 uint32 file_id, 50 uint32_t file_id,
49 const GetFileInfoCallback& callback) override; 51 const GetFileInfoCallback& callback) override;
50 void RenameObject(const std::string& storage_handle, 52 void RenameObject(const std::string& storage_handle,
51 const uint32 object_id, 53 const uint32_t object_id,
52 const std::string& new_name, 54 const std::string& new_name,
53 const RenameObjectCallback& callback) override; 55 const RenameObjectCallback& callback) override;
54 void CopyFileFromLocal(const std::string& storage_handle, 56 void CopyFileFromLocal(const std::string& storage_handle,
55 const int source_file_descriptor, 57 const int source_file_descriptor,
56 const uint32 parent_id, 58 const uint32_t parent_id,
57 const std::string& file_name, 59 const std::string& file_name,
58 const CopyFileFromLocalCallback& callback) override; 60 const CopyFileFromLocalCallback& callback) override;
59 void DeleteObject(const std::string& storage_handle, 61 void DeleteObject(const std::string& storage_handle,
60 const uint32 object_id, 62 const uint32_t object_id,
61 const DeleteObjectCallback& callback) override; 63 const DeleteObjectCallback& callback) override;
62 64
63 DISALLOW_COPY_AND_ASSIGN(TestMediaTransferProtocolManagerLinux); 65 DISALLOW_COPY_AND_ASSIGN(TestMediaTransferProtocolManagerLinux);
64 }; 66 };
65 67
66 } // namespace storage_monitor 68 } // namespace storage_monitor
67 69
68 #endif // COMPONENTS_STORAGE_MONITOR_TEST_MEDIA_TRANSFER_PROTOCOL_MANAGER_LINUX _H_ 70 #endif // COMPONENTS_STORAGE_MONITOR_TEST_MEDIA_TRANSFER_PROTOCOL_MANAGER_LINUX _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698