#ifndef CHROME_BROWSER_EXTENSIONS_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_EVENT_ROUTER_FACTORY_H_
#define CHROME_BROWSER_EXTENSIONS_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_EVENT_ROUTER_FACTORY_H_
#include "base/memory/singleton.h"
#include "components/keyed_service/content/browser_context_keyed_service_factory.h"
namespace extensions {
class NetworkingPrivateEventRouter;
class NetworkingPrivateEventRouterFactory
: public BrowserContextKeyedServiceFactory {
public:
static NetworkingPrivateEventRouter* GetForProfile(
content::BrowserContext* context);
static NetworkingPrivateEventRouterFactory* GetInstance();
protected:
virtual content::BrowserContext* GetBrowserContextToUse(
content::BrowserContext* context) const OVERRIDE;
virtual bool ServiceIsCreatedWithBrowserContext() const OVERRIDE;
virtual bool ServiceIsNULLWhileTesting() const OVERRIDE;
private:
friend struct DefaultSingletonTraits<NetworkingPrivateEventRouterFactory>;
NetworkingPrivateEventRouterFactory();
virtual ~NetworkingPrivateEventRouterFactory();
virtual KeyedService* BuildServiceInstanceFor(
content::BrowserContext* profile) const OVERRIDE;
DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateEventRouterFactory);
};
}
#endif