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

Side by Side Diff: chrome/browser/chromeos/extensions/file_manager/volume_manager_observer.h

Issue 23892008: Move VolumeManager to c/b/chromeos/file_manager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_VOLUME_MANAGER_OBSERVER_ H_
6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_VOLUME_MANAGER_OBSERVER_ H_
7
8 #include <string>
9
10 #include "chromeos/disks/disk_mount_manager.h"
11
12 namespace file_manager {
13
14 struct VolumeInfo;
15
16 // Observer interface of volume related events.
17 class VolumeManagerObserver {
18 public:
19 virtual ~VolumeManagerObserver() {}
20
21 // Fired when a new disk is added.
22 virtual void OnDiskAdded(
23 const chromeos::disks::DiskMountManager::Disk& disk, bool mounting) = 0;
24
25 // Fired when a disk is removed.
26 virtual void OnDiskRemoved(
27 const chromeos::disks::DiskMountManager::Disk& disk) = 0;
28
29 // Fired when a new device is added.
30 virtual void OnDeviceAdded(const std::string& device_path) = 0;
31
32 // Fired when a device is removed.
33 virtual void OnDeviceRemoved(const std::string& device_path) = 0;
34
35 // Fired when formatting a device is started (or failed to start).
36 virtual void OnFormatStarted(
37 const std::string& device_path, bool success) = 0;
38
39 // Fired when formatting a device is completed (or terminated on error).
40 virtual void OnFormatCompleted(
41 const std::string& device_path, bool success) = 0;
42 };
43
44 } // namespace file_manager
45
46 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_VOLUME_MANAGER_OBSERV ER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698