Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(267)

Side by Side Diff: chrome/browser/browsing_data/chrome_browsing_data_remover_delegate_factory.h

Issue 2827523003: Move BrowsingDataRemover to content/ (Closed)
Patch Set: Rebase over codereview.chromium.org/2815913005 Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698