blob: 3463240bc65cbaad330ecbe152e2d4095eac46b2 [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_SAFE_BROWSING_ADVANCED_PROTECTION_STATUS_MANAGER_FACTORY_H_
#define CHROME_BROWSER_SAFE_BROWSING_ADVANCED_PROTECTION_STATUS_MANAGER_FACTORY_H_
#include "base/memory/singleton.h"
#include "components/keyed_service/content/browser_context_keyed_service_factory.h"
class Profile;
namespace safe_browsing {
class AdvancedProtectionStatusManager;
// Responsible for keeping track of advanced protection status of the sign-in
// profile.
class AdvancedProtectionStatusManagerFactory
: public BrowserContextKeyedServiceFactory {
public:
static AdvancedProtectionStatusManager* GetForProfile(Profile* profile);
static AdvancedProtectionStatusManagerFactory* GetInstance();
private:
friend struct base::DefaultSingletonTraits<
AdvancedProtectionStatusManagerFactory>;
AdvancedProtectionStatusManagerFactory();
~AdvancedProtectionStatusManagerFactory() override;
// BrowserContextKeyedServiceFactory:
KeyedService* BuildServiceInstanceFor(
content::BrowserContext* context) const override;
bool ServiceIsCreatedWithBrowserContext() const override;
content::BrowserContext* GetBrowserContextToUse(
content::BrowserContext* context) const override;
DISALLOW_COPY_AND_ASSIGN(AdvancedProtectionStatusManagerFactory);
};
} // namespace safe_browsing
#endif // CHROME_BROWSER_SAFE_BROWSING_ADVANCED_PROTECTION_STATUS_MANAGER_FACTORY_H_