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

Unified Diff: chrome/browser/subresource_filter/subresource_filter_profile_context_factory.h

Issue 2838063002: [on-hold][subresource_filter] Add ActivationTracker to track all activated contents (Closed)
Patch Set: fix incognito 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/subresource_filter/subresource_filter_profile_context_factory.h
diff --git a/chrome/browser/subresource_filter/subresource_filter_profile_context_factory.h b/chrome/browser/subresource_filter/subresource_filter_profile_context_factory.h
index 292259c0b2bad4d3dd4f8c8ce7625071b126ab54..eefb50ac2f6cb76ef7b49d33ec7bfd22c8497a27 100644
--- a/chrome/browser/subresource_filter/subresource_filter_profile_context_factory.h
+++ b/chrome/browser/subresource_filter/subresource_filter_profile_context_factory.h
@@ -10,21 +10,25 @@
class KeyedService;
class Profile;
+class SubresourceFilterProfileContext;
// This class is responsible for instantiating a profile-scoped context for
// subresource filtering.
class SubresourceFilterProfileContextFactory
: public BrowserContextKeyedServiceFactory {
public:
- static void EnsureForProfile(Profile* profile);
+ static SubresourceFilterProfileContext* GetForProfile(Profile* profile);
static SubresourceFilterProfileContextFactory* GetInstance();
SubresourceFilterProfileContextFactory();
private:
+ // BrowserContextKeyedServiceFactory:
KeyedService* BuildServiceInstanceFor(
content::BrowserContext* profile) const override;
+ content::BrowserContext* GetBrowserContextToUse(
+ content::BrowserContext* context) const override;
DISALLOW_COPY_AND_ASSIGN(SubresourceFilterProfileContextFactory);
};

Powered by Google App Engine
This is Rietveld 408576698