| 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 "web/MediaKeysClientImpl.h" | 5 #include "web/MediaKeysClientImpl.h" |
| 6 | 6 |
| 7 #include "core/dom/Document.h" | 7 #include "core/dom/Document.h" |
| 8 #include "core/dom/ExecutionContext.h" | 8 #include "core/dom/ExecutionContext.h" |
| 9 #include "core/frame/WebLocalFrameBase.h" |
| 9 #include "public/platform/WebContentDecryptionModule.h" | 10 #include "public/platform/WebContentDecryptionModule.h" |
| 10 #include "public/web/WebFrameClient.h" | 11 #include "public/web/WebFrameClient.h" |
| 11 #include "web/WebLocalFrameImpl.h" | |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 MediaKeysClientImpl::MediaKeysClientImpl() {} | 15 MediaKeysClientImpl::MediaKeysClientImpl() {} |
| 16 | 16 |
| 17 WebEncryptedMediaClient* MediaKeysClientImpl::EncryptedMediaClient( | 17 WebEncryptedMediaClient* MediaKeysClientImpl::EncryptedMediaClient( |
| 18 ExecutionContext* execution_context) { | 18 ExecutionContext* execution_context) { |
| 19 Document* document = ToDocument(execution_context); | 19 Document* document = ToDocument(execution_context); |
| 20 WebLocalFrameImpl* web_frame = | 20 WebLocalFrameBase* web_frame = |
| 21 WebLocalFrameImpl::FromFrame(document->GetFrame()); | 21 WebLocalFrameBase::FromFrame(document->GetFrame()); |
| 22 return web_frame->Client()->EncryptedMediaClient(); | 22 return web_frame->Client()->EncryptedMediaClient(); |
| 23 } | 23 } |
| 24 | 24 |
| 25 } // namespace blink | 25 } // namespace blink |
| OLD | NEW |