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

Side by Side Diff: third_party/WebKit/Source/web/MediaKeysClientImpl.cpp

Issue 2871833003: Move more classes to use WebLocalFrameBase from WebLocalFrameImpl. (Closed)
Patch Set: Created 3 years, 7 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 unified diff | Download patch
OLDNEW
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698