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

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: remove from proxy calls 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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 const WebKit::WebString& key_system, 199 const WebKit::WebString& key_system,
200 const unsigned char* key, 200 const unsigned char* key,
201 unsigned key_length, 201 unsigned key_length,
202 const unsigned char* init_data, 202 const unsigned char* init_data,
203 unsigned init_data_length, 203 unsigned init_data_length,
204 const WebKit::WebString& session_id) OVERRIDE; 204 const WebKit::WebString& session_id) OVERRIDE;
205 virtual MediaKeyException cancelKeyRequest( 205 virtual MediaKeyException cancelKeyRequest(
206 const WebKit::WebString& key_system, 206 const WebKit::WebString& key_system,
207 const WebKit::WebString& session_id) OVERRIDE; 207 const WebKit::WebString& session_id) OVERRIDE;
208 208
209 void OnKeyAdded(const std::string& key_system, const std::string& session_id); 209 void OnKeyAdded(const std::string& session_id);
210 void OnKeyError(const std::string& key_system, 210 void OnKeyError(const std::string& session_id,
211 const std::string& session_id,
212 media::MediaKeys::KeyError error_code, 211 media::MediaKeys::KeyError error_code,
213 int system_code); 212 int system_code);
214 void OnKeyMessage(const std::string& key_system, 213 void OnKeyMessage(const std::string& session_id,
215 const std::string& session_id,
216 const std::string& message, 214 const std::string& message,
217 const std::string& destination_url); 215 const std::string& destination_url);
218 216
219 void OnNeedKey(const std::string& key_system, 217 void OnNeedKey(const std::string& type,
220 const std::string& type,
221 const std::string& session_id, 218 const std::string& session_id,
222 scoped_ptr<uint8[]> init_data, 219 scoped_ptr<uint8[]> init_data,
223 int init_data_size); 220 int init_data_size);
224 221
225 #if defined(GOOGLE_TV) 222 #if defined(GOOGLE_TV)
226 bool InjectMediaStream(MediaStreamClient* media_stream_client, 223 bool InjectMediaStream(MediaStreamClient* media_stream_client,
227 media::Demuxer* demuxer, 224 media::Demuxer* demuxer,
228 const base::Closure& destroy_demuxer_cb); 225 const base::Closure& destroy_demuxer_cb);
229 #endif 226 #endif
230 227
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 395
399 // The decryptor that manages decryption keys and decrypts encrypted frames. 396 // The decryptor that manages decryption keys and decrypts encrypted frames.
400 scoped_ptr<ProxyDecryptor> decryptor_; 397 scoped_ptr<ProxyDecryptor> decryptor_;
401 398
402 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); 399 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid);
403 }; 400 };
404 401
405 } // namespace webkit_media 402 } // namespace webkit_media
406 403
407 #endif // WEBKIT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ 404 #endif // WEBKIT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698