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