#ifndef CHROME_BROWSER_EXTENSIONS_API_SYSTEM_INFO_SYSTEM_INFO_API_H_
#define CHROME_BROWSER_EXTENSIONS_API_SYSTEM_INFO_SYSTEM_INFO_API_H_
#include "extensions/browser/browser_context_keyed_api_factory.h"
#include "extensions/browser/event_router.h"
namespace extensions {
class SystemInfoAPI : public BrowserContextKeyedAPI,
public EventRouter::Observer {
public:
static BrowserContextKeyedAPIFactory<SystemInfoAPI>* GetFactoryInstance();
explicit SystemInfoAPI(content::BrowserContext* context);
virtual ~SystemInfoAPI();
virtual void Shutdown() OVERRIDE;
virtual void OnListenerAdded(const EventListenerInfo& details) OVERRIDE;
virtual void OnListenerRemoved(const EventListenerInfo& details) OVERRIDE;
private:
friend class BrowserContextKeyedAPIFactory<SystemInfoAPI>;
static const char* service_name() {
return "SystemInfoAPI";
}
static const bool kServiceIsNULLWhileTesting = true;
content::BrowserContext* browser_context_;
DISALLOW_COPY_AND_ASSIGN(SystemInfoAPI);
};
}
#endif