|
Lines 53-63
public:
a/Source/WebCore/Modules/encryptedmedia/CDM.h_sec1
|
| 53 |
|
53 |
|
| 54 |
class CDM { |
54 |
class CDM { |
| 55 |
public: |
55 |
public: |
|
|
56 |
explicit CDM(const String& keySystem); |
| 56 |
|
57 |
|
| 57 |
enum CDMErrorCode { UnknownError = 1, ClientError, ServiceError, OutputError, HardwareChangeError, DomainError }; |
58 |
enum CDMErrorCode { UnknownError = 1, ClientError, ServiceError, OutputError, HardwareChangeError, DomainError }; |
| 58 |
static bool supportsKeySystem(const String&); |
59 |
static bool supportsKeySystem(const String&); |
| 59 |
static bool keySystemSupportsMimeType(const String& keySystem, const String& mimeType); |
60 |
static bool keySystemSupportsMimeType(const String& keySystem, const String& mimeType); |
| 60 |
static PassOwnPtr<CDM> create(const String& keySystem); |
61 |
static std::unique_ptr<CDM> create(const String& keySystem); |
| 61 |
static void registerCDMFactory(CreateCDM, CDMSupportsKeySystem, CDMSupportsKeySystemAndMimeType); |
62 |
static void registerCDMFactory(CreateCDM, CDMSupportsKeySystem, CDMSupportsKeySystemAndMimeType); |
| 62 |
~CDM(); |
63 |
~CDM(); |
| 63 |
|
64 |
|
|
Lines 72-81
public:
a/Source/WebCore/Modules/encryptedmedia/CDM.h_sec2
|
| 72 |
MediaPlayer* mediaPlayer() const; |
73 |
MediaPlayer* mediaPlayer() const; |
| 73 |
|
74 |
|
| 74 |
private: |
75 |
private: |
| 75 |
CDM(const String& keySystem); |
|
|
| 76 |
|
| 77 |
String m_keySystem; |
76 |
String m_keySystem; |
| 78 |
OwnPtr<CDMPrivateInterface> m_private; |
77 |
std::unique_ptr<CDMPrivateInterface> m_private; |
| 79 |
CDMClient* m_client; |
78 |
CDMClient* m_client; |
| 80 |
}; |
79 |
}; |
| 81 |
|
80 |
|