OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef MEDIA_BASE_DEMUXER_H_ | 5 #ifndef MEDIA_BASE_DEMUXER_H_ |
6 #define MEDIA_BASE_DEMUXER_H_ | 6 #define MEDIA_BASE_DEMUXER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 protected: | 43 protected: |
44 virtual ~DemuxerHost(); | 44 virtual ~DemuxerHost(); |
45 }; | 45 }; |
46 | 46 |
47 class MEDIA_EXPORT Demuxer : public DemuxerStreamProvider { | 47 class MEDIA_EXPORT Demuxer : public DemuxerStreamProvider { |
48 public: | 48 public: |
49 // A new potentially encrypted stream has been parsed. | 49 // A new potentially encrypted stream has been parsed. |
50 // First parameter - The type of initialization data. | 50 // First parameter - The type of initialization data. |
51 // Second parameter - The initialization data associated with the stream. | 51 // Second parameter - The initialization data associated with the stream. |
52 typedef base::Callback<void(EmeInitDataType type, | 52 typedef base::Callback<void(EmeInitDataType type, |
53 const std::vector<uint8>& init_data)> | 53 const std::vector<uint8_t>& init_data)> |
54 EncryptedMediaInitDataCB; | 54 EncryptedMediaInitDataCB; |
55 | 55 |
56 Demuxer(); | 56 Demuxer(); |
57 ~Demuxer() override; | 57 ~Demuxer() override; |
58 | 58 |
59 // Returns the name of the demuxer for logging purpose. | 59 // Returns the name of the demuxer for logging purpose. |
60 virtual std::string GetDisplayName() const = 0; | 60 virtual std::string GetDisplayName() const = 0; |
61 | 61 |
62 // Completes initialization of the demuxer. | 62 // Completes initialization of the demuxer. |
63 // | 63 // |
(...skipping 26 matching lines...) Expand all Loading... |
90 // Returns the memory usage in bytes for the demuxer. | 90 // Returns the memory usage in bytes for the demuxer. |
91 virtual int64_t GetMemoryUsage() const = 0; | 91 virtual int64_t GetMemoryUsage() const = 0; |
92 | 92 |
93 private: | 93 private: |
94 DISALLOW_COPY_AND_ASSIGN(Demuxer); | 94 DISALLOW_COPY_AND_ASSIGN(Demuxer); |
95 }; | 95 }; |
96 | 96 |
97 } // namespace media | 97 } // namespace media |
98 | 98 |
99 #endif // MEDIA_BASE_DEMUXER_H_ | 99 #endif // MEDIA_BASE_DEMUXER_H_ |
OLD | NEW |