| OLD | NEW |
| 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 CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ | 6 #define CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 int demuxer_client_id); | 273 int demuxer_client_id); |
| 274 void Pause(bool is_media_related_action); | 274 void Pause(bool is_media_related_action); |
| 275 void DrawRemotePlaybackText(const std::string& remote_playback_message); | 275 void DrawRemotePlaybackText(const std::string& remote_playback_message); |
| 276 void ReallocateVideoFrame(); | 276 void ReallocateVideoFrame(); |
| 277 void SetCurrentFrameInternal(scoped_refptr<media::VideoFrame>& frame); | 277 void SetCurrentFrameInternal(scoped_refptr<media::VideoFrame>& frame); |
| 278 void DidLoadMediaInfo(MediaInfoLoader::Status status, | 278 void DidLoadMediaInfo(MediaInfoLoader::Status status, |
| 279 const GURL& redirected_url, | 279 const GURL& redirected_url, |
| 280 const GURL& first_party_for_cookies, | 280 const GURL& first_party_for_cookies, |
| 281 bool allow_stored_credentials); | 281 bool allow_stored_credentials); |
| 282 bool IsKeySystemSupported(const std::string& key_system); | 282 bool IsKeySystemSupported(const std::string& key_system); |
| 283 bool IsLocalResource(); |
| 283 | 284 |
| 284 // Actually do the work for generateKeyRequest/addKey so they can easily | 285 // Actually do the work for generateKeyRequest/addKey so they can easily |
| 285 // report results to UMA. | 286 // report results to UMA. |
| 286 MediaKeyException GenerateKeyRequestInternal(const std::string& key_system, | 287 MediaKeyException GenerateKeyRequestInternal(const std::string& key_system, |
| 287 const unsigned char* init_data, | 288 const unsigned char* init_data, |
| 288 unsigned init_data_length); | 289 unsigned init_data_length); |
| 289 MediaKeyException AddKeyInternal(const std::string& key_system, | 290 MediaKeyException AddKeyInternal(const std::string& key_system, |
| 290 const unsigned char* key, | 291 const unsigned char* key, |
| 291 unsigned key_length, | 292 unsigned key_length, |
| 292 const unsigned char* init_data, | 293 const unsigned char* init_data, |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 469 // side CDM will be used. This is similar to WebMediaPlayerImpl. For other key | 470 // side CDM will be used. This is similar to WebMediaPlayerImpl. For other key |
| 470 // systems, a browser side CDM will be used and we set CDM by calling | 471 // systems, a browser side CDM will be used and we set CDM by calling |
| 471 // player_manager_->SetCdm() directly. | 472 // player_manager_->SetCdm() directly. |
| 472 media::DecryptorReadyCB decryptor_ready_cb_; | 473 media::DecryptorReadyCB decryptor_ready_cb_; |
| 473 | 474 |
| 474 SkBitmap bitmap_; | 475 SkBitmap bitmap_; |
| 475 | 476 |
| 476 // Whether stored credentials are allowed to be passed to the server. | 477 // Whether stored credentials are allowed to be passed to the server. |
| 477 bool allow_stored_credentials_; | 478 bool allow_stored_credentials_; |
| 478 | 479 |
| 480 // Whether the resource is local. |
| 481 bool is_local_resource_; |
| 482 |
| 479 // NOTE: Weak pointers must be invalidated before all other member variables. | 483 // NOTE: Weak pointers must be invalidated before all other member variables. |
| 480 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_; | 484 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_; |
| 481 | 485 |
| 482 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); | 486 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); |
| 483 }; | 487 }; |
| 484 | 488 |
| 485 } // namespace content | 489 } // namespace content |
| 486 | 490 |
| 487 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ | 491 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ |
| OLD | NEW |