| Index: webkit/media/webmediaplayer_impl.h
|
| diff --git a/webkit/media/webmediaplayer_impl.h b/webkit/media/webmediaplayer_impl.h
|
| index fc803a37211cf8a813d200b45581ae812a9e4539..a9d3eb9b7db4f0255cf5c52edbdd89826e32e617 100644
|
| --- a/webkit/media/webmediaplayer_impl.h
|
| +++ b/webkit/media/webmediaplayer_impl.h
|
| @@ -184,6 +184,23 @@ class WebMediaPlayerImpl
|
| virtual bool sourceAppend(const unsigned char* data, unsigned length);
|
| virtual void sourceEndOfStream(EndOfStreamStatus status);
|
|
|
| + virtual MediaKeyException generateKeyRequest(
|
| + const WebKit::WebString& key_system,
|
| + const unsigned char* init_data,
|
| + unsigned init_data_length);
|
| +
|
| + virtual MediaKeyException addKey(const WebKit::WebString& key_system,
|
| + const unsigned char* key,
|
| + unsigned key_length,
|
| + const unsigned char* init_data,
|
| + unsigned init_data_length,
|
| + const WebKit::WebString& session_id);
|
| +
|
| + virtual MediaKeyException cancelKeyRequest(
|
| + const WebKit::WebString& key_system,
|
| + const WebKit::WebString& session_id);
|
| +
|
| +
|
| // As we are closing the tab or even the browser, |main_loop_| is destroyed
|
| // even before this object gets destructed, so we need to know when
|
| // |main_loop_| is being destroyed and we can stop posting repaint task
|
| @@ -221,6 +238,17 @@ class WebMediaPlayerImpl
|
| // Lets V8 know that player uses extra resources not managed by V8.
|
| void IncrementExternallyAllocatedMemory();
|
|
|
| + void generateKeyRequestTask(const WebKit::WebString& key_system,
|
| + const unsigned char* init_data,
|
| + unsigned init_data_length);
|
| +
|
| + void addKeyTask(const WebKit::WebString& key_system,
|
| + const unsigned char* key,
|
| + unsigned key_length,
|
| + const unsigned char* init_data,
|
| + unsigned init_data_length,
|
| + const WebKit::WebString& session_id);
|
| +
|
| WebKit::WebFrame* frame_;
|
|
|
| // TODO(hclam): get rid of these members and read from the pipeline directly.
|
|
|