Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(236)

Side by Side Diff: components/storage_monitor/portable_device_watcher_win.h

Issue 554233002: Refactoring the WeakPtrFactory usage, Member variables should appear before the WeakPtrFactory, to … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « components/signin/core/browser/signin_manager.cc ('k') | components/suggestions/suggestions_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698