Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1477)

Side by Side Diff: mount_task.h

Issue 6598074: DoAutomaticFreeDiskSpaceControl() introduced (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/cryptohome.git@master
Patch Set: Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « mount.cc ('k') | mount_task.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « mount.cc ('k') | mount_task.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698