OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_PROFILE_RESETTER_TRIGGERED_PROFILE_RESETTER_FACTORY_H_ |
| 6 #define CHROME_BROWSER_PROFILE_RESETTER_TRIGGERED_PROFILE_RESETTER_FACTORY_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "components/keyed_service/content/browser_context_keyed_service_factory
.h" |
| 10 |
| 11 namespace base { |
| 12 template <typename T> |
| 13 struct DefaultSingletonTraits; |
| 14 } |
| 15 |
| 16 namespace content { |
| 17 class BrowserContext; |
| 18 } |
| 19 |
| 20 namespace user_prefs { |
| 21 class PrefRegistrySyncable; |
| 22 } |
| 23 |
| 24 class TriggeredProfileResetter; |
| 25 |
| 26 class TriggeredProfileResetterFactory |
| 27 : public BrowserContextKeyedServiceFactory { |
| 28 public: |
| 29 static TriggeredProfileResetter* GetForBrowserContext( |
| 30 content::BrowserContext* context); |
| 31 static TriggeredProfileResetterFactory* GetInstance(); |
| 32 |
| 33 private: |
| 34 friend struct base::DefaultSingletonTraits<TriggeredProfileResetterFactory>; |
| 35 friend class TriggeredProfileResetterTest; |
| 36 |
| 37 TriggeredProfileResetterFactory(); |
| 38 ~TriggeredProfileResetterFactory() override; |
| 39 |
| 40 // BrowserContextKeyedServiceFactory: |
| 41 KeyedService* BuildServiceInstanceFor( |
| 42 content::BrowserContext* context) const override; |
| 43 |
| 44 // BrowserContextKeyedBaseFactory: |
| 45 void RegisterProfilePrefs( |
| 46 user_prefs::PrefRegistrySyncable* registry) override; |
| 47 bool ServiceIsCreatedWithBrowserContext() const override; |
| 48 |
| 49 DISALLOW_COPY_AND_ASSIGN(TriggeredProfileResetterFactory); |
| 50 }; |
| 51 |
| 52 #endif // CHROME_BROWSER_PROFILE_RESETTER_TRIGGERED_PROFILE_RESETTER_FACTORY_H_ |
OLD | NEW |