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 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_GALLERIES_PREFERENCES_FACTORY_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_GALLERIES_PREFERENCES_FACTORY_H_ |
6 #define CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_GALLERIES_PREFERENCES_FACTORY_H_ | 6 #define CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_GALLERIES_PREFERENCES_FACTORY_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/macros.h" |
9 #include "base/memory/singleton.h" | 9 #include "base/memory/singleton.h" |
10 #include "components/keyed_service/content/browser_context_keyed_service_factory
.h" | 10 #include "components/keyed_service/content/browser_context_keyed_service_factory
.h" |
11 | 11 |
12 class MediaGalleriesPreferences; | 12 class MediaGalleriesPreferences; |
13 class Profile; | 13 class Profile; |
14 | 14 |
15 // Singleton that owns all MediaGalleriesPreferences and associates them with | 15 // Singleton that owns all MediaGalleriesPreferences and associates them with |
16 // Profiles. | 16 // Profiles. |
17 class MediaGalleriesPreferencesFactory | 17 class MediaGalleriesPreferencesFactory |
18 : public BrowserContextKeyedServiceFactory { | 18 : public BrowserContextKeyedServiceFactory { |
(...skipping 15 matching lines...) Expand all Loading... |
34 content::BrowserContext* profile) const override; | 34 content::BrowserContext* profile) const override; |
35 void RegisterProfilePrefs( | 35 void RegisterProfilePrefs( |
36 user_prefs::PrefRegistrySyncable* registry) override; | 36 user_prefs::PrefRegistrySyncable* registry) override; |
37 content::BrowserContext* GetBrowserContextToUse( | 37 content::BrowserContext* GetBrowserContextToUse( |
38 content::BrowserContext* context) const override; | 38 content::BrowserContext* context) const override; |
39 | 39 |
40 DISALLOW_COPY_AND_ASSIGN(MediaGalleriesPreferencesFactory); | 40 DISALLOW_COPY_AND_ASSIGN(MediaGalleriesPreferencesFactory); |
41 }; | 41 }; |
42 | 42 |
43 #endif // CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_GALLERIES_PREFERENCES_FACTORY_H_ | 43 #endif // CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_GALLERIES_PREFERENCES_FACTORY_H_ |
OLD | NEW |