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/storage_monitor_win.h" | 5 #include "components/storage_monitor/storage_monitor_win.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 #include <dbt.h> | 8 #include <dbt.h> |
9 #include <fileapi.h> | 9 #include <fileapi.h> |
10 #include <shlobj.h> | 10 #include <shlobj.h> |
| 11 #include <stddef.h> |
11 | 12 |
12 #include "base/win/wrapped_window_proc.h" | 13 #include "base/win/wrapped_window_proc.h" |
13 #include "components/storage_monitor/portable_device_watcher_win.h" | 14 #include "components/storage_monitor/portable_device_watcher_win.h" |
14 #include "components/storage_monitor/removable_device_constants.h" | 15 #include "components/storage_monitor/removable_device_constants.h" |
15 #include "components/storage_monitor/storage_info.h" | 16 #include "components/storage_monitor/storage_info.h" |
16 #include "components/storage_monitor/volume_mount_watcher_win.h" | 17 #include "components/storage_monitor/volume_mount_watcher_win.h" |
17 | 18 |
18 #define WM_USER_MEDIACHANGED (WM_USER + 5) | 19 #define WM_USER_MEDIACHANGED (WM_USER + 5) |
19 | 20 |
20 // StorageMonitorWin ------------------------------------------------------- | 21 // StorageMonitorWin ------------------------------------------------------- |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 void StorageMonitorWin::OnMediaChange(WPARAM wparam, LPARAM lparam) { | 191 void StorageMonitorWin::OnMediaChange(WPARAM wparam, LPARAM lparam) { |
191 volume_mount_watcher_->OnMediaChange(wparam, lparam); | 192 volume_mount_watcher_->OnMediaChange(wparam, lparam); |
192 } | 193 } |
193 | 194 |
194 StorageMonitor* StorageMonitor::CreateInternal() { | 195 StorageMonitor* StorageMonitor::CreateInternal() { |
195 return new StorageMonitorWin(new VolumeMountWatcherWin(), | 196 return new StorageMonitorWin(new VolumeMountWatcherWin(), |
196 new PortableDeviceWatcherWin()); | 197 new PortableDeviceWatcherWin()); |
197 } | 198 } |
198 | 199 |
199 } // namespace storage_monitor | 200 } // namespace storage_monitor |
OLD | NEW |