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