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"
7 #include "base/logging.h"
10 namespace file_system_provider
{
12 MountOptions::MountOptions()
14 supports_notify_tag(false),
15 opened_files_limit(0) {
18 MountOptions::MountOptions(const std::string
& file_system_id
,
19 const std::string
& display_name
)
20 : file_system_id(file_system_id
),
21 display_name(display_name
),
23 supports_notify_tag(false),
24 opened_files_limit(0) {
27 ProvidedFileSystemInfo::ProvidedFileSystemInfo()
29 supports_notify_tag_(false),
32 source_(extensions::SOURCE_FILE
) {
35 ProvidedFileSystemInfo::ProvidedFileSystemInfo(
36 const std::string
& extension_id
,
37 const MountOptions
& mount_options
,
38 const base::FilePath
& mount_path
,
41 extensions::FileSystemProviderSource source
)
42 : extension_id_(extension_id
),
43 file_system_id_(mount_options
.file_system_id
),
44 display_name_(mount_options
.display_name
),
45 writable_(mount_options
.writable
),
46 supports_notify_tag_(mount_options
.supports_notify_tag
),
47 opened_files_limit_(mount_options
.opened_files_limit
),
48 mount_path_(mount_path
),
49 configurable_(configurable
),
50 watchable_(watchable
),
52 DCHECK_LE(0, mount_options
.opened_files_limit
);
55 ProvidedFileSystemInfo::~ProvidedFileSystemInfo() {}
57 } // namespace file_system_provider
58 } // namespace chromeos