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