Ben Chan | 8fb742b | 2014-04-28 23:46:57 -0700 | [diff] [blame] | 1 | // Copyright (c) 2014 The Chromium OS Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef CROS_DISKS_MOUNT_ENTRY_H_ |
| 6 | #define CROS_DISKS_MOUNT_ENTRY_H_ |
| 7 | |
| 8 | #include <string> |
Ben Chan | 8fb742b | 2014-04-28 23:46:57 -0700 | [diff] [blame] | 9 | |
Ben Chan | 8fb742b | 2014-04-28 23:46:57 -0700 | [diff] [blame] | 10 | #include <chromeos/dbus/service_constants.h> |
Ben Chan | 8fb742b | 2014-04-28 23:46:57 -0700 | [diff] [blame] | 11 | |
| 12 | namespace cros_disks { |
| 13 | |
Ben Chan | 0214e30 | 2017-10-17 15:39:16 -0700 | [diff] [blame] | 14 | struct MountEntry { |
Ben Chan | 8fb742b | 2014-04-28 23:46:57 -0700 | [diff] [blame] | 15 | public: |
| 16 | MountEntry(MountErrorType error_type, |
| 17 | const std::string& source_path, |
| 18 | MountSourceType source_type, |
Tatsuhisa Yamaguchi | 5a6a303 | 2016-08-19 20:03:54 +0900 | [diff] [blame] | 19 | const std::string& mount_path, |
Ben Chan | 0214e30 | 2017-10-17 15:39:16 -0700 | [diff] [blame] | 20 | bool is_read_only) |
| 21 | : error_type(error_type), |
| 22 | source_path(source_path), |
| 23 | source_type(source_type), |
| 24 | mount_path(mount_path), |
| 25 | is_read_only(is_read_only) {} |
| 26 | |
Ben Chan | 40ecb9b | 2017-03-08 11:26:07 -0800 | [diff] [blame] | 27 | ~MountEntry() = default; |
Ben Chan | 8fb742b | 2014-04-28 23:46:57 -0700 | [diff] [blame] | 28 | |
Ben Chan | 0214e30 | 2017-10-17 15:39:16 -0700 | [diff] [blame] | 29 | MountErrorType error_type; |
| 30 | std::string source_path; |
| 31 | MountSourceType source_type; |
| 32 | std::string mount_path; |
| 33 | bool is_read_only; |
Ben Chan | 8fb742b | 2014-04-28 23:46:57 -0700 | [diff] [blame] | 34 | }; |
| 35 | |
| 36 | } // namespace cros_disks |
| 37 | |
| 38 | #endif // CROS_DISKS_MOUNT_ENTRY_H_ |