Chromium Code Reviews| Index: chrome/browser/geolocation/chrome_geolocation_permission_context_factory.h |
| diff --git a/chrome/browser/geolocation/chrome_geolocation_permission_context_factory.h b/chrome/browser/geolocation/chrome_geolocation_permission_context_factory.h |
| index 64ff446cd6bf0711fb7ac018c6737d7e0bd0fff1..377a3ce56cca5b4eb53861b94d712505ef200c24 100644 |
| --- a/chrome/browser/geolocation/chrome_geolocation_permission_context_factory.h |
| +++ b/chrome/browser/geolocation/chrome_geolocation_permission_context_factory.h |
| @@ -5,20 +5,33 @@ |
| #ifndef CHROME_BROWSER_GEOLOCATION_CHROME_GEOLOCATION_PERMISSION_CONTEXT_FACTORY_H_ |
| #define CHROME_BROWSER_GEOLOCATION_CHROME_GEOLOCATION_PERMISSION_CONTEXT_FACTORY_H_ |
| +#include "base/memory/singleton.h" |
| #include "base/values.h" |
| #include "chrome/browser/prefs/pref_service.h" |
| +#include "chrome/browser/profiles/profile_keyed_service_factory.h" |
| class ChromeGeolocationPermissionContext; |
| class Profile; |
| -class ChromeGeolocationPermissionContextFactory { |
| +class ChromeGeolocationPermissionContextFactory |
| + : public ProfileKeyedServiceFactory { |
| public: |
| - ChromeGeolocationPermissionContextFactory() {} |
| - ~ChromeGeolocationPermissionContextFactory() {} |
| - static ChromeGeolocationPermissionContext* Create(Profile* profile); |
| - static void RegisterUserPrefs(PrefServiceSyncable* user_prefs); |
| + static ChromeGeolocationPermissionContext* GetForProfile(Profile* profile); |
| + |
| + static ChromeGeolocationPermissionContextFactory* GetInstance(); |
| private: |
| + friend struct |
| + DefaultSingletonTraits<ChromeGeolocationPermissionContextFactory>; |
|
sky
2013/01/07 14:51:44
indent 4 more.
John Knottenbelt
2013/01/08 10:24:27
Done.
|
| + |
| + ChromeGeolocationPermissionContextFactory(); |
| + virtual ~ChromeGeolocationPermissionContextFactory(); |
| + |
| + // |ProfileKeyedBaseFactory| methods: |
| + virtual ProfileKeyedService* |
| + BuildServiceInstanceFor(Profile* profile) const OVERRIDE; |
|
sky
2013/01/07 14:51:44
indent 4 more
John Knottenbelt
2013/01/08 10:24:27
Done.
|
| + virtual void RegisterUserPrefs(PrefServiceSyncable* user_prefs) OVERRIDE; |
| + virtual bool ServiceRedirectedInIncognito() const OVERRIDE; |
| DISALLOW_COPY_AND_ASSIGN(ChromeGeolocationPermissionContextFactory); |
| }; |