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

Side by Side Diff: chrome/browser/chromeos/file_manager/fake_disk_mount_manager.h

Issue 379743004: Add a method in DiskMountManager to refresh mount entries in addition to devices. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed review comments + Fix up MockDiskMountManager. Created 6 years, 5 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 | « no previous file | chrome/browser/chromeos/file_manager/fake_disk_mount_manager.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 2013 The Chromium Authors. All rights reserved. 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 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_FILE_MANAGER_FAKE_DISK_MOUNT_MANAGER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_MANAGER_FAKE_DISK_MOUNT_MANAGER_H_
6 #define CHROME_BROWSER_CHROMEOS_FILE_MANAGER_FAKE_DISK_MOUNT_MANAGER_H_ 6 #define CHROME_BROWSER_CHROMEOS_FILE_MANAGER_FAKE_DISK_MOUNT_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 return unmount_requests_; 48 return unmount_requests_;
49 } 49 }
50 50
51 // DiskMountManager overrides. 51 // DiskMountManager overrides.
52 virtual void AddObserver(Observer* observer) OVERRIDE; 52 virtual void AddObserver(Observer* observer) OVERRIDE;
53 virtual void RemoveObserver(Observer* observer) OVERRIDE; 53 virtual void RemoveObserver(Observer* observer) OVERRIDE;
54 virtual const DiskMap& disks() const OVERRIDE; 54 virtual const DiskMap& disks() const OVERRIDE;
55 virtual const Disk* FindDiskBySourcePath( 55 virtual const Disk* FindDiskBySourcePath(
56 const std::string& source_path) const OVERRIDE; 56 const std::string& source_path) const OVERRIDE;
57 virtual const MountPointMap& mount_points() const OVERRIDE; 57 virtual const MountPointMap& mount_points() const OVERRIDE;
58 virtual void RequestMountInfoRefresh() OVERRIDE; 58 virtual void EnsureMountInfoRefreshed(
59 const EnsureMountInfoRefreshedCallback& callback) OVERRIDE;
59 virtual void MountPath(const std::string& source_path, 60 virtual void MountPath(const std::string& source_path,
60 const std::string& source_format, 61 const std::string& source_format,
61 const std::string& mount_label, 62 const std::string& mount_label,
62 chromeos::MountType type) OVERRIDE; 63 chromeos::MountType type) OVERRIDE;
63 virtual void UnmountPath(const std::string& mount_path, 64 virtual void UnmountPath(const std::string& mount_path,
64 chromeos::UnmountOptions options, 65 chromeos::UnmountOptions options,
65 const UnmountPathCallback& callback) OVERRIDE; 66 const UnmountPathCallback& callback) OVERRIDE;
66 virtual void FormatMountedDevice(const std::string& mount_path) OVERRIDE; 67 virtual void FormatMountedDevice(const std::string& mount_path) OVERRIDE;
67 virtual void UnmountDeviceRecursively( 68 virtual void UnmountDeviceRecursively(
68 const std::string& device_path, 69 const std::string& device_path,
(...skipping 12 matching lines...) Expand all
81 82
82 std::vector<MountRequest> mount_requests_; 83 std::vector<MountRequest> mount_requests_;
83 std::vector<UnmountRequest> unmount_requests_; 84 std::vector<UnmountRequest> unmount_requests_;
84 85
85 DISALLOW_COPY_AND_ASSIGN(FakeDiskMountManager); 86 DISALLOW_COPY_AND_ASSIGN(FakeDiskMountManager);
86 }; 87 };
87 88
88 } // namespace file_manager 89 } // namespace file_manager
89 90
90 #endif // CHROME_BROWSER_CHROMEOS_FILE_MANAGER_FAKE_DISK_MOUNT_MANAGER_H_ 91 #endif // CHROME_BROWSER_CHROMEOS_FILE_MANAGER_FAKE_DISK_MOUNT_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/file_manager/fake_disk_mount_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698