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