| 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_OBSERVER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_MANAGER_VOLUME_MANAGER_OBSERVER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_FILE_MANAGER_VOLUME_MANAGER_OBSERVER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_FILE_MANAGER_VOLUME_MANAGER_OBSERVER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "chromeos/dbus/cros_disks_client.h" | 10 #include "chromeos/dbus/cros_disks_client.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 const chromeos::disks::DiskMountManager::Disk& disk) = 0; | 28 const chromeos::disks::DiskMountManager::Disk& disk) = 0; |
| 29 | 29 |
| 30 // Fired when a new device is added. | 30 // Fired when a new device is added. |
| 31 virtual void OnDeviceAdded(const std::string& device_path) = 0; | 31 virtual void OnDeviceAdded(const std::string& device_path) = 0; |
| 32 | 32 |
| 33 // Fired when a device is removed. | 33 // Fired when a device is removed. |
| 34 virtual void OnDeviceRemoved(const std::string& device_path) = 0; | 34 virtual void OnDeviceRemoved(const std::string& device_path) = 0; |
| 35 | 35 |
| 36 // Fired when a volume is mounted. | 36 // Fired when a volume is mounted. |
| 37 virtual void OnVolumeMounted(chromeos::MountError error_code, | 37 virtual void OnVolumeMounted(chromeos::MountError error_code, |
| 38 const VolumeInfo& volume_info, | 38 const VolumeInfo& volume_info) = 0; |
| 39 bool is_remounting) = 0; | |
| 40 | 39 |
| 41 // Fired when a volume is unmounted. | 40 // Fired when a volume is unmounted. |
| 42 virtual void OnVolumeUnmounted(chromeos::MountError error_code, | 41 virtual void OnVolumeUnmounted(chromeos::MountError error_code, |
| 43 const VolumeInfo& volume_info) = 0; | 42 const VolumeInfo& volume_info) = 0; |
| 44 | 43 |
| 45 // Fired when formatting a device is started (or failed to start). | 44 // Fired when formatting a device is started (or failed to start). |
| 46 virtual void OnFormatStarted( | 45 virtual void OnFormatStarted( |
| 47 const std::string& device_path, bool success) = 0; | 46 const std::string& device_path, bool success) = 0; |
| 48 | 47 |
| 49 // Fired when formatting a device is completed (or terminated on error). | 48 // Fired when formatting a device is completed (or terminated on error). |
| 50 virtual void OnFormatCompleted( | 49 virtual void OnFormatCompleted( |
| 51 const std::string& device_path, bool success) = 0; | 50 const std::string& device_path, bool success) = 0; |
| 52 }; | 51 }; |
| 53 | 52 |
| 54 } // namespace file_manager | 53 } // namespace file_manager |
| 55 | 54 |
| 56 #endif // CHROME_BROWSER_CHROMEOS_FILE_MANAGER_VOLUME_MANAGER_OBSERVER_H_ | 55 #endif // CHROME_BROWSER_CHROMEOS_FILE_MANAGER_VOLUME_MANAGER_OBSERVER_H_ |
| OLD | NEW |