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

Unified Diff: Source/web/MediaKeysClientImpl.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
« no previous file with comments | « Source/web/MediaKeysClientImpl.h ('k') | Source/web/WebViewImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/MediaKeysClientImpl.cpp
diff --git a/Source/web/MediaKeysClientImpl.cpp b/Source/web/MediaKeysClientImpl.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..5b83f56affb6a371acfe31b5b5f098dab6dafa9e
--- /dev/null
+++ b/Source/web/MediaKeysClientImpl.cpp
@@ -0,0 +1,30 @@
+// 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"
+#include "public/platform/WebContentDecryptionModule.h"
+
+using namespace WebCore;
+
+namespace blink {
+
+MediaKeysClientImpl::MediaKeysClientImpl()
+{
+}
+
+PassOwnPtr<WebContentDecryptionModule> MediaKeysClientImpl::createContentDecryptionModule(WebCore::ExecutionContext* executionContext, const String& keySystem)
+{
+ Document* document = toDocument(executionContext);
+ WebFrameImpl* webFrame = WebFrameImpl::fromFrame(document->frame());
eseidel 2014/03/21 17:48:04 Hopefully this is never called on a detached docum
+ WebSecurityOrigin securityOrigin(executionContext->securityOrigin());
+ return adoptPtr(webFrame->client()->createContentDecryptionModule(webFrame, securityOrigin, keySystem));
+}
+
+} // namespace blink
« no previous file with comments | « Source/web/MediaKeysClientImpl.h ('k') | Source/web/WebViewImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698