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_MOJO_CLIENTS_MOJO_CDM_H_ | 5 #ifndef MEDIA_MOJO_CLIENTS_MOJO_CDM_H_ |
6 #define MEDIA_MOJO_CLIENTS_MOJO_CDM_H_ | 6 #define MEDIA_MOJO_CLIENTS_MOJO_CDM_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 const GURL& security_origin, | 88 const GURL& security_origin, |
89 const media::CdmConfig& cdm_config, | 89 const media::CdmConfig& cdm_config, |
90 std::unique_ptr<CdmInitializedPromise> promise); | 90 std::unique_ptr<CdmInitializedPromise> promise); |
91 | 91 |
92 void OnConnectionError(); | 92 void OnConnectionError(); |
93 | 93 |
94 // mojom::ContentDecryptionModuleClient implementation. | 94 // mojom::ContentDecryptionModuleClient implementation. |
95 void OnSessionMessage(const mojo::String& session_id, | 95 void OnSessionMessage(const mojo::String& session_id, |
96 mojom::CdmMessageType message_type, | 96 mojom::CdmMessageType message_type, |
97 mojo::Array<uint8_t> message, | 97 mojo::Array<uint8_t> message, |
98 const mojo::String& legacy_destination_url) final; | 98 const GURL& legacy_destination_url) final; |
99 void OnSessionClosed(const mojo::String& session_id) final; | 99 void OnSessionClosed(const mojo::String& session_id) final; |
100 void OnLegacySessionError(const mojo::String& session_id, | 100 void OnLegacySessionError(const mojo::String& session_id, |
101 mojom::CdmException exception, | 101 mojom::CdmException exception, |
102 uint32_t system_code, | 102 uint32_t system_code, |
103 const mojo::String& error_message) final; | 103 const mojo::String& error_message) final; |
104 void OnSessionKeysChange( | 104 void OnSessionKeysChange( |
105 const mojo::String& session_id, | 105 const mojo::String& session_id, |
106 bool has_additional_usable_key, | 106 bool has_additional_usable_key, |
107 mojo::Array<mojom::CdmKeyInformationPtr> keys_info) final; | 107 mojo::Array<mojom::CdmKeyInformationPtr> keys_info) final; |
108 void OnSessionExpirationUpdate(const mojo::String& session_id, | 108 void OnSessionExpirationUpdate(const mojo::String& session_id, |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 | 170 |
171 // This must be the last member. | 171 // This must be the last member. |
172 base::WeakPtrFactory<MojoCdm> weak_factory_; | 172 base::WeakPtrFactory<MojoCdm> weak_factory_; |
173 | 173 |
174 DISALLOW_COPY_AND_ASSIGN(MojoCdm); | 174 DISALLOW_COPY_AND_ASSIGN(MojoCdm); |
175 }; | 175 }; |
176 | 176 |
177 } // namespace media | 177 } // namespace media |
178 | 178 |
179 #endif // MEDIA_MOJO_CLIENTS_MOJO_CDM_H_ | 179 #endif // MEDIA_MOJO_CLIENTS_MOJO_CDM_H_ |
OLD | NEW |