OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "config.h" | 5 #include "config.h" |
6 #include "MediaKeysClientImpl.h" | 6 #include "MediaKeysClientImpl.h" |
7 | 7 |
8 #include "WebFrameClient.h" | 8 #include "WebFrameClient.h" |
9 #include "WebFrameImpl.h" | 9 #include "WebLocalFrameImpl.h" |
10 #include "core/dom/Document.h" | 10 #include "core/dom/Document.h" |
11 #include "core/dom/ExecutionContext.h" | 11 #include "core/dom/ExecutionContext.h" |
12 #include "public/platform/WebContentDecryptionModule.h" | 12 #include "public/platform/WebContentDecryptionModule.h" |
13 | 13 |
14 using namespace WebCore; | 14 using namespace WebCore; |
15 | 15 |
16 namespace blink { | 16 namespace blink { |
17 | 17 |
18 MediaKeysClientImpl::MediaKeysClientImpl() | 18 MediaKeysClientImpl::MediaKeysClientImpl() |
19 { | 19 { |
20 } | 20 } |
21 | 21 |
22 PassOwnPtr<WebContentDecryptionModule> MediaKeysClientImpl::createContentDecrypt
ionModule(WebCore::ExecutionContext* executionContext, const String& keySystem) | 22 PassOwnPtr<WebContentDecryptionModule> MediaKeysClientImpl::createContentDecrypt
ionModule(WebCore::ExecutionContext* executionContext, const String& keySystem) |
23 { | 23 { |
24 Document* document = toDocument(executionContext); | 24 Document* document = toDocument(executionContext); |
25 WebFrameImpl* webFrame = WebFrameImpl::fromFrame(document->frame()); | 25 WebLocalFrameImpl* webFrame = WebLocalFrameImpl::fromFrame(document->frame()
); |
26 WebSecurityOrigin securityOrigin(executionContext->securityOrigin()); | 26 WebSecurityOrigin securityOrigin(executionContext->securityOrigin()); |
27 return adoptPtr(webFrame->client()->createContentDecryptionModule(webFrame,
securityOrigin, keySystem)); | 27 return adoptPtr(webFrame->client()->createContentDecryptionModule(webFrame,
securityOrigin, keySystem)); |
28 } | 28 } |
29 | 29 |
30 } // namespace blink | 30 } // namespace blink |
OLD | NEW |