Updating XTBs based on .GRDs from branch master
[chromium-blink-merge.git] / media / formats / mp2t / ts_section_pat.h
blobf550a7f727c722dc615371dc65cf68644736dc30
1 // Copyright 2014 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.
5 #ifndef MEDIA_FORMATS_MP2T_TS_SECTION_PAT_H_
6 #define MEDIA_FORMATS_MP2T_TS_SECTION_PAT_H_
8 #include "base/callback.h"
9 #include "base/compiler_specific.h"
10 #include "media/formats/mp2t/ts_section_psi.h"
12 namespace media {
13 namespace mp2t {
15 class TsSectionPat : public TsSectionPsi {
16 public:
17 // RegisterPmtCb::Run(int program_number, int pmt_pid);
18 typedef base::Callback<void(int, int)> RegisterPmtCb;
20 explicit TsSectionPat(const RegisterPmtCb& register_pmt_cb);
21 ~TsSectionPat() override;
23 // TsSectionPsi implementation.
24 bool ParsePsiSection(BitReader* bit_reader) override;
25 void ResetPsiSection() override;
27 private:
28 RegisterPmtCb register_pmt_cb_;
30 // Parameters from the PAT.
31 int version_number_;
33 DISALLOW_COPY_AND_ASSIGN(TsSectionPat);
36 } // namespace mp2t
37 } // namespace media
39 #endif