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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « Source/web/MediaKeysClientImpl.h ('k') | Source/web/WebViewImpl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "config.h"
6 #include "MediaKeysClientImpl.h"
7
8 #include "WebFrameClient.h"
9 #include "WebFrameImpl.h"
10 #include "core/dom/Document.h"
11 #include "core/dom/ExecutionContext.h"
12 #include "public/platform/WebContentDecryptionModule.h"
13
14 using namespace WebCore;
15
16 namespace blink {
17
18 MediaKeysClientImpl::MediaKeysClientImpl()
19 {
20 }
21
22 PassOwnPtr<WebContentDecryptionModule> MediaKeysClientImpl::createContentDecrypt ionModule(WebCore::ExecutionContext* executionContext, const String& keySystem)
23 {
24 Document* document = toDocument(executionContext);
25 WebFrameImpl* webFrame = WebFrameImpl::fromFrame(document->frame());
eseidel 2014/03/21 17:48:04 Hopefully this is never called on a detached docum
26 WebSecurityOrigin securityOrigin(executionContext->securityOrigin());
27 return adoptPtr(webFrame->client()->createContentDecryptionModule(webFrame, securityOrigin, keySystem));
28 }
29
30 } // namespace blink
OLDNEW
« 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