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

Side by Side Diff: Source/web/WebMediaPlayerClientImpl.cpp

Issue 134663005: Add new needkey event for EME. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix test Created 6 years, 11 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/WebMediaPlayerClientImpl.h ('k') | public/platform/WebMediaPlayerClient.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 "WebMediaPlayerClientImpl.h" 6 #include "WebMediaPlayerClientImpl.h"
7 7
8 #include "WebDocument.h" 8 #include "WebDocument.h"
9 #include "WebFrameClient.h" 9 #include "WebFrameClient.h"
10 #include "WebFrameImpl.h" 10 #include "WebFrameImpl.h"
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 void WebMediaPlayerClientImpl::keyError(const WebString& keySystem, const WebStr ing& sessionId, MediaKeyErrorCode errorCode, unsigned short systemCode) 133 void WebMediaPlayerClientImpl::keyError(const WebString& keySystem, const WebStr ing& sessionId, MediaKeyErrorCode errorCode, unsigned short systemCode)
134 { 134 {
135 m_client->mediaPlayerKeyError(keySystem, sessionId, static_cast<MediaPlayerC lient::MediaKeyErrorCode>(errorCode), systemCode); 135 m_client->mediaPlayerKeyError(keySystem, sessionId, static_cast<MediaPlayerC lient::MediaKeyErrorCode>(errorCode), systemCode);
136 } 136 }
137 137
138 void WebMediaPlayerClientImpl::keyMessage(const WebString& keySystem, const WebS tring& sessionId, const unsigned char* message, unsigned messageLength, const We bURL& defaultURL) 138 void WebMediaPlayerClientImpl::keyMessage(const WebString& keySystem, const WebS tring& sessionId, const unsigned char* message, unsigned messageLength, const We bURL& defaultURL)
139 { 139 {
140 m_client->mediaPlayerKeyMessage(keySystem, sessionId, message, messageLength , defaultURL); 140 m_client->mediaPlayerKeyMessage(keySystem, sessionId, message, messageLength , defaultURL);
141 } 141 }
142 142
143 void WebMediaPlayerClientImpl::keyNeeded(const WebString& keySystem, const WebSt ring& sessionId, const unsigned char* initData, unsigned initDataLength) 143 void WebMediaPlayerClientImpl::keyNeeded(const WebString& contentType, const uns igned char* initData, unsigned initDataLength)
144 { 144 {
145 m_client->mediaPlayerKeyNeeded(keySystem, sessionId, initData, initDataLengt h); 145 m_client->mediaPlayerKeyNeeded(contentType, initData, initDataLength);
146 } 146 }
147 147
148 WebPlugin* WebMediaPlayerClientImpl::createHelperPlugin(const WebString& pluginT ype, WebFrame* frame) 148 WebPlugin* WebMediaPlayerClientImpl::createHelperPlugin(const WebString& pluginT ype, WebFrame* frame)
149 { 149 {
150 ASSERT(!m_helperPlugin); 150 ASSERT(!m_helperPlugin);
151 151
152 m_helperPlugin = toWebViewImpl(frame->view())->createHelperPlugin(pluginType , frame->document()); 152 m_helperPlugin = toWebViewImpl(frame->view())->createHelperPlugin(pluginType , frame->document());
153 if (!m_helperPlugin) 153 if (!m_helperPlugin)
154 return 0; 154 return 0;
155 155
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after
670 670
671 void WebMediaPlayerClientImpl::AudioClientImpl::setFormat(size_t numberOfChannel s, float sampleRate) 671 void WebMediaPlayerClientImpl::AudioClientImpl::setFormat(size_t numberOfChannel s, float sampleRate)
672 { 672 {
673 if (m_client) 673 if (m_client)
674 m_client->setFormat(numberOfChannels, sampleRate); 674 m_client->setFormat(numberOfChannels, sampleRate);
675 } 675 }
676 676
677 #endif 677 #endif
678 678
679 } // namespace blink 679 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/WebMediaPlayerClientImpl.h ('k') | public/platform/WebMediaPlayerClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698