blob: 6555a06fa9c6a14b22f086b593f09305f4f30efd [file] [log] [blame]
// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_DISPLAY_MANAGER_FACTORY_H_
#define CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_DISPLAY_MANAGER_FACTORY_H_
#include "base/memory/singleton.h"
#include "chrome/browser/profiles/profile_keyed_service_factory.h"
namespace payments {
class PaymentRequestDisplayManager;
class PaymentRequestDisplayManagerFactory : public ProfileKeyedServiceFactory {
public:
static PaymentRequestDisplayManagerFactory* GetInstance();
static PaymentRequestDisplayManager* GetForBrowserContext(
content::BrowserContext* context);
PaymentRequestDisplayManagerFactory(
const PaymentRequestDisplayManagerFactory&) = delete;
PaymentRequestDisplayManagerFactory& operator=(
const PaymentRequestDisplayManagerFactory&) = delete;
private:
PaymentRequestDisplayManagerFactory();
~PaymentRequestDisplayManagerFactory() override;
friend struct base::DefaultSingletonTraits<
PaymentRequestDisplayManagerFactory>;
KeyedService* BuildServiceInstanceFor(
content::BrowserContext* context) const override;
};
} // namespace payments
#endif // CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_DISPLAY_MANAGER_FACTORY_H_