This source file includes following definitions.
- createContentDecryptionModule
#include "config.h"
#include "MediaKeysClientImpl.h"
#include "WebFrameClient.h"
#include "WebFrameImpl.h"
#include "core/dom/Document.h"
#include "core/dom/ExecutionContext.h"
#include "public/platform/WebContentDecryptionModule.h"
using namespace WebCore;
namespace blink {
MediaKeysClientImpl::MediaKeysClientImpl()
{
}
PassOwnPtr<WebContentDecryptionModule> MediaKeysClientImpl::createContentDecryptionModule(WebCore::ExecutionContext* executionContext, const String& keySystem)
{
Document* document = toDocument(executionContext);
WebFrameImpl* webFrame = WebFrameImpl::fromFrame(document->frame());
WebSecurityOrigin securityOrigin(executionContext->securityOrigin());
return adoptPtr(webFrame->client()->createContentDecryptionModule(webFrame, securityOrigin, keySystem));
}
}