Index: Source/web/MediaKeysClientImpl.cpp |
diff --git a/Source/web/MediaKeysClientImpl.cpp b/Source/web/MediaKeysClientImpl.cpp |
new file mode 100644 |
index 0000000000000000000000000000000000000000..1ff44ac65a4e64196323b759c1a2fa932821acd7 |
--- /dev/null |
+++ b/Source/web/MediaKeysClientImpl.cpp |
@@ -0,0 +1,35 @@ |
+// 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" |
+ |
+using namespace WebCore; |
+ |
+namespace blink { |
+ |
+PassOwnPtr<MediaKeysClientImpl> MediaKeysClientImpl::create() |
+{ |
+ return adoptPtr(new MediaKeysClientImpl()); |
+} |
+ |
+MediaKeysClientImpl::MediaKeysClientImpl() |
+{ |
+} |
+ |
+WebContentDecryptionModule* MediaKeysClientImpl::createContentDecryptionModule(WebCore::ExecutionContext* executionContext, const String& keySystem) |
+{ |
+ ASSERT(executionContext->isDocument()); |
eseidel
2014/03/17 23:48:03
doesn't toDocument ASSERT this for you?
jrummell
2014/03/18 17:05:31
Does. Removed.
|
+ Document* document = toDocument(executionContext); |
+ WebFrameImpl* webFrame = WebFrameImpl::fromFrame(document->frame()); |
+ WebSecurityOrigin securityOrigin(executionContext->securityOrigin()); |
eseidel
2014/03/17 23:48:03
I'm slightly surprised these are not implicitly co
jrummell
2014/03/18 17:05:31
Doesn't appear that implicit constructor exists.
|
+ return webFrame->client()->createContentDecryptionModule(webFrame, securityOrigin, keySystem); |
+} |
+ |
+} // namespace blink |