Chromium Code Reviews| 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_PORTABLE_DEVICE_WATCHER_WIN_H_ | 5 #ifndef COMPONENTS_STORAGE_MONITOR_PORTABLE_DEVICE_WATCHER_WIN_H_ |
| 6 #define COMPONENTS_STORAGE_MONITOR_PORTABLE_DEVICE_WATCHER_WIN_H_ | 6 #define COMPONENTS_STORAGE_MONITOR_PORTABLE_DEVICE_WATCHER_WIN_H_ |
| 7 | 7 |
| 8 #include <portabledeviceapi.h> | 8 #include <portabledeviceapi.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 125 // Attached media transfer protocol device map. | 125 // Attached media transfer protocol device map. |
| 126 MTPDeviceMap device_map_; | 126 MTPDeviceMap device_map_; |
| 127 | 127 |
| 128 // Attached media transfer protocol device storage objects map. | 128 // Attached media transfer protocol device storage objects map. |
| 129 MTPStorageMap storage_map_; | 129 MTPStorageMap storage_map_; |
| 130 | 130 |
| 131 // The task runner used to execute tasks that may take a long time and thus | 131 // The task runner used to execute tasks that may take a long time and thus |
| 132 // should not be performed on the UI thread. | 132 // should not be performed on the UI thread. |
| 133 scoped_refptr<base::SequencedTaskRunner> media_task_runner_; | 133 scoped_refptr<base::SequencedTaskRunner> media_task_runner_; |
| 134 | 134 |
| 135 // The notifications object to use to signal newly attached devices. | |
| 136 StorageMonitor::Receiver* storage_notifications_; | |
| 137 | |
|
blundell
2014/09/09 14:50:52
No change in initialization order is needed?
MRV
2014/09/10 03:01:20
I agree with you Mr.Blundell, I thought the order
blundell
2014/09/10 06:25:04
You've done the right thing, thanks.
| |
| 135 // Used by |media_task_runner_| to create cancelable callbacks. | 138 // Used by |media_task_runner_| to create cancelable callbacks. |
| 136 base::WeakPtrFactory<PortableDeviceWatcherWin> weak_ptr_factory_; | 139 base::WeakPtrFactory<PortableDeviceWatcherWin> weak_ptr_factory_; |
| 137 | 140 |
| 138 // The notifications object to use to signal newly attached devices. | |
| 139 StorageMonitor::Receiver* storage_notifications_; | |
| 140 | |
| 141 DISALLOW_COPY_AND_ASSIGN(PortableDeviceWatcherWin); | 141 DISALLOW_COPY_AND_ASSIGN(PortableDeviceWatcherWin); |
| 142 }; | 142 }; |
| 143 | 143 |
| 144 } // namespace storage_monitor | 144 } // namespace storage_monitor |
| 145 | 145 |
| 146 #endif // COMPONENTS_STORAGE_MONITOR_PORTABLE_DEVICE_WATCHER_WIN_H_ | 146 #endif // COMPONENTS_STORAGE_MONITOR_PORTABLE_DEVICE_WATCHER_WIN_H_ |
| OLD | NEW |