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

Side by Side Diff: chromeos/disks/mock_disk_mount_manager.h

Issue 1162943002: Replace more ObserverList with base::ObserverList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@observer
Patch Set: Created 5 years, 6 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
« no previous file with comments | « chromeos/disks/disk_mount_manager.cc ('k') | chromeos/login/login_state.h » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROMEOS_DISKS_MOCK_DISK_MOUNT_MANAGER_H_ 5 #ifndef CHROMEOS_DISKS_MOCK_DISK_MOUNT_MANAGER_H_
6 #define CHROMEOS_DISKS_MOCK_DISK_MOUNT_MANAGER_H_ 6 #define CHROMEOS_DISKS_MOCK_DISK_MOUNT_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/observer_list.h" 10 #include "base/observer_list.h"
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 96
97 // Notifies observers about device status update. 97 // Notifies observers about device status update.
98 void NotifyDeviceChanged(DeviceEvent event, 98 void NotifyDeviceChanged(DeviceEvent event,
99 const std::string& path); 99 const std::string& path);
100 100
101 // Notifies observers about disk status update. 101 // Notifies observers about disk status update.
102 void NotifyDiskChanged(DiskEvent event, 102 void NotifyDiskChanged(DiskEvent event,
103 const DiskMountManager::Disk* disk); 103 const DiskMountManager::Disk* disk);
104 104
105 // The list of observers. 105 // The list of observers.
106 ObserverList<DiskMountManager::Observer> observers_; 106 base::ObserverList<DiskMountManager::Observer> observers_;
107 107
108 // The list of disks found. 108 // The list of disks found.
109 DiskMountManager::DiskMap disks_; 109 DiskMountManager::DiskMap disks_;
110 110
111 // The list of existing mount points. 111 // The list of existing mount points.
112 DiskMountManager::MountPointMap mount_points_; 112 DiskMountManager::MountPointMap mount_points_;
113 113
114 DISALLOW_COPY_AND_ASSIGN(MockDiskMountManager); 114 DISALLOW_COPY_AND_ASSIGN(MockDiskMountManager);
115 }; 115 };
116 116
117 } // namespace disks 117 } // namespace disks
118 } // namespace chromeos 118 } // namespace chromeos
119 119
120 #endif // CHROMEOS_DISKS_MOCK_DISK_MOUNT_MANAGER_H_ 120 #endif // CHROMEOS_DISKS_MOCK_DISK_MOUNT_MANAGER_H_
OLDNEW
« no previous file with comments | « chromeos/disks/disk_mount_manager.cc ('k') | chromeos/login/login_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698