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

Side by Side Diff: chromeos/dbus/fake_cros_disks_client.h

Issue 2392503002: Allow to pass remount option to Mount method of cros_disks_client. (Closed)
Patch Set: Rename enum item names to be more readable. Created 4 years, 2 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/dbus/cros_disks_client_unittest.cc ('k') | chromeos/dbus/fake_cros_disks_client.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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 CHROMEOS_DBUS_FAKE_CROS_DISKS_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_FAKE_CROS_DISKS_CLIENT_H_
6 #define CHROMEOS_DBUS_FAKE_CROS_DISKS_CLIENT_H_ 6 #define CHROMEOS_DBUS_FAKE_CROS_DISKS_CLIENT_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 13 matching lines...) Expand all
24 // CrosDisksClient overrides 24 // CrosDisksClient overrides
25 void Init(dbus::Bus* bus) override; 25 void Init(dbus::Bus* bus) override;
26 26
27 // Performs fake mounting for archive files. Instead of actually extracting 27 // Performs fake mounting for archive files. Instead of actually extracting
28 // contents of archive files, this function creates a directory that 28 // contents of archive files, this function creates a directory that
29 // contains a dummy file. 29 // contains a dummy file.
30 void Mount(const std::string& source_path, 30 void Mount(const std::string& source_path,
31 const std::string& source_format, 31 const std::string& source_format,
32 const std::string& mount_label, 32 const std::string& mount_label,
33 MountAccessMode access_mode, 33 MountAccessMode access_mode,
34 RemountOption remount,
34 const base::Closure& callback, 35 const base::Closure& callback,
35 const base::Closure& error_callback) override; 36 const base::Closure& error_callback) override;
37
36 // Deletes the directory created in Mount(). 38 // Deletes the directory created in Mount().
37 void Unmount(const std::string& device_path, 39 void Unmount(const std::string& device_path,
38 UnmountOptions options, 40 UnmountOptions options,
39 const base::Closure& callback, 41 const base::Closure& callback,
40 const base::Closure& error_callback) override; 42 const base::Closure& error_callback) override;
41 void EnumerateAutoMountableDevices( 43 void EnumerateAutoMountableDevices(
42 const EnumerateAutoMountableDevicesCallback& callback, 44 const EnumerateAutoMountableDevicesCallback& callback,
43 const base::Closure& error_callback) override; 45 const base::Closure& error_callback) override;
44 void EnumerateMountEntries(const EnumerateMountEntriesCallback& callback, 46 void EnumerateMountEntries(const EnumerateMountEntriesCallback& callback,
45 const base::Closure& error_callback) override; 47 const base::Closure& error_callback) override;
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 int format_call_count_; 129 int format_call_count_;
128 std::string last_format_device_path_; 130 std::string last_format_device_path_;
129 std::string last_format_filesystem_; 131 std::string last_format_filesystem_;
130 bool format_success_; 132 bool format_success_;
131 std::set<base::FilePath> mounted_paths_; 133 std::set<base::FilePath> mounted_paths_;
132 }; 134 };
133 135
134 } // namespace chromeos 136 } // namespace chromeos
135 137
136 #endif // CHROMEOS_DBUS_FAKE_CROS_DISKS_CLIENT_H_ 138 #endif // CHROMEOS_DBUS_FAKE_CROS_DISKS_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/cros_disks_client_unittest.cc ('k') | chromeos/dbus/fake_cros_disks_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698