| 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_MOJO_CLIENTS_MOJO_CDM_FACTORY_H_ | 5 #ifndef MEDIA_MOJO_CLIENTS_MOJO_CDM_FACTORY_H_ |
| 6 #define MEDIA_MOJO_CLIENTS_MOJO_CDM_FACTORY_H_ | 6 #define MEDIA_MOJO_CLIENTS_MOJO_CDM_FACTORY_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "media/base/cdm_factory.h" | 9 #include "media/base/cdm_factory.h" |
| 10 | 10 |
| 11 namespace shell { | 11 namespace shell { |
| 12 namespace mojom { | 12 namespace mojom { |
| 13 class InterfaceProvider; | 13 class InterfaceProvider; |
| 14 } | 14 } |
| 15 } | 15 } |
| 16 | 16 |
| 17 namespace media { | 17 namespace media { |
| 18 | 18 |
| 19 class MojoCdmFactory : public CdmFactory { | 19 class MojoCdmFactory : public CdmFactory { |
| 20 public: | 20 public: |
| 21 explicit MojoCdmFactory(shell::mojom::InterfaceProvider* interface_provider); | 21 explicit MojoCdmFactory(shell::mojom::InterfaceProvider* interface_provider); |
| 22 ~MojoCdmFactory() final; | 22 ~MojoCdmFactory() final; |
| 23 | 23 |
| 24 // CdmFactory implementation. | 24 // CdmFactory implementation. |
| 25 void Create(const std::string& key_system, | 25 void Create(const std::string& key_system, |
| 26 const GURL& security_origin, | 26 const GURL& security_origin, |
| 27 const CdmConfig& cdm_config, | 27 const CdmConfig& cdm_config, |
| 28 const SessionMessageCB& session_message_cb, | 28 const SessionMessageCB& session_message_cb, |
| 29 const SessionClosedCB& session_closed_cb, | 29 const SessionClosedCB& session_closed_cb, |
| 30 const LegacySessionErrorCB& legacy_session_error_cb, | |
| 31 const SessionKeysChangeCB& session_keys_change_cb, | 30 const SessionKeysChangeCB& session_keys_change_cb, |
| 32 const SessionExpirationUpdateCB& session_expiration_update_cb, | 31 const SessionExpirationUpdateCB& session_expiration_update_cb, |
| 33 const CdmCreatedCB& cdm_created_cb) final; | 32 const CdmCreatedCB& cdm_created_cb) final; |
| 34 | 33 |
| 35 private: | 34 private: |
| 36 shell::mojom::InterfaceProvider* interface_provider_; | 35 shell::mojom::InterfaceProvider* interface_provider_; |
| 37 | 36 |
| 38 DISALLOW_COPY_AND_ASSIGN(MojoCdmFactory); | 37 DISALLOW_COPY_AND_ASSIGN(MojoCdmFactory); |
| 39 }; | 38 }; |
| 40 | 39 |
| 41 } // namespace media | 40 } // namespace media |
| 42 | 41 |
| 43 #endif // MEDIA_MOJO_CLIENTS_MOJO_CDM_FACTORY_H_ | 42 #endif // MEDIA_MOJO_CLIENTS_MOJO_CDM_FACTORY_H_ |
| OLD | NEW |