| 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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 chromeos::MountError error_code, | 167 chromeos::MountError error_code, |
| 168 const chromeos::disks::DiskMountManager::MountPointInfo& mount_info) | 168 const chromeos::disks::DiskMountManager::MountPointInfo& mount_info) |
| 169 OVERRIDE; | 169 OVERRIDE; |
| 170 virtual void OnFormatEvent( | 170 virtual void OnFormatEvent( |
| 171 chromeos::disks::DiskMountManager::FormatEvent event, | 171 chromeos::disks::DiskMountManager::FormatEvent event, |
| 172 chromeos::FormatError error_code, | 172 chromeos::FormatError error_code, |
| 173 const std::string& device_path) OVERRIDE; | 173 const std::string& device_path) OVERRIDE; |
| 174 | 174 |
| 175 // chromeos::file_system_provider::Observer overrides. | 175 // chromeos::file_system_provider::Observer overrides. |
| 176 virtual void OnProvidedFileSystemMount( | 176 virtual void OnProvidedFileSystemMount( |
| 177 const chromeos::file_system_provider::ProvidedFileSystem& file_system, | 177 const chromeos::file_system_provider::ProvidedFileSystemInfo& |
| 178 file_system_info, |
| 178 base::File::Error error) OVERRIDE; | 179 base::File::Error error) OVERRIDE; |
| 179 virtual void OnProvidedFileSystemUnmount( | 180 virtual void OnProvidedFileSystemUnmount( |
| 180 const chromeos::file_system_provider::ProvidedFileSystem& file_system, | 181 const chromeos::file_system_provider::ProvidedFileSystemInfo& |
| 182 file_system_info, |
| 181 base::File::Error error) OVERRIDE; | 183 base::File::Error error) OVERRIDE; |
| 182 | 184 |
| 183 // Called on change to kExternalStorageDisabled pref. | 185 // Called on change to kExternalStorageDisabled pref. |
| 184 void OnExternalStorageDisabledChanged(); | 186 void OnExternalStorageDisabledChanged(); |
| 185 | 187 |
| 186 private: | 188 private: |
| 187 void OnPrivetVolumesAvailable( | 189 void OnPrivetVolumesAvailable( |
| 188 const local_discovery::PrivetVolumeLister::VolumeList& volumes); | 190 const local_discovery::PrivetVolumeLister::VolumeList& volumes); |
| 189 void DoMountEvent(chromeos::MountError error_code, | 191 void DoMountEvent(chromeos::MountError error_code, |
| 190 const VolumeInfo& volume_info, | 192 const VolumeInfo& volume_info, |
| (...skipping 11 matching lines...) Expand all Loading... |
| 202 chromeos::file_system_provider::Service* file_system_provider_service_; | 204 chromeos::file_system_provider::Service* file_system_provider_service_; |
| 203 | 205 |
| 204 std::map<std::string, VolumeInfo> mounted_volumes_; | 206 std::map<std::string, VolumeInfo> mounted_volumes_; |
| 205 | 207 |
| 206 DISALLOW_COPY_AND_ASSIGN(VolumeManager); | 208 DISALLOW_COPY_AND_ASSIGN(VolumeManager); |
| 207 }; | 209 }; |
| 208 | 210 |
| 209 } // namespace file_manager | 211 } // namespace file_manager |
| 210 | 212 |
| 211 #endif // CHROME_BROWSER_CHROMEOS_FILE_MANAGER_VOLUME_MANAGER_H_ | 213 #endif // CHROME_BROWSER_CHROMEOS_FILE_MANAGER_VOLUME_MANAGER_H_ |
| OLD | NEW |