#ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_MEDIA_PLAYER_API_H_
#define CHROME_BROWSER_CHROMEOS_EXTENSIONS_MEDIA_PLAYER_API_H_
#include <map>
#include <string>
#include <vector>
#include "base/memory/scoped_ptr.h"
#include "extensions/browser/browser_context_keyed_api_factory.h"
#include "extensions/browser/extension_function.h"
namespace content {
class BrowserContext;
}
namespace extensions {
class MediaPlayerEventRouter;
class MediaPlayerAPI : public BrowserContextKeyedAPI {
public:
explicit MediaPlayerAPI(content::BrowserContext* context);
virtual ~MediaPlayerAPI();
static MediaPlayerAPI* Get(content::BrowserContext* context);
MediaPlayerEventRouter* media_player_event_router();
static BrowserContextKeyedAPIFactory<MediaPlayerAPI>* GetFactoryInstance();
private:
friend class BrowserContextKeyedAPIFactory<MediaPlayerAPI>;
content::BrowserContext* const browser_context_;
static const char* service_name() {
return "MediaPlayerAPI";
}
static const bool kServiceRedirectedInIncognito = true;
static const bool kServiceIsNULLWhileTesting = true;
scoped_ptr<MediaPlayerEventRouter> media_player_event_router_;
DISALLOW_COPY_AND_ASSIGN(MediaPlayerAPI);
};
}
#endif