Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1510)

Unified Diff: media/formats/mp2t/ts_section_cat.h

Issue 2783703002: Declare intent to use sample-aes later in the stream. (Closed)
Patch Set: tweak needed for flush Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/formats/mp2t/mp2t_stream_parser_unittest.cc ('k') | media/formats/mp2t/ts_section_cat.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/formats/mp2t/ts_section_cat.h
diff --git a/media/formats/mp2t/ts_section_cat.h b/media/formats/mp2t/ts_section_cat.h
index dbeb505d577780bbaa1018e09a8ca1c673ea169b..27922de77959ac73c56f85d63040a35484c82480 100644
--- a/media/formats/mp2t/ts_section_cat.h
+++ b/media/formats/mp2t/ts_section_cat.h
@@ -10,13 +10,20 @@
#include "media/formats/mp2t/ts_section_psi.h"
namespace media {
+
+class EncryptionScheme;
+
namespace mp2t {
class TsSectionCat : public TsSectionPsi {
public:
// RegisterCencPidsCb::Run(int ca_pid, int pssh_pid);
using RegisterCencPidsCb = base::Callback<void(int, int)>;
- explicit TsSectionCat(const RegisterCencPidsCb& register_cenc_ids_cb);
+ // RegisterEncryptionScheme::Run(const EncryptionScheme& scheme);
+ using RegisterEncryptionSchemeCb =
+ base::Callback<void(const EncryptionScheme&)>;
+ TsSectionCat(const RegisterCencPidsCb& register_cenc_ids_cb,
+ const RegisterEncryptionSchemeCb& register_encryption_scheme_cb);
~TsSectionCat() override;
// TsSectionPsi implementation.
@@ -25,6 +32,7 @@ class TsSectionCat : public TsSectionPsi {
private:
RegisterCencPidsCb register_cenc_ids_cb_;
+ RegisterEncryptionSchemeCb register_encryption_scheme_cb_;
// Parameters from the CAT.
int version_number_;
« no previous file with comments | « media/formats/mp2t/mp2t_stream_parser_unittest.cc ('k') | media/formats/mp2t/ts_section_cat.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698