summaryrefslogtreecommitdiffstats
path: root/media/cdm/aes_decryptor.h
diff options
context:
space:
mode:
Diffstat (limited to 'media/cdm/aes_decryptor.h')
-rw-r--r--media/cdm/aes_decryptor.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/media/cdm/aes_decryptor.h b/media/cdm/aes_decryptor.h
index 5c7a06c..110abfb1 100644
--- a/media/cdm/aes_decryptor.h
+++ b/media/cdm/aes_decryptor.h
@@ -7,6 +7,7 @@
#include <set>
#include <string>
+#include <vector>
#include "base/basictypes.h"
#include "base/containers/scoped_ptr_hash_map.h"
@@ -39,21 +40,18 @@ class MEDIA_EXPORT AesDecryptor : public MediaKeys,
~AesDecryptor() override;
// MediaKeys implementation.
- void SetServerCertificate(const uint8* certificate_data,
- int certificate_data_length,
+ void SetServerCertificate(const std::vector<uint8_t>& certificate,
scoped_ptr<SimpleCdmPromise> promise) override;
void CreateSessionAndGenerateRequest(
SessionType session_type,
EmeInitDataType init_data_type,
- const uint8* init_data,
- int init_data_length,
+ const std::vector<uint8_t>& init_data,
scoped_ptr<NewSessionCdmPromise> promise) override;
void LoadSession(SessionType session_type,
const std::string& session_id,
scoped_ptr<NewSessionCdmPromise> promise) override;
void UpdateSession(const std::string& session_id,
- const uint8* response,
- int response_length,
+ const std::vector<uint8_t>& response,
scoped_ptr<SimpleCdmPromise> promise) override;
void CloseSession(const std::string& session_id,
scoped_ptr<SimpleCdmPromise> promise) override;
@@ -149,7 +147,7 @@ class MEDIA_EXPORT AesDecryptor : public MediaKeys,
// Make session ID unique per renderer by making it static. Session
// IDs seen by the app will be "1", "2", etc.
- static uint32 next_session_id_;
+ static uint32_t next_session_id_;
NewKeyCB new_audio_key_cb_;
NewKeyCB new_video_key_cb_;