| 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_IMPORTED_MEDIA_GALLERY_REGISTRY_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_IMPORTED_MEDIA_GALLERY_REGISTRY_H_ |
| 6 #define CHROME_BROWSER_MEDIA_GALLERIES_IMPORTED_MEDIA_GALLERY_REGISTRY_H_ | 6 #define CHROME_BROWSER_MEDIA_GALLERIES_IMPORTED_MEDIA_GALLERY_REGISTRY_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 // Path where all virtual file systems are "mounted." | 48 // Path where all virtual file systems are "mounted." |
| 49 base::FilePath ImportedRoot(); | 49 base::FilePath ImportedRoot(); |
| 50 | 50 |
| 51 // Should be called on the MediaTaskRunner thread only. | 51 // Should be called on the MediaTaskRunner thread only. |
| 52 #if defined(OS_WIN) || defined(OS_MACOSX) | 52 #if defined(OS_WIN) || defined(OS_MACOSX) |
| 53 static picasa::PicasaDataProvider* PicasaDataProvider(); | 53 static picasa::PicasaDataProvider* PicasaDataProvider(); |
| 54 static itunes::ITunesDataProvider* ITunesDataProvider(); | 54 static itunes::ITunesDataProvider* ITunesDataProvider(); |
| 55 #endif // defined(OS_WIN) || defined(OS_MACOSX) | 55 #endif // defined(OS_WIN) || defined(OS_MACOSX) |
| 56 | 56 |
| 57 private: | 57 private: |
| 58 friend struct base::DefaultLazyInstanceTraits<ImportedMediaGalleryRegistry>; | 58 friend struct base::LazyInstanceTraitsBase<ImportedMediaGalleryRegistry>; |
| 59 friend class itunes::ITunesDataProviderTest; | 59 friend class itunes::ITunesDataProviderTest; |
| 60 friend class picasa::PicasaDataProviderTest; | 60 friend class picasa::PicasaDataProviderTest; |
| 61 | 61 |
| 62 ImportedMediaGalleryRegistry(); | 62 ImportedMediaGalleryRegistry(); |
| 63 virtual ~ImportedMediaGalleryRegistry(); | 63 virtual ~ImportedMediaGalleryRegistry(); |
| 64 | 64 |
| 65 #if defined(OS_WIN) || defined(OS_MACOSX) | 65 #if defined(OS_WIN) || defined(OS_MACOSX) |
| 66 void RegisterPicasaFileSystem(const base::FilePath& database_path); | 66 void RegisterPicasaFileSystem(const base::FilePath& database_path); |
| 67 void RevokePicasaFileSystem(); | 67 void RevokePicasaFileSystem(); |
| 68 | 68 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 84 #ifndef NDEBUG | 84 #ifndef NDEBUG |
| 85 base::FilePath picasa_database_path_; | 85 base::FilePath picasa_database_path_; |
| 86 base::FilePath itunes_xml_library_path_; | 86 base::FilePath itunes_xml_library_path_; |
| 87 #endif | 87 #endif |
| 88 #endif // defined(OS_WIN) || defined(OS_MACOSX) | 88 #endif // defined(OS_WIN) || defined(OS_MACOSX) |
| 89 | 89 |
| 90 DISALLOW_COPY_AND_ASSIGN(ImportedMediaGalleryRegistry); | 90 DISALLOW_COPY_AND_ASSIGN(ImportedMediaGalleryRegistry); |
| 91 }; | 91 }; |
| 92 | 92 |
| 93 #endif // CHROME_BROWSER_MEDIA_GALLERIES_IMPORTED_MEDIA_GALLERY_REGISTRY_H_ | 93 #endif // CHROME_BROWSER_MEDIA_GALLERIES_IMPORTED_MEDIA_GALLERY_REGISTRY_H_ |
| OLD | NEW |