| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CHROME_BROWSER_CHROMEOS_FILE_MANAGER_VOLUME_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_MANAGER_VOLUME_MANAGER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_FILE_MANAGER_VOLUME_MANAGER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_FILE_MANAGER_VOLUME_MANAGER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 chromeos::disks::DiskMountManager::FormatEvent event, | 153 chromeos::disks::DiskMountManager::FormatEvent event, |
| 154 chromeos::FormatError error_code, | 154 chromeos::FormatError error_code, |
| 155 const std::string& device_path) OVERRIDE; | 155 const std::string& device_path) OVERRIDE; |
| 156 | 156 |
| 157 // Called on change to kExternalStorageDisabled pref. | 157 // Called on change to kExternalStorageDisabled pref. |
| 158 void OnExternalStorageDisabledChanged(); | 158 void OnExternalStorageDisabledChanged(); |
| 159 | 159 |
| 160 private: | 160 private: |
| 161 void OnPrivetVolumesAvailable( | 161 void OnPrivetVolumesAvailable( |
| 162 const local_discovery::PrivetVolumeLister::VolumeList& volumes); | 162 const local_discovery::PrivetVolumeLister::VolumeList& volumes); |
| 163 void DoMountEvent(chromeos::MountError error_code, |
| 164 const VolumeInfo& volume_info, |
| 165 bool is_remounting); |
| 166 void DoUnmountEvent(chromeos::MountError error_code, |
| 167 const VolumeInfo& volume_info); |
| 163 | 168 |
| 164 Profile* profile_; | 169 Profile* profile_; |
| 165 drive::DriveIntegrationService* drive_integration_service_; | 170 drive::DriveIntegrationService* drive_integration_service_; |
| 166 chromeos::disks::DiskMountManager* disk_mount_manager_; | 171 chromeos::disks::DiskMountManager* disk_mount_manager_; |
| 167 scoped_ptr<MountedDiskMonitor> mounted_disk_monitor_; | 172 scoped_ptr<MountedDiskMonitor> mounted_disk_monitor_; |
| 168 PrefChangeRegistrar pref_change_registrar_; | 173 PrefChangeRegistrar pref_change_registrar_; |
| 169 ObserverList<VolumeManagerObserver> observers_; | 174 ObserverList<VolumeManagerObserver> observers_; |
| 170 scoped_ptr<local_discovery::PrivetVolumeLister> privet_volume_lister_; | 175 scoped_ptr<local_discovery::PrivetVolumeLister> privet_volume_lister_; |
| 176 |
| 177 std::map<std::string, VolumeInfo> mounted_volumes_; |
| 178 |
| 171 DISALLOW_COPY_AND_ASSIGN(VolumeManager); | 179 DISALLOW_COPY_AND_ASSIGN(VolumeManager); |
| 172 }; | 180 }; |
| 173 | 181 |
| 174 } // namespace file_manager | 182 } // namespace file_manager |
| 175 | 183 |
| 176 #endif // CHROME_BROWSER_CHROMEOS_FILE_MANAGER_VOLUME_MANAGER_H_ | 184 #endif // CHROME_BROWSER_CHROMEOS_FILE_MANAGER_VOLUME_MANAGER_H_ |
| OLD | NEW |