| Index: Source/web/MediaKeysClientImpl.cpp
|
| diff --git a/Source/web/MediaKeysClientImpl.cpp b/Source/web/MediaKeysClientImpl.cpp
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..1ff44ac65a4e64196323b759c1a2fa932821acd7
|
| --- /dev/null
|
| +++ b/Source/web/MediaKeysClientImpl.cpp
|
| @@ -0,0 +1,35 @@
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "config.h"
|
| +#include "MediaKeysClientImpl.h"
|
| +
|
| +#include "WebFrameClient.h"
|
| +#include "WebFrameImpl.h"
|
| +#include "core/dom/Document.h"
|
| +#include "core/dom/ExecutionContext.h"
|
| +
|
| +using namespace WebCore;
|
| +
|
| +namespace blink {
|
| +
|
| +PassOwnPtr<MediaKeysClientImpl> MediaKeysClientImpl::create()
|
| +{
|
| + return adoptPtr(new MediaKeysClientImpl());
|
| +}
|
| +
|
| +MediaKeysClientImpl::MediaKeysClientImpl()
|
| +{
|
| +}
|
| +
|
| +WebContentDecryptionModule* MediaKeysClientImpl::createContentDecryptionModule(WebCore::ExecutionContext* executionContext, const String& keySystem)
|
| +{
|
| + ASSERT(executionContext->isDocument());
|
| + Document* document = toDocument(executionContext);
|
| + WebFrameImpl* webFrame = WebFrameImpl::fromFrame(document->frame());
|
| + WebSecurityOrigin securityOrigin(executionContext->securityOrigin());
|
| + return webFrame->client()->createContentDecryptionModule(webFrame, securityOrigin, keySystem);
|
| +}
|
| +
|
| +} // namespace blink
|
|
|