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 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
426 | 426 |
427 // Temporary for EME v0.1. In the future the init data type should be passed | 427 // Temporary for EME v0.1. In the future the init data type should be passed |
428 // through GenerateKeyRequest() directly from WebKit. | 428 // through GenerateKeyRequest() directly from WebKit. |
429 std::string init_data_type_; | 429 std::string init_data_type_; |
430 | 430 |
431 media::DecryptorReadyCB decryptor_ready_cb_; | 431 media::DecryptorReadyCB decryptor_ready_cb_; |
432 | 432 |
433 // Manages decryption keys and decrypts encrypted frames. | 433 // Manages decryption keys and decrypts encrypted frames. |
434 scoped_ptr<ProxyDecryptor> proxy_decryptor_; | 434 scoped_ptr<ProxyDecryptor> proxy_decryptor_; |
435 | 435 |
| 436 // NOTE: Weak pointers must be invalidated before all other member variables. |
436 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_; | 437 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_; |
437 | 438 |
438 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); | 439 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); |
439 }; | 440 }; |
440 | 441 |
441 } // namespace content | 442 } // namespace content |
442 | 443 |
443 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ | 444 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ |
OLD | NEW |