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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 | 199 |
200 // RemovableStorageObserver overrides. | 200 // RemovableStorageObserver overrides. |
201 virtual void OnRemovableStorageAttached( | 201 virtual void OnRemovableStorageAttached( |
202 const storage_monitor::StorageInfo& info) OVERRIDE; | 202 const storage_monitor::StorageInfo& info) OVERRIDE; |
203 virtual void OnRemovableStorageDetached( | 203 virtual void OnRemovableStorageDetached( |
204 const storage_monitor::StorageInfo& info) OVERRIDE; | 204 const storage_monitor::StorageInfo& info) OVERRIDE; |
205 | 205 |
206 SnapshotManager* snapshot_manager() { return snapshot_manager_.get(); } | 206 SnapshotManager* snapshot_manager() { return snapshot_manager_.get(); } |
207 | 207 |
208 private: | 208 private: |
| 209 void OnDiskMountManagerRefreshed(bool success); |
209 void OnStorageMonitorInitialized(); | 210 void OnStorageMonitorInitialized(); |
210 void OnPrivetVolumesAvailable( | 211 void OnPrivetVolumesAvailable( |
211 const local_discovery::PrivetVolumeLister::VolumeList& volumes); | 212 const local_discovery::PrivetVolumeLister::VolumeList& volumes); |
212 void DoMountEvent(chromeos::MountError error_code, | 213 void DoMountEvent(chromeos::MountError error_code, |
213 const VolumeInfo& volume_info, | 214 const VolumeInfo& volume_info, |
214 bool is_remounting); | 215 bool is_remounting); |
215 void DoUnmountEvent(chromeos::MountError error_code, | 216 void DoUnmountEvent(chromeos::MountError error_code, |
216 const VolumeInfo& volume_info); | 217 const VolumeInfo& volume_info); |
217 | 218 |
218 Profile* profile_; | 219 Profile* profile_; |
(...skipping 10 matching lines...) Expand all Loading... |
229 | 230 |
230 // Note: This should remain the last member so it'll be destroyed and | 231 // Note: This should remain the last member so it'll be destroyed and |
231 // invalidate its weak pointers before any other members are destroyed. | 232 // invalidate its weak pointers before any other members are destroyed. |
232 base::WeakPtrFactory<VolumeManager> weak_ptr_factory_; | 233 base::WeakPtrFactory<VolumeManager> weak_ptr_factory_; |
233 DISALLOW_COPY_AND_ASSIGN(VolumeManager); | 234 DISALLOW_COPY_AND_ASSIGN(VolumeManager); |
234 }; | 235 }; |
235 | 236 |
236 } // namespace file_manager | 237 } // namespace file_manager |
237 | 238 |
238 #endif // CHROME_BROWSER_CHROMEOS_FILE_MANAGER_VOLUME_MANAGER_H_ | 239 #endif // CHROME_BROWSER_CHROMEOS_FILE_MANAGER_VOLUME_MANAGER_H_ |
OLD | NEW |