default_cdm_factory.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. // Copyright 2014 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef MEDIA_CDM_DEFAULT_CDM_FACTORY_H_
  5. #define MEDIA_CDM_DEFAULT_CDM_FACTORY_H_
  6. #include "media/base/cdm_factory.h"
  7. #include "media/base/media_export.h"
  8. namespace media {
  9. struct CdmConfig;
  10. class MEDIA_EXPORT DefaultCdmFactory final : public CdmFactory {
  11. public:
  12. DefaultCdmFactory();
  13. DefaultCdmFactory(const DefaultCdmFactory&) = delete;
  14. DefaultCdmFactory& operator=(const DefaultCdmFactory&) = delete;
  15. ~DefaultCdmFactory() final;
  16. // CdmFactory implementation.
  17. void Create(const CdmConfig& cdm_config,
  18. const SessionMessageCB& session_message_cb,
  19. const SessionClosedCB& session_closed_cb,
  20. const SessionKeysChangeCB& session_keys_change_cb,
  21. const SessionExpirationUpdateCB& session_expiration_update_cb,
  22. CdmCreatedCB cdm_created_cb) final;
  23. };
  24. } // namespace media
  25. #endif // MEDIA_CDM_DEFAULT_CDM_FACTORY_H_