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