OLD | NEW |
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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 virtual void mediaPlayerKeyAdded(const String& /* keySystem */, const String
& /* sessionId */) = 0; | 96 virtual void mediaPlayerKeyAdded(const String& /* keySystem */, const String
& /* sessionId */) = 0; |
97 virtual void mediaPlayerKeyError(const String& /* keySystem */, const String
& /* sessionId */, MediaKeyErrorCode, unsigned short /* systemCode */) = 0; | 97 virtual void mediaPlayerKeyError(const String& /* keySystem */, const String
& /* sessionId */, MediaKeyErrorCode, unsigned short /* systemCode */) = 0; |
98 virtual void mediaPlayerKeyMessage(const String& /* keySystem */, const Stri
ng& /* sessionId */, const unsigned char* /* message */, unsigned /* messageLeng
th */, const KURL& /* defaultURL */) = 0; | 98 virtual void mediaPlayerKeyMessage(const String& /* keySystem */, const Stri
ng& /* sessionId */, const unsigned char* /* message */, unsigned /* messageLeng
th */, const KURL& /* defaultURL */) = 0; |
99 virtual bool mediaPlayerKeyNeeded(const String& /* contentType */, const uns
igned char* /* initData */, unsigned /* initDataLength */) = 0; | 99 virtual bool mediaPlayerKeyNeeded(const String& /* contentType */, const uns
igned char* /* initData */, unsigned /* initDataLength */) = 0; |
100 | 100 |
101 virtual CORSMode mediaPlayerCORSMode() const = 0; | 101 virtual CORSMode mediaPlayerCORSMode() const = 0; |
102 | 102 |
103 virtual void mediaPlayerSetWebLayer(blink::WebLayer*) = 0; | 103 virtual void mediaPlayerSetWebLayer(blink::WebLayer*) = 0; |
104 virtual void mediaPlayerSetOpaque(bool) = 0; | 104 virtual void mediaPlayerSetOpaque(bool) = 0; |
105 | 105 |
106 virtual void mediaPlayerDidAddTextTrack(blink::WebInbandTextTrack*) = 0; | 106 virtual void mediaPlayerDidAddTrack(blink::WebInbandTextTrack*) = 0; |
107 virtual void mediaPlayerDidRemoveTextTrack(blink::WebInbandTextTrack*) = 0; | 107 virtual void mediaPlayerDidRemoveTrack(blink::WebInbandTextTrack*) = 0; |
108 | 108 |
109 virtual void mediaPlayerMediaSourceOpened(blink::WebMediaSource*) = 0; | 109 virtual void mediaPlayerMediaSourceOpened(blink::WebMediaSource*) = 0; |
110 }; | 110 }; |
111 | 111 |
112 typedef PassOwnPtr<MediaPlayer> (*CreateMediaEnginePlayer)(MediaPlayerClient*); | 112 typedef PassOwnPtr<MediaPlayer> (*CreateMediaEnginePlayer)(MediaPlayerClient*); |
113 | 113 |
114 class PLATFORM_EXPORT MediaPlayer { | 114 class PLATFORM_EXPORT MediaPlayer { |
115 WTF_MAKE_NONCOPYABLE(MediaPlayer); | 115 WTF_MAKE_NONCOPYABLE(MediaPlayer); |
116 public: | 116 public: |
117 static PassOwnPtr<MediaPlayer> create(MediaPlayerClient*); | 117 static PassOwnPtr<MediaPlayer> create(MediaPlayerClient*); |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 enum MediaKeyException { NoError, InvalidPlayerState, KeySystemNotSupported,
InvalidAccess }; | 195 enum MediaKeyException { NoError, InvalidPlayerState, KeySystemNotSupported,
InvalidAccess }; |
196 virtual MediaKeyException addKey(const String&, const unsigned char*, unsign
ed, const unsigned char*, unsigned, const String&) = 0; | 196 virtual MediaKeyException addKey(const String&, const unsigned char*, unsign
ed, const unsigned char*, unsigned, const String&) = 0; |
197 virtual MediaKeyException generateKeyRequest(const String&, const unsigned c
har*, unsigned) = 0; | 197 virtual MediaKeyException generateKeyRequest(const String&, const unsigned c
har*, unsigned) = 0; |
198 virtual MediaKeyException cancelKeyRequest(const String&, const String&) = 0
; | 198 virtual MediaKeyException cancelKeyRequest(const String&, const String&) = 0
; |
199 virtual void setContentDecryptionModule(blink::WebContentDecryptionModule*)
= 0; | 199 virtual void setContentDecryptionModule(blink::WebContentDecryptionModule*)
= 0; |
200 }; | 200 }; |
201 | 201 |
202 } | 202 } |
203 | 203 |
204 #endif // MediaPlayer_h | 204 #endif // MediaPlayer_h |
OLD | NEW |