| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_manager/volume_manager.h" | 5 #include "chrome/browser/chromeos/file_manager/volume_manager.h" |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 std::string name(kFileManagerMTPMountNamePrefix); | 226 std::string name(kFileManagerMTPMountNamePrefix); |
| 227 name += info.device_id(); | 227 name += info.device_id(); |
| 228 return name; | 228 return name; |
| 229 } | 229 } |
| 230 | 230 |
| 231 } // namespace | 231 } // namespace |
| 232 | 232 |
| 233 VolumeInfo::VolumeInfo() | 233 VolumeInfo::VolumeInfo() |
| 234 : file_system_id(0), | 234 : file_system_id(0), |
| 235 type(VOLUME_TYPE_GOOGLE_DRIVE), | 235 type(VOLUME_TYPE_GOOGLE_DRIVE), |
| 236 device_type(chromeos::DEVICE_TYPE_UNKNOWN), |
| 236 mount_condition(chromeos::disks::MOUNT_CONDITION_NONE), | 237 mount_condition(chromeos::disks::MOUNT_CONDITION_NONE), |
| 237 is_parent(false), | 238 is_parent(false), |
| 238 is_read_only(false) {} | 239 is_read_only(false) {} |
| 239 | 240 |
| 240 VolumeInfo::~VolumeInfo() { | 241 VolumeInfo::~VolumeInfo() { |
| 241 } | 242 } |
| 242 | 243 |
| 243 VolumeManager::VolumeManager( | 244 VolumeManager::VolumeManager( |
| 244 Profile* profile, | 245 Profile* profile, |
| 245 drive::DriveIntegrationService* drive_integration_service, | 246 drive::DriveIntegrationService* drive_integration_service, |
| (...skipping 569 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 815 return; | 816 return; |
| 816 if (error_code == chromeos::MOUNT_ERROR_NONE) | 817 if (error_code == chromeos::MOUNT_ERROR_NONE) |
| 817 mounted_volumes_.erase(volume_info.volume_id); | 818 mounted_volumes_.erase(volume_info.volume_id); |
| 818 | 819 |
| 819 FOR_EACH_OBSERVER(VolumeManagerObserver, | 820 FOR_EACH_OBSERVER(VolumeManagerObserver, |
| 820 observers_, | 821 observers_, |
| 821 OnVolumeUnmounted(error_code, volume_info)); | 822 OnVolumeUnmounted(error_code, volume_info)); |
| 822 } | 823 } |
| 823 | 824 |
| 824 } // namespace file_manager | 825 } // namespace file_manager |
| OLD | NEW |