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

Unified Diff: media/formats/mp2t/ts_section_cets_pssh.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_cets_ecm.cc ('k') | media/formats/mp2t/ts_section_cets_pssh.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_pssh.h
diff --git a/media/formats/mp2t/ts_section_cets_pssh.h b/media/formats/mp2t/ts_section_cets_pssh.h
new file mode 100644
index 0000000000000000000000000000000000000000..e4f81f17ae27727d62747df3b7c836c9f6f40ae5
--- /dev/null
+++ b/media/formats/mp2t/ts_section_cets_pssh.h
@@ -0,0 +1,41 @@
+// 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_PSSH_H_
+#define MEDIA_FORMATS_MP2T_TS_SECTION_CETS_PSSH_H_
+
+#include <stdint.h>
+#include <vector>
+
+#include "base/callback.h"
+#include "base/macros.h"
+#include "media/base/byte_queue.h"
+#include "media/formats/mp2t/ts_section.h"
+
+namespace media {
+namespace mp2t {
+
+class TsSectionCetsPssh : public TsSection {
+ public:
+ using RegisterPsshBoxesCb = base::Callback<void(const std::vector<uint8_t>&)>;
+ explicit TsSectionCetsPssh(const RegisterPsshBoxesCb& register_pssh_boxes_cb);
+ ~TsSectionCetsPssh() override;
+
+ // TsSection implementation.
+ bool Parse(bool payload_unit_start_indicator,
+ const uint8_t* buf,
+ int size) override;
+ void Flush() override;
+ void Reset() override;
+
+ private:
+ RegisterPsshBoxesCb register_pssh_boxes_cb_;
+
+ DISALLOW_COPY_AND_ASSIGN(TsSectionCetsPssh);
+};
+
+} // namespace mp2t
+} // namespace media
+
+#endif
« no previous file with comments | « media/formats/mp2t/ts_section_cets_ecm.cc ('k') | media/formats/mp2t/ts_section_cets_pssh.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698