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

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

Issue 160483004: Keep track of the list of currently mounted volumes in C++-side VolumeManager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fix Created 6 years, 10 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 2c37c4b9ff0d821c7d637367bb655921f560a7ab..da3b2e7e0e9fc665ddfb1742903e1282ef26a204 100644
--- a/chrome/browser/chromeos/file_manager/volume_manager.h
+++ b/chrome/browser/chromeos/file_manager/volume_manager.h
@@ -160,6 +160,11 @@ class VolumeManager : public BrowserContextKeyedService,
private:
void OnPrivetVolumesAvailable(
const local_discovery::PrivetVolumeLister::VolumeList& volumes);
+ void DoMountEvent(chromeos::MountError error_code,
+ const VolumeInfo& volume_info,
+ bool is_remounting);
+ void DoUnmountEvent(chromeos::MountError error_code,
+ const VolumeInfo& volume_info);
Profile* profile_;
drive::DriveIntegrationService* drive_integration_service_;
@@ -168,6 +173,9 @@ class VolumeManager : public BrowserContextKeyedService,
PrefChangeRegistrar pref_change_registrar_;
ObserverList<VolumeManagerObserver> observers_;
scoped_ptr<local_discovery::PrivetVolumeLister> privet_volume_lister_;
+
+ std::map<std::string, VolumeInfo> mounted_volumes_;
+
DISALLOW_COPY_AND_ASSIGN(VolumeManager);
};

Powered by Google App Engine
This is Rietveld 408576698