Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(421)

Side by Side Diff: chrome/browser/media_galleries/media_file_system_registry.h

Issue 1194373002: Moved ScopedPtrMap into base namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@jianli-gcm_client_impl
Patch Set: Rebase and update against media_galleries. Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/media_galleries/gallery_watch_manager.h ('k') | chrome/browser/metrics/chrome_metrics_service_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698