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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef MEDIA_FORMATS_MP2T_TS_SECTION_CETS_ECM_H_
6 #define MEDIA_FORMATS_MP2T_TS_SECTION_CETS_ECM_H_
7
8 #include <stdint.h>
9
10 #include "base/callback.h"
11 #include "base/macros.h"
12 #include "media/base/byte_queue.h"
13 #include "media/formats/mp2t/ts_section.h"
14
15 namespace media {
16
17 class DecryptConfig;
18
19 namespace mp2t {
20
21 class TsSectionCetsEcm : public TsSection {
22 public:
23 // RegisterDecryptConfigCb::Run(const DecryptConfig& decrypt_config);
24 using RegisterDecryptConfigCb =
25 base::Callback<void(const DecryptConfig& decrypt_config)>;
26 explicit TsSectionCetsEcm(
27 const RegisterDecryptConfigCb& register_decrypt_config_cb);
28 ~TsSectionCetsEcm() override;
29
30 // TsSection implementation.
31 bool Parse(bool payload_unit_start_indicator,
32 const uint8_t* buf,
33 int size) override;
34 void Flush() override;
35 void Reset() override;
36
37 private:
38 RegisterDecryptConfigCb register_decrypt_config_cb_;
39
40 DISALLOW_COPY_AND_ASSIGN(TsSectionCetsEcm);
41 };
42
43 } // namespace mp2t
44 } // namespace media
45
46 #endif
OLDNEW
« 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