OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_BROWSER_SYSTEM_MONITOR_PORTABLE_DEVICE_WATCHER_WIN_H_ | 5 #ifndef CHROME_BROWSER_SYSTEM_MONITOR_PORTABLE_DEVICE_WATCHER_WIN_H_ |
6 #define CHROME_BROWSER_SYSTEM_MONITOR_PORTABLE_DEVICE_WATCHER_WIN_H_ | 6 #define CHROME_BROWSER_SYSTEM_MONITOR_PORTABLE_DEVICE_WATCHER_WIN_H_ |
7 | 7 |
8 #include <portabledeviceapi.h> | 8 #include <portabledeviceapi.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
11 #include <string> | 11 #include <string> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
15 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
16 #include "base/string16.h" | 16 #include "base/string16.h" |
17 #include "chrome/browser/system_monitor/removable_storage_notifications.h" | 17 #include "chrome/browser/system_monitor/removable_storage_notifications.h" |
18 | 18 |
19 namespace base { | 19 namespace base { |
20 class SequencedTaskRunner; | 20 class SequencedTaskRunner; |
21 } | 21 } |
22 | 22 |
23 class FilePath; | |
24 | |
25 namespace chrome { | 23 namespace chrome { |
26 | 24 |
27 namespace test { | 25 namespace test { |
28 class TestPortableDeviceWatcherWin; | 26 class TestPortableDeviceWatcherWin; |
29 } | 27 } |
30 | 28 |
31 // This class watches the portable device mount points and sends notifications | 29 // This class watches the portable device mount points and sends notifications |
32 // about the attached/detached media transfer protocol (MTP) devices. | 30 // about the attached/detached media transfer protocol (MTP) devices. |
33 // This is a singleton class instantiated by | 31 // This is a singleton class instantiated by |
34 // RemovableDeviceNotificationsWindowWin. This class is created, destroyed and | 32 // RemovableDeviceNotificationsWindowWin. This class is created, destroyed and |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 | 131 |
134 // Used by |media_task_runner_| to create cancelable callbacks. | 132 // Used by |media_task_runner_| to create cancelable callbacks. |
135 base::WeakPtrFactory<PortableDeviceWatcherWin> weak_ptr_factory_; | 133 base::WeakPtrFactory<PortableDeviceWatcherWin> weak_ptr_factory_; |
136 | 134 |
137 DISALLOW_COPY_AND_ASSIGN(PortableDeviceWatcherWin); | 135 DISALLOW_COPY_AND_ASSIGN(PortableDeviceWatcherWin); |
138 }; | 136 }; |
139 | 137 |
140 } // namespace chrome | 138 } // namespace chrome |
141 | 139 |
142 #endif // CHROME_BROWSER_SYSTEM_MONITOR_PORTABLE_DEVICE_WATCHER_WIN_H_ | 140 #endif // CHROME_BROWSER_SYSTEM_MONITOR_PORTABLE_DEVICE_WATCHER_WIN_H_ |
OLD | NEW |