OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_EXTENSIONS_FILE_MANAGER_EVENT_ROUTER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_EVENT_ROUTER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_EVENT_ROUTER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_EVENT_ROUTER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 | 120 |
121 // VolumeManagerObserver overrides. | 121 // VolumeManagerObserver overrides. |
122 virtual void OnDiskAdded( | 122 virtual void OnDiskAdded( |
123 const chromeos::disks::DiskMountManager::Disk& disk, | 123 const chromeos::disks::DiskMountManager::Disk& disk, |
124 bool mounting) OVERRIDE; | 124 bool mounting) OVERRIDE; |
125 virtual void OnDiskRemoved( | 125 virtual void OnDiskRemoved( |
126 const chromeos::disks::DiskMountManager::Disk& disk) OVERRIDE; | 126 const chromeos::disks::DiskMountManager::Disk& disk) OVERRIDE; |
127 virtual void OnDeviceAdded(const std::string& device_path) OVERRIDE; | 127 virtual void OnDeviceAdded(const std::string& device_path) OVERRIDE; |
128 virtual void OnDeviceRemoved(const std::string& device_path) OVERRIDE; | 128 virtual void OnDeviceRemoved(const std::string& device_path) OVERRIDE; |
129 virtual void OnVolumeMounted(chromeos::MountError error_code, | 129 virtual void OnVolumeMounted(chromeos::MountError error_code, |
130 const VolumeInfo& volume_info, | 130 const VolumeInfo& volume_info) OVERRIDE; |
131 bool is_remounting) OVERRIDE; | |
132 virtual void OnVolumeUnmounted(chromeos::MountError error_code, | 131 virtual void OnVolumeUnmounted(chromeos::MountError error_code, |
133 const VolumeInfo& volume_info) OVERRIDE; | 132 const VolumeInfo& volume_info) OVERRIDE; |
134 virtual void OnFormatStarted( | 133 virtual void OnFormatStarted( |
135 const std::string& device_path, bool success) OVERRIDE; | 134 const std::string& device_path, bool success) OVERRIDE; |
136 virtual void OnFormatCompleted( | 135 virtual void OnFormatCompleted( |
137 const std::string& device_path, bool success) OVERRIDE; | 136 const std::string& device_path, bool success) OVERRIDE; |
138 | 137 |
139 // content::NotificationObserver overrides. | 138 // content::NotificationObserver overrides. |
140 virtual void Observe(int type, | 139 virtual void Observe(int type, |
141 const content::NotificationSource& source, | 140 const content::NotificationSource& source, |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 | 209 |
211 // Note: This should remain the last member so it'll be destroyed and | 210 // Note: This should remain the last member so it'll be destroyed and |
212 // invalidate the weak pointers before any other members are destroyed. | 211 // invalidate the weak pointers before any other members are destroyed. |
213 base::WeakPtrFactory<EventRouter> weak_factory_; | 212 base::WeakPtrFactory<EventRouter> weak_factory_; |
214 DISALLOW_COPY_AND_ASSIGN(EventRouter); | 213 DISALLOW_COPY_AND_ASSIGN(EventRouter); |
215 }; | 214 }; |
216 | 215 |
217 } // namespace file_manager | 216 } // namespace file_manager |
218 | 217 |
219 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_EVENT_ROUTER_H_ | 218 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_EVENT_ROUTER_H_ |
OLD | NEW |