blob: ba37a920b8ab790aa8bd08c5f0e8108401ca6420 [file] [log] [blame]
// Copyright 2021 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_SESSIONS_SESSION_DATA_SERVICE_FACTORY_H_
#define CHROME_BROWSER_SESSIONS_SESSION_DATA_SERVICE_FACTORY_H_
#include "base/memory/singleton.h"
#include "components/keyed_service/content/browser_context_keyed_service_factory.h"
class SessionDataService;
class Profile;
class SessionDataServiceFactory : public BrowserContextKeyedServiceFactory {
public:
static SessionDataService* GetForProfile(Profile* profile);
static SessionDataServiceFactory* GetInstance();
private:
friend struct base::DefaultSingletonTraits<SessionDataServiceFactory>;
SessionDataServiceFactory();
~SessionDataServiceFactory() override;
// BrowserContextKeyedServiceFactory:
KeyedService* BuildServiceInstanceFor(
content::BrowserContext* profile) const override;
bool ServiceIsCreatedWithBrowserContext() const override;
bool ServiceIsNULLWhileTesting() const override;
};
#endif // CHROME_BROWSER_SESSIONS_SESSION_DATA_SERVICE_FACTORY_H_