Add explicit |forceOnlineSignin| to user pod status
[chromium-blink-merge.git] / media / mp2t / ts_section_pmt.h
blobece4d1670bd1ccab9718e33be834dd38af829f13
1 // Copyright 2013 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_MP2T_TS_SECTION_PMT_H_
6 #define MEDIA_MP2T_TS_SECTION_PMT_H_
8 #include "base/callback.h"
9 #include "base/compiler_specific.h"
10 #include "media/mp2t/ts_section_psi.h"
12 namespace media {
13 namespace mp2t {
15 class TsSectionPmt : public TsSectionPsi {
16 public:
17 // RegisterPesCb::Run(int pes_pid, int stream_type);
18 // Stream type is defined in
19 // "Table 2-34 – Stream type assignments" in H.222
20 // TODO(damienv): add the program number.
21 typedef base::Callback<void(int, int)> RegisterPesCb;
23 explicit TsSectionPmt(const RegisterPesCb& register_pes_cb);
24 virtual ~TsSectionPmt();
26 // Mpeg2TsPsiParser implementation.
27 virtual bool ParsePsiSection(BitReader* bit_reader) OVERRIDE;
28 virtual void ResetPsiSection() OVERRIDE;
30 private:
31 RegisterPesCb register_pes_cb_;
33 DISALLOW_COPY_AND_ASSIGN(TsSectionPmt);
36 } // namespace mp2t
37 } // namespace media
39 #endif