| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_ANDROID_CDM_FACTORY_H_ | 5 #ifndef MEDIA_BASE_ANDROID_ANDROID_CDM_FACTORY_H_ |
| 6 #define MEDIA_BASE_ANDROID_ANDROID_CDM_FACTORY_H_ | 6 #define MEDIA_BASE_ANDROID_ANDROID_CDM_FACTORY_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "media/base/android/provision_fetcher.h" | 9 #include "media/base/android/provision_fetcher.h" |
| 10 #include "media/base/cdm_factory.h" | 10 #include "media/base/cdm_factory.h" |
| 11 #include "media/base/media_export.h" | 11 #include "media/base/media_export.h" |
| 12 | 12 |
| 13 namespace media { | 13 namespace media { |
| 14 | 14 |
| 15 struct CdmConfig; | 15 struct CdmConfig; |
| 16 | 16 |
| 17 class MEDIA_EXPORT AndroidCdmFactory : public CdmFactory { | 17 class MEDIA_EXPORT AndroidCdmFactory : public CdmFactory { |
| 18 public: | 18 public: |
| 19 AndroidCdmFactory(const CreateFetcherCB& create_fetcher_cb); | 19 AndroidCdmFactory(const CreateFetcherCB& create_fetcher_cb); |
| 20 ~AndroidCdmFactory() final; | 20 ~AndroidCdmFactory() final; |
| 21 | 21 |
| 22 // CdmFactory implementation. | 22 // CdmFactory implementation. |
| 23 void Create(const std::string& key_system, | 23 void Create(const std::string& key_system, |
| 24 const GURL& security_origin, | 24 const GURL& security_origin, |
| 25 const CdmConfig& cdm_config, | 25 const CdmConfig& cdm_config, |
| 26 const SessionMessageCB& session_message_cb, | 26 const SessionMessageCB& session_message_cb, |
| 27 const SessionClosedCB& session_closed_cb, | 27 const SessionClosedCB& session_closed_cb, |
| 28 const LegacySessionErrorCB& legacy_session_error_cb, | |
| 29 const SessionKeysChangeCB& session_keys_change_cb, | 28 const SessionKeysChangeCB& session_keys_change_cb, |
| 30 const SessionExpirationUpdateCB& session_expiration_update_cb, | 29 const SessionExpirationUpdateCB& session_expiration_update_cb, |
| 31 const CdmCreatedCB& cdm_created_cb) final; | 30 const CdmCreatedCB& cdm_created_cb) final; |
| 32 | 31 |
| 33 private: | 32 private: |
| 34 CreateFetcherCB create_fetcher_cb_; | 33 CreateFetcherCB create_fetcher_cb_; |
| 35 | 34 |
| 36 DISALLOW_COPY_AND_ASSIGN(AndroidCdmFactory); | 35 DISALLOW_COPY_AND_ASSIGN(AndroidCdmFactory); |
| 37 }; | 36 }; |
| 38 | 37 |
| 39 } // namespace media | 38 } // namespace media |
| 40 | 39 |
| 41 #endif // MEDIA_BASE_ANDROID_ANDROID_CDM_FACTORY_H_ | 40 #endif // MEDIA_BASE_ANDROID_ANDROID_CDM_FACTORY_H_ |
| OLD | NEW |