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_LINUX_MTP_DEVICE_TASK_HELPER_MAP_SERVICE_
H_ | 5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_LINUX_MTP_DEVICE_TASK_HELPER_MAP_SERVICE_
H_ |
6 #define CHROME_BROWSER_MEDIA_GALLERIES_LINUX_MTP_DEVICE_TASK_HELPER_MAP_SERVICE_
H_ | 6 #define CHROME_BROWSER_MEDIA_GALLERIES_LINUX_MTP_DEVICE_TASK_HELPER_MAP_SERVICE_
H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/lazy_instance.h" | 11 #include "base/lazy_instance.h" |
12 | 12 |
13 namespace chrome { | |
14 | |
15 class MTPDeviceTaskHelper; | 13 class MTPDeviceTaskHelper; |
16 | 14 |
17 // MTPDeviceTaskHelperMapService manages MTPDeviceTaskHelper objects. | 15 // MTPDeviceTaskHelperMapService manages MTPDeviceTaskHelper objects. |
18 // MTPDeviceTaskHelperMapService lives on the UI thread. | 16 // MTPDeviceTaskHelperMapService lives on the UI thread. |
19 class MTPDeviceTaskHelperMapService { | 17 class MTPDeviceTaskHelperMapService { |
20 public: | 18 public: |
21 static MTPDeviceTaskHelperMapService* GetInstance(); | 19 static MTPDeviceTaskHelperMapService* GetInstance(); |
22 | 20 |
23 // Creates and returns the MTPDeviceTaskHelper object for the storage device | 21 // Creates and returns the MTPDeviceTaskHelper object for the storage device |
24 // specified by the |storage_name|. | 22 // specified by the |storage_name|. |
(...skipping 21 matching lines...) Expand all Loading... |
46 MTPDeviceTaskHelperMapService(); | 44 MTPDeviceTaskHelperMapService(); |
47 ~MTPDeviceTaskHelperMapService(); | 45 ~MTPDeviceTaskHelperMapService(); |
48 | 46 |
49 // Mapping of |storage_name| and MTPDeviceTaskHelper*. | 47 // Mapping of |storage_name| and MTPDeviceTaskHelper*. |
50 // TaskHelperMap owns MTPDeviceTaskHelper objects. | 48 // TaskHelperMap owns MTPDeviceTaskHelper objects. |
51 TaskHelperMap task_helper_map_; | 49 TaskHelperMap task_helper_map_; |
52 | 50 |
53 DISALLOW_COPY_AND_ASSIGN(MTPDeviceTaskHelperMapService); | 51 DISALLOW_COPY_AND_ASSIGN(MTPDeviceTaskHelperMapService); |
54 }; | 52 }; |
55 | 53 |
56 } // namespace chrome | |
57 | |
58 #endif // CHROME_BROWSER_MEDIA_GALLERIES_LINUX_MTP_DEVICE_TASK_HELPER_MAP_SERVI
CE_H_ | 54 #endif // CHROME_BROWSER_MEDIA_GALLERIES_LINUX_MTP_DEVICE_TASK_HELPER_MAP_SERVI
CE_H_ |
OLD | NEW |