OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_MEDIA_GALLERIES_WIN_PORTABLE_DEVICE_MAP_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_WIN_PORTABLE_DEVICE_MAP_SERVICE_H_ |
6 #define CHROME_BROWSER_MEDIA_GALLERIES_WIN_PORTABLE_DEVICE_MAP_SERVICE_H_ | 6 #define CHROME_BROWSER_MEDIA_GALLERIES_WIN_PORTABLE_DEVICE_MAP_SERVICE_H_ |
7 | 7 |
8 #include <portabledeviceapi.h> | 8 #include <portabledeviceapi.h> |
9 #include <map> | 9 #include <map> |
10 | 10 |
11 #include "base/lazy_instance.h" | 11 #include "base/lazy_instance.h" |
12 #include "base/string16.h" | 12 #include "base/strings/string16.h" |
13 #include "base/synchronization/lock.h" | 13 #include "base/synchronization/lock.h" |
14 #include "base/win/scoped_comptr.h" | 14 #include "base/win/scoped_comptr.h" |
15 | 15 |
16 namespace chrome { | 16 namespace chrome { |
17 | 17 |
18 // PortableDeviceMapService keeps track of initialized portable device | 18 // PortableDeviceMapService keeps track of initialized portable device |
19 // interfaces. PortableDeviceMapService owns the portable device interfaces. | 19 // interfaces. PortableDeviceMapService owns the portable device interfaces. |
20 class PortableDeviceMapService { | 20 class PortableDeviceMapService { |
21 public: | 21 public: |
22 static PortableDeviceMapService* GetInstance(); | 22 static PortableDeviceMapService* GetInstance(); |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 // Mapping of |device_location| and IPortableDevice* object. | 71 // Mapping of |device_location| and IPortableDevice* object. |
72 PortableDeviceMap device_map_; | 72 PortableDeviceMap device_map_; |
73 base::Lock lock_; | 73 base::Lock lock_; |
74 | 74 |
75 DISALLOW_COPY_AND_ASSIGN(PortableDeviceMapService); | 75 DISALLOW_COPY_AND_ASSIGN(PortableDeviceMapService); |
76 }; | 76 }; |
77 | 77 |
78 } // namespace chrome | 78 } // namespace chrome |
79 | 79 |
80 #endif // CHROME_BROWSER_MEDIA_GALLERIES_WIN_PORTABLE_DEVICE_MAP_SERVICE_H_ | 80 #endif // CHROME_BROWSER_MEDIA_GALLERIES_WIN_PORTABLE_DEVICE_MAP_SERVICE_H_ |
OLD | NEW |