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

Side by Side Diff: chrome/browser/chromeos/disks/disk_mount_manager.h

Issue 10829160: Created a helper function "FindDiskBySourcePath" in DiskMountManager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 4 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
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 CHROME_BROWSER_CHROMEOS_DISKS_DISK_MOUNT_MANAGER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_DISKS_DISK_MOUNT_MANAGER_H_
6 #define CHROME_BROWSER_CHROMEOS_DISKS_DISK_MOUNT_MANAGER_H_ 6 #define CHROME_BROWSER_CHROMEOS_DISKS_DISK_MOUNT_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "chromeos/dbus/cros_disks_client.h" 10 #include "chromeos/dbus/cros_disks_client.h"
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 191
192 // Adds an observer. 192 // Adds an observer.
193 virtual void AddObserver(Observer* observer) = 0; 193 virtual void AddObserver(Observer* observer) = 0;
194 194
195 // Removes an observer. 195 // Removes an observer.
196 virtual void RemoveObserver(Observer* observer) = 0; 196 virtual void RemoveObserver(Observer* observer) = 0;
197 197
198 // Gets the list of disks found. 198 // Gets the list of disks found.
199 virtual const DiskMap& disks() const = 0; 199 virtual const DiskMap& disks() const = 0;
200 200
201 // Returns Disk object corresponding to |source_path| or NULL on failure.
202 virtual const Disk* FindDiskBySourcePath(
203 const std::string& source_path) const = 0;
204
201 // Gets the list of mount points. 205 // Gets the list of mount points.
202 virtual const MountPointMap& mount_points() const = 0; 206 virtual const MountPointMap& mount_points() const = 0;
203 207
204 // Requests refreshing all the information about mounted disks. 208 // Requests refreshing all the information about mounted disks.
205 virtual void RequestMountInfoRefresh() = 0; 209 virtual void RequestMountInfoRefresh() = 0;
206 210
207 // Mounts a device. 211 // Mounts a device.
208 virtual void MountPath(const std::string& source_path, 212 virtual void MountPath(const std::string& source_path,
209 const std::string& source_format, 213 const std::string& source_format,
210 const std::string& mount_label, 214 const std::string& mount_label,
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 261
258 // Returns a pointer to the global DiskMountManager instance. 262 // Returns a pointer to the global DiskMountManager instance.
259 // Initialize() should already have been called. 263 // Initialize() should already have been called.
260 static DiskMountManager* GetInstance(); 264 static DiskMountManager* GetInstance();
261 }; 265 };
262 266
263 } // namespace disks 267 } // namespace disks
264 } // namespace chromeos 268 } // namespace chromeos
265 269
266 #endif // CHROME_BROWSER_CHROMEOS_DISKS_DISK_MOUNT_MANAGER_H_ 270 #endif // CHROME_BROWSER_CHROMEOS_DISKS_DISK_MOUNT_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698