| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 MEDIA_BASE_ANDROID_MEDIA_DRM_BRIDGE_H_ | 5 #ifndef MEDIA_BASE_ANDROID_MEDIA_DRM_BRIDGE_H_ |
| 6 #define MEDIA_BASE_ANDROID_MEDIA_DRM_BRIDGE_H_ | 6 #define MEDIA_BASE_ANDROID_MEDIA_DRM_BRIDGE_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 // MediaCrypto creation has not been notified via NotifyMediaCryptoReady(). | 304 // MediaCrypto creation has not been notified via NotifyMediaCryptoReady(). |
| 305 // !j_media_crypto_->is_null(): | 305 // !j_media_crypto_->is_null(): |
| 306 // MediaCrypto creation succeeded and it has been notified. | 306 // MediaCrypto creation succeeded and it has been notified. |
| 307 // j_media_crypto_->is_null(): | 307 // j_media_crypto_->is_null(): |
| 308 // MediaCrypto creation failed and it has been notified. | 308 // MediaCrypto creation failed and it has been notified. |
| 309 JavaObjectPtr j_media_crypto_; | 309 JavaObjectPtr j_media_crypto_; |
| 310 | 310 |
| 311 // The callback to create a ProvisionFetcher. | 311 // The callback to create a ProvisionFetcher. |
| 312 CreateFetcherCB create_fetcher_cb_; | 312 CreateFetcherCB create_fetcher_cb_; |
| 313 | 313 |
| 314 // The callback to create a MediaDrmStorage. | |
| 315 CreateStorageCB create_storage_cb_; | |
| 316 | |
| 317 // The ProvisionFetcher that requests and receives provisioning data. | 314 // The ProvisionFetcher that requests and receives provisioning data. |
| 318 // Non-null iff when a provision request is pending. | 315 // Non-null iff when a provision request is pending. |
| 319 std::unique_ptr<ProvisionFetcher> provision_fetcher_; | 316 std::unique_ptr<ProvisionFetcher> provision_fetcher_; |
| 320 | 317 |
| 321 // Callbacks for firing session events. | 318 // Callbacks for firing session events. |
| 322 SessionMessageCB session_message_cb_; | 319 SessionMessageCB session_message_cb_; |
| 323 SessionClosedCB session_closed_cb_; | 320 SessionClosedCB session_closed_cb_; |
| 324 SessionKeysChangeCB session_keys_change_cb_; | 321 SessionKeysChangeCB session_keys_change_cb_; |
| 325 SessionExpirationUpdateCB session_expiration_update_cb_; | 322 SessionExpirationUpdateCB session_expiration_update_cb_; |
| 326 | 323 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 339 | 336 |
| 340 // NOTE: Weak pointers must be invalidated before all other member variables. | 337 // NOTE: Weak pointers must be invalidated before all other member variables. |
| 341 base::WeakPtrFactory<MediaDrmBridge> weak_factory_; | 338 base::WeakPtrFactory<MediaDrmBridge> weak_factory_; |
| 342 | 339 |
| 343 DISALLOW_COPY_AND_ASSIGN(MediaDrmBridge); | 340 DISALLOW_COPY_AND_ASSIGN(MediaDrmBridge); |
| 344 }; | 341 }; |
| 345 | 342 |
| 346 } // namespace media | 343 } // namespace media |
| 347 | 344 |
| 348 #endif // MEDIA_BASE_ANDROID_MEDIA_DRM_BRIDGE_H_ | 345 #endif // MEDIA_BASE_ANDROID_MEDIA_DRM_BRIDGE_H_ |
| OLD | NEW |