| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 void GetMediaFileSystemsForExtension( | 75 void GetMediaFileSystemsForExtension( |
| 76 const content::RenderViewHost* rvh, | 76 const content::RenderViewHost* rvh, |
| 77 const extensions::Extension* extension, | 77 const extensions::Extension* extension, |
| 78 const MediaFileSystemsCallback& callback); | 78 const MediaFileSystemsCallback& callback); |
| 79 | 79 |
| 80 // Returns the initialized media galleries preferences for the specified | 80 // Returns the initialized media galleries preferences for the specified |
| 81 // |profile|. This method should be used instead of calling | 81 // |profile|. This method should be used instead of calling |
| 82 // MediaGalleriesPreferences directly because this method also ensures that | 82 // MediaGalleriesPreferences directly because this method also ensures that |
| 83 // currently attached removable devices are added to the preferences. | 83 // currently attached removable devices are added to the preferences. |
| 84 // Called on the UI thread. | 84 // Called on the UI thread. |
| 85 // Note: Caller must ensure that the storage monitor is initialized before |
| 86 // calling this method. |
| 85 MediaGalleriesPreferences* GetPreferences(Profile* profile); | 87 MediaGalleriesPreferences* GetPreferences(Profile* profile); |
| 86 | 88 |
| 87 // RemovableStorageObserver implementation. | 89 // RemovableStorageObserver implementation. |
| 88 virtual void OnRemovableStorageDetached(const StorageInfo& info) OVERRIDE; | 90 virtual void OnRemovableStorageDetached(const StorageInfo& info) OVERRIDE; |
| 89 | 91 |
| 90 size_t GetExtensionGalleriesHostCountForTests() const; | 92 size_t GetExtensionGalleriesHostCountForTests() const; |
| 91 | 93 |
| 92 // See TransientDeviceIds::GetTransientIdForDeviceId(). | 94 // See TransientDeviceIds::GetTransientIdForDeviceId(). |
| 93 uint64 GetTransientIdForDeviceId(const std::string& device_id); | 95 uint64 GetTransientIdForDeviceId(const std::string& device_id); |
| 94 | 96 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 MTPDeviceDelegateMap mtp_device_delegate_map_; | 136 MTPDeviceDelegateMap mtp_device_delegate_map_; |
| 135 | 137 |
| 136 scoped_ptr<MediaFileSystemContext> file_system_context_; | 138 scoped_ptr<MediaFileSystemContext> file_system_context_; |
| 137 | 139 |
| 138 DISALLOW_COPY_AND_ASSIGN(MediaFileSystemRegistry); | 140 DISALLOW_COPY_AND_ASSIGN(MediaFileSystemRegistry); |
| 139 }; | 141 }; |
| 140 | 142 |
| 141 } // namespace chrome | 143 } // namespace chrome |
| 142 | 144 |
| 143 #endif // CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_FILE_SYSTEM_REGISTRY_H_ | 145 #endif // CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_FILE_SYSTEM_REGISTRY_H_ |
| OLD | NEW |