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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 VolumeInfo* result) const; | 169 VolumeInfo* result) const; |
170 | 170 |
171 // For testing purpose, registers a native local file system pointing to | 171 // For testing purpose, registers a native local file system pointing to |
172 // |path| with DOWNLOADS type, and adds its volume info. | 172 // |path| with DOWNLOADS type, and adds its volume info. |
173 bool RegisterDownloadsDirectoryForTesting(const base::FilePath& path); | 173 bool RegisterDownloadsDirectoryForTesting(const base::FilePath& path); |
174 | 174 |
175 // For testing purpose, adds a volume info pointing to |path|, with TESTING | 175 // For testing purpose, adds a volume info pointing to |path|, with TESTING |
176 // type. Assumes that the mount point is already registered. | 176 // type. Assumes that the mount point is already registered. |
177 void AddVolumeInfoForTesting(const base::FilePath& path, | 177 void AddVolumeInfoForTesting(const base::FilePath& path, |
178 VolumeType volume_type, | 178 VolumeType volume_type, |
179 chromeos::DeviceType device_type); | 179 chromeos::DeviceType device_type, |
| 180 bool read_only); |
180 | 181 |
181 // drive::DriveIntegrationServiceObserver overrides. | 182 // drive::DriveIntegrationServiceObserver overrides. |
182 void OnFileSystemMounted() override; | 183 void OnFileSystemMounted() override; |
183 void OnFileSystemBeingUnmounted() override; | 184 void OnFileSystemBeingUnmounted() override; |
184 | 185 |
185 // chromeos::disks::DiskMountManager::Observer overrides. | 186 // chromeos::disks::DiskMountManager::Observer overrides. |
186 void OnDiskEvent( | 187 void OnDiskEvent( |
187 chromeos::disks::DiskMountManager::DiskEvent event, | 188 chromeos::disks::DiskMountManager::DiskEvent event, |
188 const chromeos::disks::DiskMountManager::Disk* disk) override; | 189 const chromeos::disks::DiskMountManager::Disk* disk) override; |
189 void OnDeviceEvent(chromeos::disks::DiskMountManager::DeviceEvent event, | 190 void OnDeviceEvent(chromeos::disks::DiskMountManager::DeviceEvent event, |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 | 239 |
239 // Note: This should remain the last member so it'll be destroyed and | 240 // Note: This should remain the last member so it'll be destroyed and |
240 // invalidate its weak pointers before any other members are destroyed. | 241 // invalidate its weak pointers before any other members are destroyed. |
241 base::WeakPtrFactory<VolumeManager> weak_ptr_factory_; | 242 base::WeakPtrFactory<VolumeManager> weak_ptr_factory_; |
242 DISALLOW_COPY_AND_ASSIGN(VolumeManager); | 243 DISALLOW_COPY_AND_ASSIGN(VolumeManager); |
243 }; | 244 }; |
244 | 245 |
245 } // namespace file_manager | 246 } // namespace file_manager |
246 | 247 |
247 #endif // CHROME_BROWSER_CHROMEOS_FILE_MANAGER_VOLUME_MANAGER_H_ | 248 #endif // CHROME_BROWSER_CHROMEOS_FILE_MANAGER_VOLUME_MANAGER_H_ |
OLD | NEW |