1 // Copyright 2014 The Chromium 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.
5 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_info.h"
6 #include "base/logging.h"
9 namespace file_system_provider
{
11 MountOptions::MountOptions()
12 : writable(false), supports_notify_tag(false), opened_files_limit(0) {
15 MountOptions::MountOptions(const std::string
& file_system_id
,
16 const std::string
& display_name
)
17 : file_system_id(file_system_id
),
18 display_name(display_name
),
20 supports_notify_tag(false),
21 opened_files_limit(0) {
24 ProvidedFileSystemInfo::ProvidedFileSystemInfo()
25 : writable_(false), supports_notify_tag_(false) {
28 ProvidedFileSystemInfo::ProvidedFileSystemInfo(
29 const std::string
& extension_id
,
30 const MountOptions
& mount_options
,
31 const base::FilePath
& mount_path
)
32 : extension_id_(extension_id
),
33 file_system_id_(mount_options
.file_system_id
),
34 display_name_(mount_options
.display_name
),
35 writable_(mount_options
.writable
),
36 supports_notify_tag_(mount_options
.supports_notify_tag
),
37 opened_files_limit_(mount_options
.opened_files_limit
),
38 mount_path_(mount_path
) {
39 DCHECK_LE(0, mount_options
.opened_files_limit
);
42 ProvidedFileSystemInfo::~ProvidedFileSystemInfo() {}
44 } // namespace file_system_provider
45 } // namespace chromeos