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 <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
13 #include "base/lazy_instance.h" | 13 #include "base/lazy_instance.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 | 15 |
16 namespace itunes { | 16 namespace itunes { |
17 class ITunesDataProvider; | 17 class ITunesDataProvider; |
18 class ITunesDataProviderTest; | 18 class ITunesDataProviderTest; |
19 } | 19 } |
20 | 20 |
21 namespace picasa { | 21 namespace picasa { |
22 class PicasaDataProvider; | 22 class PicasaDataProvider; |
23 class PicasaDataProviderTest; | 23 class PicasaDataProviderTest; |
24 } | 24 } |
25 | 25 |
26 namespace chrome { | |
27 | |
28 // This class lives on the MediaTaskRunner thread. It has some static | 26 // This class lives on the MediaTaskRunner thread. It has some static |
29 // methods which are called on the UI thread. | 27 // methods which are called on the UI thread. |
30 // | 28 // |
31 // MediaTaskRunner is not guaranteed to be one thread, but it is guaranteed | 29 // MediaTaskRunner is not guaranteed to be one thread, but it is guaranteed |
32 // to be a series of sequential calls. See SequencedTaskRunner for details. | 30 // to be a series of sequential calls. See SequencedTaskRunner for details. |
33 class ImportedMediaGalleryRegistry { | 31 class ImportedMediaGalleryRegistry { |
34 public: | 32 public: |
35 static ImportedMediaGalleryRegistry* GetInstance(); | 33 static ImportedMediaGalleryRegistry* GetInstance(); |
36 | 34 |
37 // Should be called on the UI thread only. | 35 // Should be called on the UI thread only. |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 | 72 |
75 #ifndef NDEBUG | 73 #ifndef NDEBUG |
76 base::FilePath picasa_database_path_; | 74 base::FilePath picasa_database_path_; |
77 base::FilePath itunes_xml_library_path_; | 75 base::FilePath itunes_xml_library_path_; |
78 #endif | 76 #endif |
79 #endif // defined(OS_WIN) || defined(OS_MACOSX) | 77 #endif // defined(OS_WIN) || defined(OS_MACOSX) |
80 | 78 |
81 DISALLOW_COPY_AND_ASSIGN(ImportedMediaGalleryRegistry); | 79 DISALLOW_COPY_AND_ASSIGN(ImportedMediaGalleryRegistry); |
82 }; | 80 }; |
83 | 81 |
84 } // namespace chrome | |
85 | |
86 #endif // CHROME_BROWSER_MEDIA_GALLERIES_IMPORTED_MEDIA_GALLERY_REGISTRY_H_ | 82 #endif // CHROME_BROWSER_MEDIA_GALLERIES_IMPORTED_MEDIA_GALLERY_REGISTRY_H_ |
OLD | NEW |