OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_info
.h" | 5 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_info
.h" |
6 #include "base/logging.h" | 6 #include "base/logging.h" |
7 | 7 |
8 namespace chromeos { | 8 namespace chromeos { |
9 namespace file_system_provider { | 9 namespace file_system_provider { |
10 | 10 |
11 MountOptions::MountOptions() | 11 MountOptions::MountOptions() |
12 : writable(false), | 12 : writable(false), |
13 source(SOURCE_UNKNOWN), | |
14 supports_notify_tag(false), | 13 supports_notify_tag(false), |
15 opened_files_limit(0) { | 14 opened_files_limit(0) { |
16 } | 15 } |
17 | 16 |
18 MountOptions::MountOptions(const std::string& file_system_id, | 17 MountOptions::MountOptions(const std::string& file_system_id, |
19 const std::string& display_name) | 18 const std::string& display_name) |
20 : file_system_id(file_system_id), | 19 : file_system_id(file_system_id), |
21 display_name(display_name), | 20 display_name(display_name), |
22 writable(false), | 21 writable(false), |
23 source(SOURCE_UNKNOWN), | |
24 supports_notify_tag(false), | 22 supports_notify_tag(false), |
25 opened_files_limit(0) { | 23 opened_files_limit(0) { |
26 } | 24 } |
27 | 25 |
28 ProvidedFileSystemInfo::ProvidedFileSystemInfo() | 26 ProvidedFileSystemInfo::ProvidedFileSystemInfo() |
29 : writable_(false), source_(SOURCE_UNKNOWN), supports_notify_tag_(false) { | 27 : writable_(false), supports_notify_tag_(false) { |
30 } | 28 } |
31 | 29 |
32 ProvidedFileSystemInfo::ProvidedFileSystemInfo( | 30 ProvidedFileSystemInfo::ProvidedFileSystemInfo( |
33 const std::string& extension_id, | 31 const std::string& extension_id, |
34 const MountOptions& mount_options, | 32 const MountOptions& mount_options, |
35 const base::FilePath& mount_path) | 33 const base::FilePath& mount_path) |
36 : extension_id_(extension_id), | 34 : extension_id_(extension_id), |
37 file_system_id_(mount_options.file_system_id), | 35 file_system_id_(mount_options.file_system_id), |
38 display_name_(mount_options.display_name), | 36 display_name_(mount_options.display_name), |
39 writable_(mount_options.writable), | 37 writable_(mount_options.writable), |
40 source_(mount_options.source), | |
41 supports_notify_tag_(mount_options.supports_notify_tag), | 38 supports_notify_tag_(mount_options.supports_notify_tag), |
42 opened_files_limit_(mount_options.opened_files_limit), | 39 opened_files_limit_(mount_options.opened_files_limit), |
43 mount_path_(mount_path) { | 40 mount_path_(mount_path) { |
44 DCHECK_LE(0, mount_options.opened_files_limit); | 41 DCHECK_LE(0, mount_options.opened_files_limit); |
45 } | 42 } |
46 | 43 |
47 ProvidedFileSystemInfo::~ProvidedFileSystemInfo() {} | 44 ProvidedFileSystemInfo::~ProvidedFileSystemInfo() {} |
48 | 45 |
49 } // namespace file_system_provider | 46 } // namespace file_system_provider |
50 } // namespace chromeos | 47 } // namespace chromeos |
OLD | NEW |