Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1600)

Unified Diff: Source/modules/encryptedmedia/MediaKeysController.cpp

Issue 195053004: Create Pepper-based CDM for EME WD (Blink changes) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Move provideMediaKeysTo() to MediaKeysController Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..cb154c241995dbe2e4afde97f306dfd1718eb693
--- /dev/null
+++ b/Source/modules/encryptedmedia/MediaKeysController.cpp
@@ -0,0 +1,39 @@
+// 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"
+#include "public/platform/WebContentDecryptionModule.h"
+
+namespace WebCore {
+
+const char* MediaKeysController::supplementName()
+{
+ return "MediaKeysController";
+}
+
+MediaKeysController::MediaKeysController(MediaKeysClient* client)
+ : m_client(client)
+{
+}
+
+MediaKeysController::~MediaKeysController()
+{
+}
+
+PassOwnPtr<blink::WebContentDecryptionModule> MediaKeysController::createContentDecryptionModule(ExecutionContext* context, const String& keySystem)
+{
+ return m_client->createContentDecryptionModule(context, keySystem);
+}
+
+
+void MediaKeysController::provideMediaKeysTo(Page& page, MediaKeysClient* client)
+{
+ MediaKeysController::provideTo(page, supplementName(), adoptPtr(new MediaKeysController(client)));
+}
+
+} // namespace WebCore
+

Powered by Google App Engine
This is Rietveld 408576698