#ifndef MediaKeysController_h
#define MediaKeysController_h
#include "core/page/Page.h"
#include "wtf/PassOwnPtr.h"
namespace blink {
class WebContentDecryptionModule;
}
namespace WebCore {
class ExecutionContext;
class MediaKeysClient;
class MediaKeysController FINAL : public Supplement<Page> {
public:
virtual ~MediaKeysController();
PassOwnPtr<blink::WebContentDecryptionModule> createContentDecryptionModule(ExecutionContext*, const String& keySystem);
static void provideMediaKeysTo(Page&, MediaKeysClient*);
static MediaKeysController* from(Page* page) { return static_cast<MediaKeysController*>(Supplement<Page>::from(page, supplementName())); }
private:
explicit MediaKeysController(MediaKeysClient*);
static const char* supplementName();
MediaKeysClient* m_client;
};
}
#endif