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