| 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 #include "base/macros.h" |
| 12 | 13 |
| 13 class MTPDeviceTaskHelper; | 14 class MTPDeviceTaskHelper; |
| 14 | 15 |
| 15 // MTPDeviceTaskHelperMapService manages MTPDeviceTaskHelper objects. | 16 // MTPDeviceTaskHelperMapService manages MTPDeviceTaskHelper objects. |
| 16 // MTPDeviceTaskHelperMapService lives on the UI thread. | 17 // MTPDeviceTaskHelperMapService lives on the UI thread. |
| 17 class MTPDeviceTaskHelperMapService { | 18 class MTPDeviceTaskHelperMapService { |
| 18 public: | 19 public: |
| 19 static MTPDeviceTaskHelperMapService* GetInstance(); | 20 static MTPDeviceTaskHelperMapService* GetInstance(); |
| 20 | 21 |
| 21 // Creates and returns the MTPDeviceTaskHelper object for the storage device | 22 // Creates and returns the MTPDeviceTaskHelper object for the storage device |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 ~MTPDeviceTaskHelperMapService(); | 57 ~MTPDeviceTaskHelperMapService(); |
| 57 | 58 |
| 58 // Mapping of |storage_name| and MTPDeviceTaskHelper*. | 59 // Mapping of |storage_name| and MTPDeviceTaskHelper*. |
| 59 // TaskHelperMap owns MTPDeviceTaskHelper objects. | 60 // TaskHelperMap owns MTPDeviceTaskHelper objects. |
| 60 TaskHelperMap task_helper_map_; | 61 TaskHelperMap task_helper_map_; |
| 61 | 62 |
| 62 DISALLOW_COPY_AND_ASSIGN(MTPDeviceTaskHelperMapService); | 63 DISALLOW_COPY_AND_ASSIGN(MTPDeviceTaskHelperMapService); |
| 63 }; | 64 }; |
| 64 | 65 |
| 65 #endif // CHROME_BROWSER_MEDIA_GALLERIES_LINUX_MTP_DEVICE_TASK_HELPER_MAP_SERVI
CE_H_ | 66 #endif // CHROME_BROWSER_MEDIA_GALLERIES_LINUX_MTP_DEVICE_TASK_HELPER_MAP_SERVI
CE_H_ |
| OLD | NEW |