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_BASE_CDM_FACTORY_H_ | 5 #ifndef MEDIA_CDM_DEFAULT_CDM_FACTORY_H_ |
6 #define MEDIA_BASE_CDM_FACTORY_H_ | 6 #define MEDIA_CDM_DEFAULT_CDM_FACTORY_H_ |
7 | 7 |
8 #include <string> | 8 #include "base/macros.h" |
9 | 9 #include "media/base/cdm_factory.h" |
10 #include "base/memory/scoped_ptr.h" | |
11 #include "media/base/media_export.h" | |
12 #include "media/base/media_keys.h" | |
13 | |
14 class GURL; | |
15 | 10 |
16 namespace media { | 11 namespace media { |
17 | 12 |
18 class MEDIA_EXPORT CdmFactory { | 13 class DefaultCdmFactory : public CdmFactory { |
19 public: | 14 public: |
20 CdmFactory(); | 15 DefaultCdmFactory(); |
21 virtual ~CdmFactory(); | 16 ~DefaultCdmFactory() final; |
22 | 17 |
23 virtual scoped_ptr<MediaKeys> Create( | 18 // CdmFactory implementation. |
| 19 scoped_ptr<MediaKeys> Create( |
24 const std::string& key_system, | 20 const std::string& key_system, |
25 const GURL& security_origin, | 21 const GURL& security_origin, |
26 const SessionMessageCB& session_message_cb, | 22 const SessionMessageCB& session_message_cb, |
27 const SessionReadyCB& session_ready_cb, | 23 const SessionReadyCB& session_ready_cb, |
28 const SessionClosedCB& session_closed_cb, | 24 const SessionClosedCB& session_closed_cb, |
29 const SessionErrorCB& session_error_cb, | 25 const SessionErrorCB& session_error_cb, |
30 const SessionKeysChangeCB& session_keys_change_cb, | 26 const SessionKeysChangeCB& session_keys_change_cb, |
31 const SessionExpirationUpdateCB& session_expiration_update_cb) = 0; | 27 const SessionExpirationUpdateCB& session_expiration_update_cb) final; |
32 | 28 |
33 private: | 29 private: |
34 DISALLOW_COPY_AND_ASSIGN(CdmFactory); | 30 DISALLOW_COPY_AND_ASSIGN(DefaultCdmFactory); |
35 }; | 31 }; |
36 | 32 |
37 } // namespace media | 33 } // namespace media |
38 | 34 |
39 #endif // MEDIA_BASE_CDM_FACTORY_H_ | 35 #endif // MEDIA_CDM_DEFAULT_CDM_FACTORY_H_ |
OLD | NEW |