Chromium Code Reviews| Index: Source/modules/encryptedmedia/MediaKeysController.cpp |
| diff --git a/Source/modules/encryptedmedia/MediaKeysController.cpp b/Source/modules/encryptedmedia/MediaKeysController.cpp |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..5143c3f5764375a716dd8e4f8aa58fc68b064c67 |
| --- /dev/null |
| +++ b/Source/modules/encryptedmedia/MediaKeysController.cpp |
| @@ -0,0 +1,43 @@ |
| +// 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 "modules/encryptedmedia/MediaKeysController.h" |
| + |
| +#include "modules/encryptedmedia/MediaKeysClient.h" |
| + |
| +namespace WebCore { |
| + |
| +const char* MediaKeysController::supplementName() |
| +{ |
| + return "MediaKeysController"; |
| +} |
| + |
| +MediaKeysController::MediaKeysController(MediaKeysClient* client) |
| + : m_client(client) |
| +{ |
| +} |
| + |
| +MediaKeysController::~MediaKeysController() |
| +{ |
| +} |
| + |
| +PassOwnPtr<MediaKeysController> MediaKeysController::create(MediaKeysClient* client) |
| +{ |
| + return adoptPtr(new MediaKeysController(client)); |
| +} |
| + |
| +blink::WebContentDecryptionModule* MediaKeysController::createContentDecryptionModule(ExecutionContext* context, const String& keySystem) |
| +{ |
| + return m_client->createContentDecryptionModule(context, keySystem); |
| +} |
| + |
| + |
| +void provideMediaKeysTo(Page& page, MediaKeysClient* client) |
|
eseidel
2014/03/17 23:48:03
Who calls this? Where is it declared?
jrummell
2014/03/18 17:05:31
See previous comment on UserMediaClient/Controller
|
| +{ |
| + MediaKeysController::provideTo(page, MediaKeysController::supplementName(), MediaKeysController::create(client)); |
| +} |
| + |
| +} // namespace WebCore |
| + |