| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_FILEAPI_MTP_DEVICE_MAP_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_MTP_DEVICE_MAP_SERVICE_H_ |
| 6 #define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_MTP_DEVICE_MAP_SERVICE_H_ | 6 #define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_MTP_DEVICE_MAP_SERVICE_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| 11 #include "base/lazy_instance.h" | 11 #include "base/lazy_instance.h" |
| 12 #include "base/macros.h" |
| 12 #include "base/threading/thread_checker.h" | 13 #include "base/threading/thread_checker.h" |
| 13 | 14 |
| 14 class MTPDeviceAsyncDelegate; | 15 class MTPDeviceAsyncDelegate; |
| 15 | 16 |
| 16 // This class provides media transfer protocol (MTP) device delegate to | 17 // This class provides media transfer protocol (MTP) device delegate to |
| 17 // complete media file system operations. | 18 // complete media file system operations. |
| 18 // Lives on the IO thread in production. | 19 // Lives on the IO thread in production. |
| 19 // TODO(gbillock): Make this class owned by the MediaFileSystemRegistry. | 20 // TODO(gbillock): Make this class owned by the MediaFileSystemRegistry. |
| 20 class MTPDeviceMapService { | 21 class MTPDeviceMapService { |
| 21 public: | 22 public: |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 AsyncDelegateMap async_delegate_map_; | 83 AsyncDelegateMap async_delegate_map_; |
| 83 | 84 |
| 84 MTPDeviceFileSystemMap mtp_device_map_; | 85 MTPDeviceFileSystemMap mtp_device_map_; |
| 85 | 86 |
| 86 MTPDeviceUsageMap mtp_device_usage_map_; | 87 MTPDeviceUsageMap mtp_device_usage_map_; |
| 87 | 88 |
| 88 DISALLOW_COPY_AND_ASSIGN(MTPDeviceMapService); | 89 DISALLOW_COPY_AND_ASSIGN(MTPDeviceMapService); |
| 89 }; | 90 }; |
| 90 | 91 |
| 91 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_MTP_DEVICE_MAP_SERVICE_H_ | 92 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_MTP_DEVICE_MAP_SERVICE_H_ |
| OLD | NEW |