blob: 11531b9f084a30d0986b2592d74ce6c1452aeee7 [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 "modules/encryptedmedia/MediaKeysController.h"
#include "modules/encryptedmedia/MediaKeysClient.h"
#include "public/platform/WebContentDecryptionModule.h"
namespace blink {
const char* MediaKeysController::supplementName()
{
return "MediaKeysController";
}
MediaKeysController::MediaKeysController(MediaKeysClient* client)
: m_client(client)
{
}
WebEncryptedMediaClient* MediaKeysController::encryptedMediaClient(ExecutionContext* context)
{
return m_client->encryptedMediaClient(context);
}
void MediaKeysController::provideMediaKeysTo(Page& page, MediaKeysClient* client)
{
MediaKeysController::provideTo(page, supplementName(), new MediaKeysController(client));
}
} // namespace blink