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

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

Issue 573133003: Code re-factor related to WeakPtrFactory in src/component module (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_VOLUME_MOUNT_WATCHER_WIN_H_ 5 #ifndef COMPONENTS_STORAGE_MONITOR_VOLUME_MOUNT_WATCHER_WIN_H_
6 #define COMPONENTS_STORAGE_MONITOR_VOLUME_MOUNT_WATCHER_WIN_H_ 6 #define COMPONENTS_STORAGE_MONITOR_VOLUME_MOUNT_WATCHER_WIN_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 105
106 // Maintain a set of device attribute check calls in-flight. Only accessed 106 // Maintain a set of device attribute check calls in-flight. Only accessed
107 // on the UI thread. This is to try and prevent the same device from 107 // on the UI thread. This is to try and prevent the same device from
108 // occupying our worker pool in case of windows API call hangs. 108 // occupying our worker pool in case of windows API call hangs.
109 std::set<base::FilePath> pending_device_checks_; 109 std::set<base::FilePath> pending_device_checks_;
110 110
111 // A map from device mount point to device metadata. Only accessed on the UI 111 // A map from device mount point to device metadata. Only accessed on the UI
112 // thread. 112 // thread.
113 MountPointDeviceMetadataMap device_metadata_; 113 MountPointDeviceMetadataMap device_metadata_;
114 114
115 base::WeakPtrFactory<VolumeMountWatcherWin> weak_factory_;
116
117 // The notifications object to use to signal newly attached volumes. Only 115 // The notifications object to use to signal newly attached volumes. Only
118 // removable devices will be notified. 116 // removable devices will be notified.
119 StorageMonitor::Receiver* notifications_; 117 StorageMonitor::Receiver* notifications_;
120 118
119 base::WeakPtrFactory<VolumeMountWatcherWin> weak_factory_;
120
121 DISALLOW_COPY_AND_ASSIGN(VolumeMountWatcherWin); 121 DISALLOW_COPY_AND_ASSIGN(VolumeMountWatcherWin);
122 }; 122 };
123 123
124 } // namespace storage_monitor 124 } // namespace storage_monitor
125 125
126 #endif // COMPONENTS_STORAGE_MONITOR_VOLUME_MOUNT_WATCHER_WIN_H_ 126 #endif // COMPONENTS_STORAGE_MONITOR_VOLUME_MOUNT_WATCHER_WIN_H_
OLDNEW
« no previous file with comments | « components/policy/core/common/async_policy_provider.h ('k') | components/storage_monitor/volume_mount_watcher_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698