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

Unified Diff: components/storage_monitor/media_transfer_protocol_device_observer_chromeos.h

Issue 2358493002: Remove MTP support on Linux. (Closed)
Patch Set: move files Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: components/storage_monitor/media_transfer_protocol_device_observer_chromeos.h
diff --git a/components/storage_monitor/media_transfer_protocol_device_observer_linux.h b/components/storage_monitor/media_transfer_protocol_device_observer_chromeos.h
similarity index 90%
rename from components/storage_monitor/media_transfer_protocol_device_observer_linux.h
rename to components/storage_monitor/media_transfer_protocol_device_observer_chromeos.h
index 611d0da2940f691b03fa834082e5dec8dcc9518e..a004426f3f94df0d911d7c8a5c0db2c42ab17da8 100644
--- a/components/storage_monitor/media_transfer_protocol_device_observer_linux.h
+++ b/components/storage_monitor/media_transfer_protocol_device_observer_chromeos.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef COMPONENTS_STORAGE_MONITOR_MEDIA_TRANSFER_PROTOCOL_DEVICE_OBSERVER_LINUX_H_
-#define COMPONENTS_STORAGE_MONITOR_MEDIA_TRANSFER_PROTOCOL_DEVICE_OBSERVER_LINUX_H_
+#ifndef COMPONENTS_STORAGE_MONITOR_MEDIA_TRANSFER_PROTOCOL_DEVICE_OBSERVER_CHROMEOS_H_
+#define COMPONENTS_STORAGE_MONITOR_MEDIA_TRANSFER_PROTOCOL_DEVICE_OBSERVER_CHROMEOS_H_
#include <map>
#include <string>
@@ -32,13 +32,13 @@ typedef void (*GetStorageInfoFunc)(
// Helper class to send MTP storage attachment and detachment events to
// StorageMonitor.
-class MediaTransferProtocolDeviceObserverLinux
+class MediaTransferProtocolDeviceObserverChromeOS
: public device::MediaTransferProtocolManager::Observer {
public:
- MediaTransferProtocolDeviceObserverLinux(
+ MediaTransferProtocolDeviceObserverChromeOS(
StorageMonitor::Receiver* receiver,
device::MediaTransferProtocolManager* mtp_manager);
- ~MediaTransferProtocolDeviceObserverLinux() override;
+ ~MediaTransferProtocolDeviceObserverChromeOS() override;
// Finds the storage that contains |path| and populates |storage_info|.
// Returns false if unable to find the storage.
@@ -50,7 +50,7 @@ class MediaTransferProtocolDeviceObserverLinux
protected:
// Only used in unit tests.
- MediaTransferProtocolDeviceObserverLinux(
+ MediaTransferProtocolDeviceObserverChromeOS(
StorageMonitor::Receiver* receiver,
device::MediaTransferProtocolManager* mtp_manager,
GetStorageInfoFunc get_storage_info_func);
@@ -87,9 +87,9 @@ class MediaTransferProtocolDeviceObserverLinux
// Guaranteed to outlive this class.
StorageMonitor::Receiver* const notifications_;
- DISALLOW_COPY_AND_ASSIGN(MediaTransferProtocolDeviceObserverLinux);
+ DISALLOW_COPY_AND_ASSIGN(MediaTransferProtocolDeviceObserverChromeOS);
};
} // namespace storage_monitor
-#endif // COMPONENTS_STORAGE_MONITOR_MEDIA_TRANSFER_PROTOCOL_DEVICE_OBSERVER_LINUX_H_
+#endif // COMPONENTS_STORAGE_MONITOR_MEDIA_TRANSFER_PROTOCOL_DEVICE_OBSERVER_CHROMEOS_H_
« no previous file with comments | « components/storage_monitor/BUILD.gn ('k') | components/storage_monitor/media_transfer_protocol_device_observer_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698