OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 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_BROWSING_DATA_CHROME_BROWSING_DATA_REMOVER_DELEGATE_FACTO
RY_H_ |
| 6 #define CHROME_BROWSER_BROWSING_DATA_CHROME_BROWSING_DATA_REMOVER_DELEGATE_FACTO
RY_H_ |
| 7 |
| 8 #include "components/keyed_service/content/browser_context_keyed_service_factory
.h" |
| 9 |
| 10 namespace base { |
| 11 template <typename T> |
| 12 struct DefaultSingletonTraits; |
| 13 } |
| 14 |
| 15 class ChromeBrowsingDataRemoverDelegate; |
| 16 class Profile; |
| 17 |
| 18 class ChromeBrowsingDataRemoverDelegateFactory |
| 19 : public BrowserContextKeyedServiceFactory { |
| 20 public: |
| 21 // Returns the singleton instance of ChromeBrowsingDataRemoverDelegateFactory. |
| 22 static ChromeBrowsingDataRemoverDelegateFactory* GetInstance(); |
| 23 |
| 24 // Returns the ChromeBrowsingDataRemoverDelegate associated with |profile|. |
| 25 static ChromeBrowsingDataRemoverDelegate* GetForProfile(Profile* profile); |
| 26 |
| 27 private: |
| 28 friend struct base::DefaultSingletonTraits< |
| 29 ChromeBrowsingDataRemoverDelegateFactory>; |
| 30 |
| 31 ChromeBrowsingDataRemoverDelegateFactory(); |
| 32 ~ChromeBrowsingDataRemoverDelegateFactory() override; |
| 33 |
| 34 // BrowserContextKeyedServiceFactory overrides: |
| 35 content::BrowserContext* GetBrowserContextToUse( |
| 36 content::BrowserContext* context) const override; |
| 37 KeyedService* BuildServiceInstanceFor( |
| 38 content::BrowserContext* context) const override; |
| 39 |
| 40 DISALLOW_COPY_AND_ASSIGN(ChromeBrowsingDataRemoverDelegateFactory); |
| 41 }; |
| 42 |
| 43 #endif // CHROME_BROWSER_BROWSING_DATA_CHROME_BROWSING_DATA_REMOVER_DELEGATE_FA
CTORY_H_ |
OLD | NEW |