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

Unified Diff: public/platform/WebMediaPlayerClient.h

Issue 1125353004: Separate encrypted media functions out of WebMediaPlayerClient interface (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase and comments fix Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | public/platform/WebMediaPlayerEncryptedMediaClient.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebMediaPlayerClient.h
diff --git a/public/platform/WebMediaPlayerClient.h b/public/platform/WebMediaPlayerClient.h
index 67e0ad048b031287fe878458b1e255d2d3c95c62..2a1fdab642cc1baa83082238063450a769fa42ae 100644
--- a/public/platform/WebMediaPlayerClient.h
+++ b/public/platform/WebMediaPlayerClient.h
@@ -32,26 +32,19 @@
#define WebMediaPlayerClient_h
#include "WebMediaPlayer.h"
-#include "public/platform/WebEncryptedMediaTypes.h"
+#include "WebMediaPlayerEncryptedMediaClient.h"
namespace blink {
class WebInbandTextTrack;
class WebLayer;
class WebMediaSource;
-class WebURL;
-class WebMediaPlayerClient {
+// TODO(srirama): Remove this inheritance when we get rid of the MediaPlayer
+// and MediaPlayerClient interfaces by having HTMLMediaElement implement
+// WebMediaPlayerClient interface. See crbug.com/350571.
+class WebMediaPlayerClient : public WebMediaPlayerEncryptedMediaClient {
public:
- enum MediaKeyErrorCode {
- MediaKeyErrorCodeUnknown = 1,
- MediaKeyErrorCodeClient,
- MediaKeyErrorCodeService,
- MediaKeyErrorCodeOutput,
- MediaKeyErrorCodeHardwareChange,
- MediaKeyErrorCodeDomain,
- };
-
enum VideoTrackKind {
VideoTrackKindNone,
VideoTrackKindAlternative,
@@ -79,12 +72,6 @@ public:
virtual void durationChanged() = 0;
virtual void sizeChanged() = 0;
virtual void playbackStateChanged() = 0;
- virtual void keyAdded(const WebString& keySystem, const WebString& sessionId) = 0;
- virtual void keyError(const WebString& keySystem, const WebString& sessionId, MediaKeyErrorCode, unsigned short systemCode) = 0;
- virtual void keyMessage(const WebString& keySystem, const WebString& sessionId, const unsigned char* message, unsigned messageLength, const WebURL& defaultURL) = 0;
- virtual void encrypted(WebEncryptedMediaInitDataType, const unsigned char* initData, unsigned initDataLength) = 0;
- virtual void didBlockPlaybackWaitingForKey() = 0;
- virtual void didResumePlaybackBlockedForKey() = 0;
virtual void setWebLayer(WebLayer*) = 0;
virtual WebMediaPlayer::TrackId addAudioTrack(const WebString& id, AudioTrackKind, const WebString& label, const WebString& language, bool enabled) = 0;
virtual void removeAudioTrack(WebMediaPlayer::TrackId) = 0;
« no previous file with comments | « no previous file | public/platform/WebMediaPlayerEncryptedMediaClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698