| 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/mounted_disk_monitor.h" | 5 #include "chrome/browser/chromeos/file_manager/mounted_disk_monitor.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/location.h" |
| 9 #include "base/message_loop/message_loop_proxy.h" |
| 8 #include "chromeos/dbus/power_manager_client.h" | 10 #include "chromeos/dbus/power_manager_client.h" |
| 9 #include "content/public/browser/browser_thread.h" | |
| 10 | 11 |
| 11 using chromeos::disks::DiskMountManager; | 12 using chromeos::disks::DiskMountManager; |
| 12 | 13 |
| 13 namespace file_manager { | 14 namespace file_manager { |
| 14 namespace { | 15 namespace { |
| 15 | 16 |
| 16 // Time span of the resuming process. All unmount events sent during this | 17 // Time span of the resuming process. All unmount events sent during this |
| 17 // time are considered as being part of remounting process, since remounting | 18 // time are considered as being part of remounting process, since remounting |
| 18 // is done just after resuming. | 19 // is done just after resuming. |
| 19 const base::TimeDelta kResumingTimeSpan = base::TimeDelta::FromSeconds(5); | 20 const base::TimeDelta kResumingTimeSpan = base::TimeDelta::FromSeconds(5); |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 chromeos::FormatError error_code, | 110 chromeos::FormatError error_code, |
| 110 const std::string& device_path) { | 111 const std::string& device_path) { |
| 111 } | 112 } |
| 112 | 113 |
| 113 void MountedDiskMonitor::Reset() { | 114 void MountedDiskMonitor::Reset() { |
| 114 unmounted_while_resuming_.clear(); | 115 unmounted_while_resuming_.clear(); |
| 115 is_resuming_ = false; | 116 is_resuming_ = false; |
| 116 } | 117 } |
| 117 | 118 |
| 118 } // namespace file_manager | 119 } // namespace file_manager |
| OLD | NEW |