| 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 // drive::JobListObserver overrides. | 89 // drive::JobListObserver overrides. |
| 90 virtual void OnJobAdded(const drive::JobInfo& job_info) OVERRIDE; | 90 virtual void OnJobAdded(const drive::JobInfo& job_info) OVERRIDE; |
| 91 virtual void OnJobUpdated(const drive::JobInfo& job_info) OVERRIDE; | 91 virtual void OnJobUpdated(const drive::JobInfo& job_info) OVERRIDE; |
| 92 virtual void OnJobDone(const drive::JobInfo& job_info, | 92 virtual void OnJobDone(const drive::JobInfo& job_info, |
| 93 drive::FileError error) OVERRIDE; | 93 drive::FileError error) OVERRIDE; |
| 94 | 94 |
| 95 // drive::DriveServiceObserver overrides. | 95 // drive::DriveServiceObserver overrides. |
| 96 virtual void OnRefreshTokenInvalid() OVERRIDE; | 96 virtual void OnRefreshTokenInvalid() OVERRIDE; |
| 97 | 97 |
| 98 // drive::FileSystemObserver overrides. | 98 // drive::FileSystemObserver overrides. |
| 99 virtual void OnDirectoryChanged( | 99 virtual void OnDirectoryChanged(const base::FilePath& drive_path) OVERRIDE; |
| 100 const base::FilePath& directory_path) OVERRIDE; | 100 virtual void OnDriveSyncError(drive::file_system::DriveSyncErrorType type, |
| 101 virtual void OnDriveSyncError( | 101 const base::FilePath& drive_path) OVERRIDE; |
| 102 drive::file_system::DriveSyncErrorType type, | |
| 103 const base::FilePath& file_path) OVERRIDE; | |
| 104 | 102 |
| 105 // VolumeManagerObserver overrides. | 103 // VolumeManagerObserver overrides. |
| 106 virtual void OnDiskAdded( | 104 virtual void OnDiskAdded( |
| 107 const chromeos::disks::DiskMountManager::Disk& disk, | 105 const chromeos::disks::DiskMountManager::Disk& disk, |
| 108 bool mounting) OVERRIDE; | 106 bool mounting) OVERRIDE; |
| 109 virtual void OnDiskRemoved( | 107 virtual void OnDiskRemoved( |
| 110 const chromeos::disks::DiskMountManager::Disk& disk) OVERRIDE; | 108 const chromeos::disks::DiskMountManager::Disk& disk) OVERRIDE; |
| 111 virtual void OnDeviceAdded(const std::string& device_path) OVERRIDE; | 109 virtual void OnDeviceAdded(const std::string& device_path) OVERRIDE; |
| 112 virtual void OnDeviceRemoved(const std::string& device_path) OVERRIDE; | 110 virtual void OnDeviceRemoved(const std::string& device_path) OVERRIDE; |
| 113 virtual void OnVolumeMounted(chromeos::MountError error_code, | 111 virtual void OnVolumeMounted(chromeos::MountError error_code, |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 | 167 |
| 170 // Note: This should remain the last member so it'll be destroyed and | 168 // Note: This should remain the last member so it'll be destroyed and |
| 171 // invalidate the weak pointers before any other members are destroyed. | 169 // invalidate the weak pointers before any other members are destroyed. |
| 172 base::WeakPtrFactory<EventRouter> weak_factory_; | 170 base::WeakPtrFactory<EventRouter> weak_factory_; |
| 173 DISALLOW_COPY_AND_ASSIGN(EventRouter); | 171 DISALLOW_COPY_AND_ASSIGN(EventRouter); |
| 174 }; | 172 }; |
| 175 | 173 |
| 176 } // namespace file_manager | 174 } // namespace file_manager |
| 177 | 175 |
| 178 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_EVENT_ROUTER_H_ | 176 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_EVENT_ROUTER_H_ |
| OLD | NEW |