HomeSort by relevance Sort by last modified time
    Searched refs:DiskMountManager (Results 1 - 25 of 33) sorted by null

1 2

  /external/chromium_org/chromeos/disks/
mock_disk_mount_manager.h 19 class MockDiskMountManager : public DiskMountManager {
24 // DiskMountManager override.
26 MOCK_METHOD1(AddObserver, void(DiskMountManager::Observer*));
27 MOCK_METHOD1(RemoveObserver, void(DiskMountManager::Observer*));
28 MOCK_CONST_METHOD0(disks, const DiskMountManager::DiskMap&(void));
30 const DiskMountManager::Disk*(const std::string&));
32 const DiskMountManager::MountPointMap&(void));
38 const DiskMountManager::UnmountPathCallback&));
43 const DiskMountManager::UnmountDeviceRecursivelyCallbackType&));
57 const DiskMountManager::MountPointInfo& mount_info
    [all...]
disk_mount_manager_unittest.cc 13 using chromeos::disks::DiskMountManager;
24 // Holds information needed to create a DiskMountManager::Disk instance.
47 // Holds information to create a DiskMOuntManager::MountPointInfo instance.
55 // List of disks held in DiskMountManager at the begining of the test.
80 // List of mount points held in DiskMountManager at the begining of the test.
96 // Mocks DiskMountManager observer.
97 class MockDiskMountManagerObserver : public DiskMountManager::Observer {
101 MOCK_METHOD2(OnDiskEvent, void(DiskMountManager::DiskEvent event,
102 const DiskMountManager::Disk* disk));
103 MOCK_METHOD2(OnDeviceEvent, void(DiskMountManager::DeviceEvent event
    [all...]
mock_disk_mount_manager.cc 39 DiskMountManager::Observer* observer) {
44 DiskMountManager::Observer* observer) {
69 scoped_ptr<DiskMountManager::Disk> disk1(new DiskMountManager::Disk(
91 disks_.insert(std::pair<std::string, DiskMountManager::Disk*>(
101 scoped_ptr<DiskMountManager::Disk> disk2(new DiskMountManager::Disk(
122 disks_.insert(std::pair<std::string, DiskMountManager::Disk*>(
128 scoped_ptr<DiskMountManager::Disk> disk(new DiskMountManager::Disk
    [all...]
disk_mount_manager.cc 24 DiskMountManager* g_disk_mount_manager = NULL;
26 // The DiskMountManager implementation.
27 class DiskMountManagerImpl : public DiskMountManager {
45 // DiskMountManager override.
50 // DiskMountManager override.
55 // DiskMountManager override.
83 // DiskMountManager override.
101 // DiskMountManager override.
125 // DiskMountManager override.
189 // DiskMountManager override
    [all...]
  /external/chromium_org/chrome/browser/chromeos/imageburner/
burn_device_handler.cc 17 using disks::DiskMountManager;
22 bool IsBurnableDevice(const DiskMountManager::Disk& disk) {
30 BurnDeviceHandler::BurnDeviceHandler(DiskMountManager* disk_mount_manager)
46 std::vector<DiskMountManager::Disk> BurnDeviceHandler::GetBurnableDevices() {
47 const DiskMountManager::DiskMap& disks = disk_mount_manager_->disks();
48 std::vector<DiskMountManager::Disk> result;
49 for (DiskMountManager::DiskMap::const_iterator iter = disks.begin();
52 const DiskMountManager::Disk& disk = *iter->second;
59 void BurnDeviceHandler::OnDiskEvent(DiskMountManager::DiskEvent event,
60 const DiskMountManager::Disk* disk)
    [all...]
burn_device_handler.h 19 // and DiskMountManager.
21 // testability, since both BurnManager and DiskMountManager are singleton
23 class BurnDeviceHandler : public disks::DiskMountManager::Observer {
26 typedef base::Callback<void(const disks::DiskMountManager::Disk& disk)>
29 // This class takes the pointer of DiskMountManager to improve testability,
31 explicit BurnDeviceHandler(disks::DiskMountManager* disk_mount_manager);
44 std::vector<disks::DiskMountManager::Disk> GetBurnableDevices();
46 // DiskMountManager::Observer overrides.
48 disks::DiskMountManager::DiskEvent event,
49 const disks::DiskMountManager::Disk* disk) OVERRIDE
    [all...]
burn_controller.h 36 virtual void OnDeviceAdded(const disks::DiskMountManager::Disk& disk) = 0;
38 virtual void OnDeviceRemoved(const disks::DiskMountManager::Disk& disk) = 0;
63 virtual std::vector<disks::DiskMountManager::Disk> GetBurnableDevices() = 0;
burn_controller.cc 46 const disks::DiskMountManager::Disk& disk) OVERRIDE {
52 const disks::DiskMountManager::Disk& disk) OVERRIDE {
110 virtual std::vector<disks::DiskMountManager::Disk> GetBurnableDevices()
157 disks::DiskMountManager* disk_mount_manager =
158 disks::DiskMountManager::GetInstance();
159 const disks::DiskMountManager::Disk* disk =
burn_device_handler_unittest.cc 29 class FakeDiskMountManager : public disks::DiskMountManager {
61 // DiskMountManager overrides.
132 std::string* out_path, const disks::DiskMountManager::Disk& disk) {
148 static scoped_ptr<disks::DiskMountManager::Disk> CreateMockDisk(
154 return scoped_ptr<disks::DiskMountManager::Disk>(
155 new disks::DiskMountManager::Disk(
215 const std::vector<disks::DiskMountManager::Disk>& burnable_devices =
burn_manager.h 221 virtual void OnDeviceAdded(const disks::DiskMountManager::Disk& disk) = 0;
224 virtual void OnDeviceRemoved(const disks::DiskMountManager::Disk& disk) = 0;
268 std::vector<disks::DiskMountManager::Disk> GetBurnableDevices();
368 void NotifyDeviceAdded(const disks::DiskMountManager::Disk& disk);
369 void NotifyDeviceRemoved(const disks::DiskMountManager::Disk& disk);
  /external/chromium_org/chrome/browser/chromeos/file_manager/
mounted_disk_monitor.h 26 public chromeos::disks::DiskMountManager::Observer {
30 chromeos::disks::DiskMountManager* disk_mount_manager);
37 // DiskMountManager::Observer overrides.
39 chromeos::disks::DiskMountManager::DiskEvent event,
40 const chromeos::disks::DiskMountManager::Disk* disk) OVERRIDE;
42 chromeos::disks::DiskMountManager::DeviceEvent event,
45 chromeos::disks::DiskMountManager::MountEvent event,
47 const chromeos::disks::DiskMountManager::MountPointInfo& mount_info)
50 chromeos::disks::DiskMountManager::FormatEvent event,
57 const chromeos::disks::DiskMountManager::Disk& disk) const
    [all...]
mounted_disk_monitor_unittest.cc 19 scoped_ptr<chromeos::disks::DiskMountManager::Disk> CreateDisk(
23 new chromeos::disks::DiskMountManager::Disk(
57 scoped_ptr<chromeos::disks::DiskMountManager::Disk> disk(
60 chromeos::disks::DiskMountManager::Disk* disk_ptr = disk.get();
62 const chromeos::disks::DiskMountManager::MountPointInfo kMountPoint(
73 chromeos::disks::DiskMountManager::MOUNTING,
79 chromeos::disks::DiskMountManager::UNMOUNTING,
86 chromeos::disks::DiskMountManager::MOUNTING,
95 scoped_ptr<chromeos::disks::DiskMountManager::Disk> disk1(
97 scoped_ptr<chromeos::disks::DiskMountManager::Disk> disk2
    [all...]
volume_manager.h 38 // by DiskMountManager.
97 public chromeos::disks::DiskMountManager::Observer {
102 chromeos::disks::DiskMountManager* disk_mount_manager);
132 // chromeos::disks::DiskMountManager::Observer overrides.
134 chromeos::disks::DiskMountManager::DiskEvent event,
135 const chromeos::disks::DiskMountManager::Disk* disk) OVERRIDE;
137 chromeos::disks::DiskMountManager::DeviceEvent event,
140 chromeos::disks::DiskMountManager::MountEvent event,
142 const chromeos::disks::DiskMountManager::MountPointInfo& mount_info)
145 chromeos::disks::DiskMountManager::FormatEvent event
    [all...]
mounted_disk_monitor.cc 11 using chromeos::disks::DiskMountManager;
25 chromeos::disks::DiskMountManager* disk_mount_manager)
63 const DiskMountManager::Disk& disk) const {
68 chromeos::disks::DiskMountManager::MountEvent event,
70 const chromeos::disks::DiskMountManager::MountPointInfo& mount_info) {
75 case DiskMountManager::MOUNTING: {
76 const DiskMountManager::Disk* disk =
84 case DiskMountManager::UNMOUNTING: {
98 chromeos::disks::DiskMountManager::DiskEvent event,
99 const chromeos::disks::DiskMountManager::Disk* disk)
    [all...]
volume_manager_observer.h 24 const chromeos::disks::DiskMountManager::Disk& disk, bool mounting) = 0;
28 const chromeos::disks::DiskMountManager::Disk& disk) = 0;
fake_disk_mount_manager.cc 46 const chromeos::disks::DiskMountManager::DiskMap&
51 const chromeos::disks::DiskMountManager::Disk*
60 const chromeos::disks::DiskMountManager::MountPointMap&
81 FOR_EACH_OBSERVER(DiskMountManager::Observer, observers_,
82 OnMountEvent(DiskMountManager::MOUNTING,
97 FOR_EACH_OBSERVER(DiskMountManager::Observer, observers_,
98 OnMountEvent(DiskMountManager::UNMOUNTING,
volume_manager.cc 110 const chromeos::disks::DiskMountManager::MountPointInfo& mount_point,
111 const chromeos::disks::DiskMountManager::Disk* disk) {
146 chromeos::disks::DiskMountManager* disk_mount_manager)
201 // Subscribe to DiskMountManager.
254 const chromeos::disks::DiskMountManager::MountPointMap& mount_points =
256 for (chromeos::disks::DiskMountManager::MountPointMap::const_iterator it =
306 chromeos::disks::DiskMountManager::DiskEvent event,
307 const chromeos::disks::DiskMountManager::Disk* disk) {
315 case chromeos::disks::DiskMountManager::DISK_ADDED: {
341 case chromeos::disks::DiskMountManager::DISK_REMOVED
    [all...]
volume_manager_unittest.cc 61 virtual void OnDiskAdded(const chromeos::disks::DiskMountManager::Disk& disk,
71 const chromeos::disks::DiskMountManager::Disk& disk) OVERRIDE {
200 const chromeos::disks::DiskMountManager::Disk kDisk(
205 chromeos::disks::DiskMountManager::DISK_ADDED, &kDisk);
209 chromeos::disks::DiskMountManager::DISK_REMOVED, &kDisk);
213 chromeos::disks::DiskMountManager::DISK_CHANGED, &kDisk);
226 const chromeos::disks::DiskMountManager::Disk kEmptyDevicePathDisk(
231 chromeos::disks::DiskMountManager::DISK_ADDED, &kEmptyDevicePathDisk);
235 const chromeos::disks::DiskMountManager::Disk kMediaDisk(
239 chromeos::disks::DiskMountManager::DISK_ADDED, &kMediaDisk)
    [all...]
volume_manager_factory.cc 49 chromeos::disks::DiskMountManager::GetInstance());
  /external/chromium_org/chrome/browser/storage_monitor/
storage_monitor_chromeos.h 31 public disks::DiskMountManager::Observer {
46 // disks::DiskMountManager::Observer implementation.
47 virtual void OnDiskEvent(disks::DiskMountManager::DiskEvent event,
48 const disks::DiskMountManager::Disk* disk) OVERRIDE;
49 virtual void OnDeviceEvent(disks::DiskMountManager::DeviceEvent event,
52 disks::DiskMountManager::MountEvent event,
54 const disks::DiskMountManager::MountPointInfo& mount_info) OVERRIDE;
55 virtual void OnFormatEvent(disks::DiskMountManager::FormatEvent event,
79 void AddMountedPath(const disks::DiskMountManager::MountPointInfo& mount_info,
storage_monitor_chromeos.cc 28 std::string MakeDeviceUniqueId(const disks::DiskMountManager::Disk& disk) {
47 bool GetDeviceInfo(const disks::DiskMountManager::MountPointInfo& mount_info,
53 const disks::DiskMountManager::Disk* disk =
54 disks::DiskMountManager::GetInstance()->FindDiskBySourcePath(source_path);
82 const disks::DiskMountManager::MountPointInfo& mount_info) {
96 disks::DiskMountManager* manager = disks::DiskMountManager::GetInstance();
103 DCHECK(disks::DiskMountManager::GetInstance());
104 disks::DiskMountManager::GetInstance()->AddObserver(this);
120 const disks::DiskMountManager::MountPointMap& mount_point_map
    [all...]
storage_monitor_chromeos_unittest.cc 31 using disks::DiskMountManager;
74 disks::DiskMountManager::MountEvent event,
76 const disks::DiskMountManager::MountPointInfo& mount_info) OVERRIDE {
108 const DiskMountManager::MountPointInfo& mount_info,
117 const DiskMountManager::MountPointInfo& mount_info);
137 // Owned by DiskMountManager.
168 DiskMountManager::InitializeForTesting(disk_mount_manager_mock_);
190 DiskMountManager::Shutdown();
196 const DiskMountManager::MountPointInfo& mount_info,
208 monitor_->OnMountEvent(disks::DiskMountManager::MOUNTING, error_code
    [all...]
  /external/chromium_org/chrome/browser/chromeos/extensions/file_manager/
file_browser_private_apitest.cc 14 using chromeos::disks::DiskMountManager;
127 chromeos::disks::DiskMountManager::InitializeForTesting(
139 chromeos::disks::DiskMountManager::Shutdown();
183 mount_points_.insert(DiskMountManager::MountPointMap::value_type(
185 DiskMountManager::MountPointInfo(kTestMountPoints[i].source_path,
196 volumes_.insert(DiskMountManager::DiskMap::value_type(
198 new DiskMountManager::Disk(
224 const DiskMountManager::Disk* FindVolumeBySourcePath(
226 DiskMountManager::DiskMap::const_iterator volume_it =
233 DiskMountManager::DiskMap volumes_
    [all...]
private_api_mount.cc 23 using chromeos::disks::DiskMountManager;
82 DiskMountManager* disk_mount_manager = DiskMountManager::GetInstance();
127 DiskMountManager::GetInstance()->UnmountPath(
130 DiskMountManager::UnmountPathCallback());
event_router.h 104 const chromeos::disks::DiskMountManager::Disk& disk,
107 const chromeos::disks::DiskMountManager::Disk& disk) OVERRIDE;
138 // after calling notifying observers by DiskMountManager.

Completed in 172 milliseconds

1 2