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

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

Issue 1549993003: Switch to standard integer types in components/, part 4 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 // TransientDeviceIds keep track of transient IDs for removable devices, so 5 // TransientDeviceIds keep track of transient IDs for removable devices, so
6 // persistent device IDs are not exposed to renderers. Once a removable device 6 // persistent device IDs are not exposed to renderers. Once a removable device
7 // gets mapped to a transient ID, the mapping remains valid for the duration of 7 // gets mapped to a transient ID, the mapping remains valid for the duration of
8 // TransientDeviceIds' lifetime. 8 // TransientDeviceIds' lifetime.
9 9
10 #ifndef COMPONENTS_STORAGE_MONITOR_TRANSIENT_DEVICE_IDS_H_ 10 #ifndef COMPONENTS_STORAGE_MONITOR_TRANSIENT_DEVICE_IDS_H_
11 #define COMPONENTS_STORAGE_MONITOR_TRANSIENT_DEVICE_IDS_H_ 11 #define COMPONENTS_STORAGE_MONITOR_TRANSIENT_DEVICE_IDS_H_
12 12
13 #include <map> 13 #include <map>
14 #include <string> 14 #include <string>
15 15
16 #include "base/basictypes.h" 16 #include "base/macros.h"
17 #include "base/threading/thread_checker.h" 17 #include "base/threading/thread_checker.h"
18 18
19 namespace storage_monitor { 19 namespace storage_monitor {
20 20
21 class TransientDeviceIds { 21 class TransientDeviceIds {
22 public: 22 public:
23 TransientDeviceIds(); 23 TransientDeviceIds();
24 ~TransientDeviceIds(); 24 ~TransientDeviceIds();
25 25
26 // Returns the transient ID for a given |device_id|. 26 // Returns the transient ID for a given |device_id|.
(...skipping 13 matching lines...) Expand all
40 IdMap transient_id_map_; 40 IdMap transient_id_map_;
41 41
42 base::ThreadChecker thread_checker_; 42 base::ThreadChecker thread_checker_;
43 43
44 DISALLOW_COPY_AND_ASSIGN(TransientDeviceIds); 44 DISALLOW_COPY_AND_ASSIGN(TransientDeviceIds);
45 }; 45 };
46 46
47 } // namespace storage_monitor 47 } // namespace storage_monitor
48 48
49 #endif // COMPONENTS_STORAGE_MONITOR_TRANSIENT_DEVICE_IDS_H_ 49 #endif // COMPONENTS_STORAGE_MONITOR_TRANSIENT_DEVICE_IDS_H_
OLDNEW
« no previous file with comments | « components/storage_monitor/test_volume_mount_watcher_win.cc ('k') | components/storage_monitor/volume_mount_watcher_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698