| 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 // MediaFileSystemRegistry registers pictures directories and media devices as | 5 // MediaFileSystemRegistry registers pictures directories and media devices as |
| 6 // File API filesystems and keeps track of the path to filesystem ID mappings. | 6 // File API filesystems and keeps track of the path to filesystem ID mappings. |
| 7 | 7 |
| 8 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_FILE_SYSTEM_REGISTRY_H_ | 8 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_FILE_SYSTEM_REGISTRY_H_ |
| 9 #define CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_FILE_SYSTEM_REGISTRY_H_ | 9 #define CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_FILE_SYSTEM_REGISTRY_H_ |
| 10 | 10 |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 friend class MediaFileSystemContextImpl; | 110 friend class MediaFileSystemContextImpl; |
| 111 friend class MediaFileSystemRegistryTest; | 111 friend class MediaFileSystemRegistryTest; |
| 112 friend class TestMediaFileSystemContext; | 112 friend class TestMediaFileSystemContext; |
| 113 | 113 |
| 114 // Map an extension to the ExtensionGalleriesHost. | 114 // Map an extension to the ExtensionGalleriesHost. |
| 115 typedef std::map<std::string /*extension_id*/, | 115 typedef std::map<std::string /*extension_id*/, |
| 116 scoped_refptr<ExtensionGalleriesHost>> ExtensionHostMap; | 116 scoped_refptr<ExtensionGalleriesHost>> ExtensionHostMap; |
| 117 // Map a profile and extension to the ExtensionGalleriesHost. | 117 // Map a profile and extension to the ExtensionGalleriesHost. |
| 118 typedef std::map<Profile*, ExtensionHostMap> ExtensionGalleriesHostMap; | 118 typedef std::map<Profile*, ExtensionHostMap> ExtensionGalleriesHostMap; |
| 119 // Map a profile to a shutdown notification subscription. | 119 // Map a profile to a shutdown notification subscription. |
| 120 typedef ScopedPtrMap<Profile*, | 120 typedef base::ScopedPtrMap< |
| 121 scoped_ptr<KeyedServiceShutdownNotifier::Subscription>> | 121 Profile*, |
| 122 scoped_ptr<KeyedServiceShutdownNotifier::Subscription>> |
| 122 ProfileSubscriptionMap; | 123 ProfileSubscriptionMap; |
| 123 | 124 |
| 124 void OnPermissionRemoved(MediaGalleriesPreferences* pref, | 125 void OnPermissionRemoved(MediaGalleriesPreferences* pref, |
| 125 const std::string& extension_id, | 126 const std::string& extension_id, |
| 126 MediaGalleryPrefId pref_id) override; | 127 MediaGalleryPrefId pref_id) override; |
| 127 void OnGalleryRemoved(MediaGalleriesPreferences* pref, | 128 void OnGalleryRemoved(MediaGalleriesPreferences* pref, |
| 128 MediaGalleryPrefId pref_id) override; | 129 MediaGalleryPrefId pref_id) override; |
| 129 | 130 |
| 130 // Look up or create the extension gallery host. | 131 // Look up or create the extension gallery host. |
| 131 ExtensionGalleriesHost* GetExtensionGalleryHost( | 132 ExtensionGalleriesHost* GetExtensionGalleryHost( |
| (...skipping 15 matching lines...) Expand all Loading... |
| 147 | 148 |
| 148 scoped_ptr<MediaFileSystemContext> file_system_context_; | 149 scoped_ptr<MediaFileSystemContext> file_system_context_; |
| 149 | 150 |
| 150 scoped_ptr<MediaScanManager> media_scan_manager_; | 151 scoped_ptr<MediaScanManager> media_scan_manager_; |
| 151 scoped_ptr<GalleryWatchManager> gallery_watch_manager_; | 152 scoped_ptr<GalleryWatchManager> gallery_watch_manager_; |
| 152 | 153 |
| 153 DISALLOW_COPY_AND_ASSIGN(MediaFileSystemRegistry); | 154 DISALLOW_COPY_AND_ASSIGN(MediaFileSystemRegistry); |
| 154 }; | 155 }; |
| 155 | 156 |
| 156 #endif // CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_FILE_SYSTEM_REGISTRY_H_ | 157 #endif // CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_FILE_SYSTEM_REGISTRY_H_ |
| OLD | NEW |