OLD | NEW |
1 // Copyright (c) 2009 The Chromium OS Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium OS 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 // MountTask - The basis for asynchronous API work items. It inherits from | 5 // MountTask - The basis for asynchronous API work items. It inherits from |
6 // Task, which allows it to be called on an event thread. Subclasses define the | 6 // Task, which allows it to be called on an event thread. Subclasses define the |
7 // specific asychronous request, such as MountTaskMount, MountTaskMountGuest, | 7 // specific asychronous request, such as MountTaskMount, MountTaskMountGuest, |
8 // MountTaskMigratePasskey, MountTaskUnmount, and MountTaskTestCredentials. | 8 // MountTaskMigratePasskey, MountTaskUnmount, and MountTaskTestCredentials. |
9 // Asynchronous tasks in cryptohome are serialized calls on a single worker | 9 // Asynchronous tasks in cryptohome are serialized calls on a single worker |
10 // thread separate from the dbus main event loop. The synchronous versions of | 10 // thread separate from the dbus main event loop. The synchronous versions of |
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
324 : MountTask(observer, mount, UsernamePasskey()) { | 324 : MountTask(observer, mount, UsernamePasskey()) { |
325 } | 325 } |
326 virtual ~MountTaskRemoveTrackedSubdirectories() { } | 326 virtual ~MountTaskRemoveTrackedSubdirectories() { } |
327 | 327 |
328 virtual void Run(); | 328 virtual void Run(); |
329 | 329 |
330 private: | 330 private: |
331 DISALLOW_COPY_AND_ASSIGN(MountTaskRemoveTrackedSubdirectories); | 331 DISALLOW_COPY_AND_ASSIGN(MountTaskRemoveTrackedSubdirectories); |
332 }; | 332 }; |
333 | 333 |
| 334 // Implements asychronous removal of tracked subdirectories |
| 335 class MountTaskAutomaticFreeDiskSpace : public MountTask { |
| 336 public: |
| 337 MountTaskAutomaticFreeDiskSpace(MountTaskObserver* observer, |
| 338 Mount* mount) |
| 339 : MountTask(observer, mount, UsernamePasskey()) { |
| 340 } |
| 341 virtual ~MountTaskAutomaticFreeDiskSpace() { } |
| 342 |
| 343 virtual void Run(); |
| 344 |
| 345 private: |
| 346 DISALLOW_COPY_AND_ASSIGN(MountTaskAutomaticFreeDiskSpace); |
| 347 }; |
| 348 |
334 } // namespace cryptohome | 349 } // namespace cryptohome |
335 | 350 |
336 #endif // CRYPTOHOME_MOUNT_TASK_H_ | 351 #endif // CRYPTOHOME_MOUNT_TASK_H_ |
OLD | NEW |