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

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

Issue 1517473002: Support HLS MPEG2 TS with SAMPLE-AES encryption. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@encryption_scheme
Patch Set: rebase Created 4 years 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/ts_section_cat.cc ('k') | media/formats/mp2t/ts_section_cets_ecm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/formats/mp2t/ts_section_cets_ecm.h
diff --git a/media/formats/mp2t/ts_section_cets_ecm.h b/media/formats/mp2t/ts_section_cets_ecm.h
new file mode 100644
index 0000000000000000000000000000000000000000..c07be4a0d585d45666169d269cd7cce4e4ee6c82
--- /dev/null
+++ b/media/formats/mp2t/ts_section_cets_ecm.h
@@ -0,0 +1,46 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef MEDIA_FORMATS_MP2T_TS_SECTION_CETS_ECM_H_
+#define MEDIA_FORMATS_MP2T_TS_SECTION_CETS_ECM_H_
+
+#include <stdint.h>
+
+#include "base/callback.h"
+#include "base/macros.h"
+#include "media/base/byte_queue.h"
+#include "media/formats/mp2t/ts_section.h"
+
+namespace media {
+
+class DecryptConfig;
+
+namespace mp2t {
+
+class TsSectionCetsEcm : public TsSection {
+ public:
+ // RegisterDecryptConfigCb::Run(const DecryptConfig& decrypt_config);
+ using RegisterDecryptConfigCb =
+ base::Callback<void(const DecryptConfig& decrypt_config)>;
+ explicit TsSectionCetsEcm(
+ const RegisterDecryptConfigCb& register_decrypt_config_cb);
+ ~TsSectionCetsEcm() override;
+
+ // TsSection implementation.
+ bool Parse(bool payload_unit_start_indicator,
+ const uint8_t* buf,
+ int size) override;
+ void Flush() override;
+ void Reset() override;
+
+ private:
+ RegisterDecryptConfigCb register_decrypt_config_cb_;
+
+ DISALLOW_COPY_AND_ASSIGN(TsSectionCetsEcm);
+};
+
+} // namespace mp2t
+} // namespace media
+
+#endif
« no previous file with comments | « media/formats/mp2t/ts_section_cat.cc ('k') | media/formats/mp2t/ts_section_cets_ecm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698