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

Side by Side Diff: webkit/renderer/media/android/webmediaplayer_android.h

Issue 17289006: Separate CDM initialization from GenerateKeyRequest & remove key_system parameters. (Closed) Base URL: master
Patch Set: rebase only Created 7 years, 6 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 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef WEBKIT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ 5 #ifndef WEBKIT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_
6 #define WEBKIT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ 6 #define WEBKIT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 const WebKit::WebString& key_system, 201 const WebKit::WebString& key_system,
202 const unsigned char* key, 202 const unsigned char* key,
203 unsigned key_length, 203 unsigned key_length,
204 const unsigned char* init_data, 204 const unsigned char* init_data,
205 unsigned init_data_length, 205 unsigned init_data_length,
206 const WebKit::WebString& session_id) OVERRIDE; 206 const WebKit::WebString& session_id) OVERRIDE;
207 virtual MediaKeyException cancelKeyRequest( 207 virtual MediaKeyException cancelKeyRequest(
208 const WebKit::WebString& key_system, 208 const WebKit::WebString& key_system,
209 const WebKit::WebString& session_id) OVERRIDE; 209 const WebKit::WebString& session_id) OVERRIDE;
210 210
211 void OnKeyAdded(const std::string& key_system, const std::string& session_id); 211 void OnKeyAdded(const std::string& session_id);
212 void OnKeyError(const std::string& key_system, 212 void OnKeyError(const std::string& session_id,
213 const std::string& session_id,
214 media::MediaKeys::KeyError error_code, 213 media::MediaKeys::KeyError error_code,
215 int system_code); 214 int system_code);
216 void OnKeyMessage(const std::string& key_system, 215 void OnKeyMessage(const std::string& session_id,
217 const std::string& session_id,
218 const std::string& message, 216 const std::string& message,
219 const std::string& destination_url); 217 const std::string& destination_url);
220 218
221 void OnNeedKey(const std::string& key_system, 219 void OnNeedKey(const std::string& type,
222 const std::string& type,
223 const std::string& session_id, 220 const std::string& session_id,
224 scoped_ptr<uint8[]> init_data, 221 scoped_ptr<uint8[]> init_data,
225 int init_data_size); 222 int init_data_size);
226 223
227 #if defined(GOOGLE_TV) 224 #if defined(GOOGLE_TV)
228 bool InjectMediaStream(MediaStreamClient* media_stream_client, 225 bool InjectMediaStream(MediaStreamClient* media_stream_client,
229 media::Demuxer* demuxer, 226 media::Demuxer* demuxer,
230 const base::Closure& destroy_demuxer_cb); 227 const base::Closure& destroy_demuxer_cb);
231 #endif 228 #endif
232 229
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 404
408 // The decryptor that manages decryption keys and decrypts encrypted frames. 405 // The decryptor that manages decryption keys and decrypts encrypted frames.
409 scoped_ptr<ProxyDecryptor> decryptor_; 406 scoped_ptr<ProxyDecryptor> decryptor_;
410 407
411 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); 408 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid);
412 }; 409 };
413 410
414 } // namespace webkit_media 411 } // namespace webkit_media
415 412
416 #endif // WEBKIT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ 413 #endif // WEBKIT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_
OLDNEW
« no previous file with comments | « webkit/renderer/media/android/media_source_delegate.cc ('k') | webkit/renderer/media/android/webmediaplayer_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698