blob: caf33ff5a214d5b0f0c3b11adb8075653a4c8f9a [file] [log] [blame]
// 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 "web/MediaKeysClientImpl.h"
#include "core/dom/Document.h"
#include "core/dom/ExecutionContext.h"
#include "public/platform/WebContentDecryptionModule.h"
#include "public/web/WebFrameClient.h"
#include "web/WebLocalFrameImpl.h"
namespace blink {
MediaKeysClientImpl::MediaKeysClientImpl() {}
WebEncryptedMediaClient* MediaKeysClientImpl::encryptedMediaClient(
ExecutionContext* executionContext) {
Document* document = toDocument(executionContext);
WebLocalFrameImpl* webFrame = WebLocalFrameImpl::fromFrame(document->frame());
return webFrame->client()->encryptedMediaClient();
}
} // namespace blink