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

Unified Diff: chrome/browser/chromeos/file_manager/volume_manager.h

Issue 246293011: Mount MTP devices in Chrome OS Files.app. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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: chrome/browser/chromeos/file_manager/volume_manager.h
diff --git a/chrome/browser/chromeos/file_manager/volume_manager.h b/chrome/browser/chromeos/file_manager/volume_manager.h
index 17be56ff4e4898a12dd32a2818b99b9de2d3550b..492d387da0726d0acbce839e0900ce85f5901450 100644
--- a/chrome/browser/chromeos/file_manager/volume_manager.h
+++ b/chrome/browser/chromeos/file_manager/volume_manager.h
@@ -23,6 +23,7 @@
#include "chromeos/dbus/cros_disks_client.h"
#include "chromeos/disks/disk_mount_manager.h"
#include "components/keyed_service/core/keyed_service.h"
+#include "components/storage_monitor/removable_storage_observer.h"
class Profile;
@@ -107,7 +108,8 @@ struct VolumeInfo {
class VolumeManager : public KeyedService,
public drive::DriveIntegrationServiceObserver,
public chromeos::disks::DiskMountManager::Observer,
- public chromeos::file_system_provider::Observer {
+ public chromeos::file_system_provider::Observer,
+ public storage_monitor::RemovableStorageObserver {
public:
VolumeManager(
Profile* profile,
@@ -184,7 +186,14 @@ class VolumeManager : public KeyedService,
// Called on change to kExternalStorageDisabled pref.
void OnExternalStorageDisabledChanged();
+ // RemovableStorageObserver overrides.
+ virtual void OnRemovableStorageAttached(
+ const storage_monitor::StorageInfo& info) OVERRIDE;
+ virtual void OnRemovableStorageDetached(
+ const storage_monitor::StorageInfo& info) OVERRIDE;
+
private:
+ void OnStorageMonitorInitialized();
void OnPrivetVolumesAvailable(
const local_discovery::PrivetVolumeLister::VolumeList& volumes);
void DoMountEvent(chromeos::MountError error_code,

Powered by Google App Engine
This is Rietveld 408576698