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

Side by Side Diff: Source/platform/graphics/media/MediaPlayer.h

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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 // a new frame of video is available 85 // a new frame of video is available
86 virtual void mediaPlayerRepaint() = 0; 86 virtual void mediaPlayerRepaint() = 0;
87 87
88 // the movie size has changed 88 // the movie size has changed
89 virtual void mediaPlayerSizeChanged() = 0; 89 virtual void mediaPlayerSizeChanged() = 0;
90 90
91 enum MediaKeyErrorCode { UnknownError = 1, ClientError, ServiceError, Output Error, HardwareChangeError, DomainError }; 91 enum MediaKeyErrorCode { UnknownError = 1, ClientError, ServiceError, Output Error, HardwareChangeError, DomainError };
92 virtual void mediaPlayerKeyAdded(const String& /* keySystem */, const String & /* sessionId */) = 0; 92 virtual void mediaPlayerKeyAdded(const String& /* keySystem */, const String & /* sessionId */) = 0;
93 virtual void mediaPlayerKeyError(const String& /* keySystem */, const String & /* sessionId */, MediaKeyErrorCode, unsigned short /* systemCode */) = 0; 93 virtual void mediaPlayerKeyError(const String& /* keySystem */, const String & /* sessionId */, MediaKeyErrorCode, unsigned short /* systemCode */) = 0;
94 virtual void mediaPlayerKeyMessage(const String& /* keySystem */, const Stri ng& /* sessionId */, const unsigned char* /* message */, unsigned /* messageLeng th */, const KURL& /* defaultURL */) = 0; 94 virtual void mediaPlayerKeyMessage(const String& /* keySystem */, const Stri ng& /* sessionId */, const unsigned char* /* message */, unsigned /* messageLeng th */, const KURL& /* defaultURL */) = 0;
95 virtual bool mediaPlayerKeyNeeded(const String& /* keySystem */, const Strin g& /* sessionId */, const unsigned char* /* initData */, unsigned /* initDataLen gth */) = 0; 95 virtual bool mediaPlayerKeyNeeded(const String& /* contentType */, const uns igned char* /* initData */, unsigned /* initDataLength */) = 0;
96 virtual bool mediaPlayerKeyNeeded(Uint8Array* /* initData */) = 0;
97 96
98 virtual CORSMode mediaPlayerCORSMode() const = 0; 97 virtual CORSMode mediaPlayerCORSMode() const = 0;
99 98
100 virtual void mediaPlayerSetWebLayer(blink::WebLayer*) = 0; 99 virtual void mediaPlayerSetWebLayer(blink::WebLayer*) = 0;
101 virtual void mediaPlayerSetOpaque(bool) = 0; 100 virtual void mediaPlayerSetOpaque(bool) = 0;
102 101
103 virtual void mediaPlayerDidAddTrack(blink::WebInbandTextTrack*) = 0; 102 virtual void mediaPlayerDidAddTrack(blink::WebInbandTextTrack*) = 0;
104 virtual void mediaPlayerDidRemoveTrack(blink::WebInbandTextTrack*) = 0; 103 virtual void mediaPlayerDidRemoveTrack(blink::WebInbandTextTrack*) = 0;
105 104
106 virtual void mediaPlayerMediaSourceOpened(blink::WebMediaSource*) = 0; 105 virtual void mediaPlayerMediaSourceOpened(blink::WebMediaSource*) = 0;
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 enum MediaKeyException { NoError, InvalidPlayerState, KeySystemNotSupported, InvalidAccess }; 190 enum MediaKeyException { NoError, InvalidPlayerState, KeySystemNotSupported, InvalidAccess };
192 virtual MediaKeyException addKey(const String&, const unsigned char*, unsign ed, const unsigned char*, unsigned, const String&) = 0; 191 virtual MediaKeyException addKey(const String&, const unsigned char*, unsign ed, const unsigned char*, unsigned, const String&) = 0;
193 virtual MediaKeyException generateKeyRequest(const String&, const unsigned c har*, unsigned) = 0; 192 virtual MediaKeyException generateKeyRequest(const String&, const unsigned c har*, unsigned) = 0;
194 virtual MediaKeyException cancelKeyRequest(const String&, const String&) = 0 ; 193 virtual MediaKeyException cancelKeyRequest(const String&, const String&) = 0 ;
195 virtual void setContentDecryptionModule(blink::WebContentDecryptionModule*) = 0; 194 virtual void setContentDecryptionModule(blink::WebContentDecryptionModule*) = 0;
196 }; 195 };
197 196
198 } 197 }
199 198
200 #endif // MediaPlayer_h 199 #endif // MediaPlayer_h
OLDNEW
« no previous file with comments | « Source/modules/encryptedmedia/MediaKeyNeededEvent.idl ('k') | Source/web/WebMediaPlayerClientImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698