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 "components/storage_monitor/volume_mount_watcher_win.h" | 5 #include "components/storage_monitor/volume_mount_watcher_win.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 12 matching lines...) Expand all Loading... |
23 #include "base/strings/stringprintf.h" | 23 #include "base/strings/stringprintf.h" |
24 #include "base/strings/utf_string_conversions.h" | 24 #include "base/strings/utf_string_conversions.h" |
25 #include "base/sys_info.h" | 25 #include "base/sys_info.h" |
26 #include "base/task_runner_util.h" | 26 #include "base/task_runner_util.h" |
27 #include "base/threading/sequenced_worker_pool.h" | 27 #include "base/threading/sequenced_worker_pool.h" |
28 #include "base/time/time.h" | 28 #include "base/time/time.h" |
29 #include "base/win/scoped_handle.h" | 29 #include "base/win/scoped_handle.h" |
30 #include "components/storage_monitor/media_storage_util.h" | 30 #include "components/storage_monitor/media_storage_util.h" |
31 #include "components/storage_monitor/storage_info.h" | 31 #include "components/storage_monitor/storage_info.h" |
32 #include "content/public/browser/browser_thread.h" | 32 #include "content/public/browser/browser_thread.h" |
33 #include "content/public/browser/user_metrics.h" | |
34 | 33 |
35 using content::BrowserThread; | 34 using content::BrowserThread; |
36 | 35 |
37 namespace storage_monitor { | 36 namespace storage_monitor { |
38 | 37 |
39 namespace { | 38 namespace { |
40 | 39 |
41 const DWORD kMaxPathBufLen = MAX_PATH + 1; | 40 const DWORD kMaxPathBufLen = MAX_PATH + 1; |
42 | 41 |
43 const char kDeviceInfoTaskRunnerName[] = "device-info-task-runner"; | 42 const char kDeviceInfoTaskRunnerName[] = "device-info-task-runner"; |
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
548 callback.Run(StorageMonitor::EJECT_FAILURE); | 547 callback.Run(StorageMonitor::EJECT_FAILURE); |
549 return; | 548 return; |
550 } | 549 } |
551 | 550 |
552 device_info_task_runner_->PostTask( | 551 device_info_task_runner_->PostTask( |
553 FROM_HERE, base::Bind(&EjectDeviceInThreadPool, device, callback, | 552 FROM_HERE, base::Bind(&EjectDeviceInThreadPool, device, callback, |
554 device_info_task_runner_, 0)); | 553 device_info_task_runner_, 0)); |
555 } | 554 } |
556 | 555 |
557 } // namespace storage_monitor | 556 } // namespace storage_monitor |
OLD | NEW |