| 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 #ifndef COMPONENTS_STORAGE_MONITOR_STORAGE_MONITOR_WIN_H_ | 5 #ifndef COMPONENTS_STORAGE_MONITOR_STORAGE_MONITOR_WIN_H_ |
| 6 #define COMPONENTS_STORAGE_MONITOR_STORAGE_MONITOR_WIN_H_ | 6 #define COMPONENTS_STORAGE_MONITOR_STORAGE_MONITOR_WIN_H_ |
| 7 | 7 |
| 8 #include <memory> |
| 9 |
| 8 #include "base/macros.h" | 10 #include "base/macros.h" |
| 9 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/scoped_ptr.h" | |
| 11 #include "components/storage_monitor/storage_monitor.h" | 12 #include "components/storage_monitor/storage_monitor.h" |
| 12 | 13 |
| 13 namespace base { | 14 namespace base { |
| 14 class FilePath; | 15 class FilePath; |
| 15 } | 16 } |
| 16 | 17 |
| 17 namespace storage_monitor { | 18 namespace storage_monitor { |
| 18 | 19 |
| 19 class PortableDeviceWatcherWin; | 20 class PortableDeviceWatcherWin; |
| 20 class TestStorageMonitorWin; | 21 class TestStorageMonitorWin; |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 ATOM window_class_; | 71 ATOM window_class_; |
| 71 | 72 |
| 72 // The handle of the module that contains the window procedure of |window_|. | 73 // The handle of the module that contains the window procedure of |window_|. |
| 73 HMODULE instance_; | 74 HMODULE instance_; |
| 74 HWND window_; | 75 HWND window_; |
| 75 | 76 |
| 76 // The handle of a registration for shell notifications. | 77 // The handle of a registration for shell notifications. |
| 77 ULONG shell_change_notify_id_; | 78 ULONG shell_change_notify_id_; |
| 78 | 79 |
| 79 // The volume mount point watcher, used to manage the mounted devices. | 80 // The volume mount point watcher, used to manage the mounted devices. |
| 80 scoped_ptr<VolumeMountWatcherWin> volume_mount_watcher_; | 81 std::unique_ptr<VolumeMountWatcherWin> volume_mount_watcher_; |
| 81 | 82 |
| 82 // The portable device watcher, used to manage media transfer protocol | 83 // The portable device watcher, used to manage media transfer protocol |
| 83 // devices. | 84 // devices. |
| 84 scoped_ptr<PortableDeviceWatcherWin> portable_device_watcher_; | 85 std::unique_ptr<PortableDeviceWatcherWin> portable_device_watcher_; |
| 85 | 86 |
| 86 DISALLOW_COPY_AND_ASSIGN(StorageMonitorWin); | 87 DISALLOW_COPY_AND_ASSIGN(StorageMonitorWin); |
| 87 }; | 88 }; |
| 88 | 89 |
| 89 } // namespace storage_monitor | 90 } // namespace storage_monitor |
| 90 | 91 |
| 91 #endif // COMPONENTS_STORAGE_MONITOR_STORAGE_MONITOR_WIN_H_ | 92 #endif // COMPONENTS_STORAGE_MONITOR_STORAGE_MONITOR_WIN_H_ |
| OLD | NEW |