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_PIPELINE_H_ | 5 #ifndef MEDIA_BASE_PIPELINE_H_ |
6 #define MEDIA_BASE_PIPELINE_H_ | 6 #define MEDIA_BASE_PIPELINE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "base/time/time.h" | 11 #include "base/time/time.h" |
12 #include "media/base/buffering_state.h" | 12 #include "media/base/buffering_state.h" |
13 #include "media/base/cdm_context.h" | 13 #include "media/base/cdm_context.h" |
14 #include "media/base/media_export.h" | 14 #include "media/base/media_export.h" |
15 #include "media/base/media_track.h" | 15 #include "media/base/media_track.h" |
16 #include "media/base/pipeline_metadata.h" | 16 #include "media/base/pipeline_metadata.h" |
17 #include "media/base/pipeline_status.h" | 17 #include "media/base/pipeline_status.h" |
18 #include "media/base/ranges.h" | 18 #include "media/base/ranges.h" |
19 #include "media/base/text_track.h" | 19 #include "media/base/text_track.h" |
20 #include "media/base/video_rotation.h" | 20 #include "media/base/video_rotation.h" |
21 #include "ui/gfx/geometry/size.h" | 21 #include "ui/gfx/geometry/size.h" |
22 | 22 |
23 namespace media { | 23 namespace media { |
24 | 24 |
25 class Demuxer; | 25 class Demuxer; |
26 class Renderer; | 26 class Renderer; |
27 class VideoFrame; | |
28 | 27 |
29 class MEDIA_EXPORT Pipeline { | 28 class MEDIA_EXPORT Pipeline { |
30 public: | 29 public: |
31 class Client { | 30 class Client { |
32 public: | 31 public: |
33 // Executed whenever an error occurs except when the error occurs during | 32 // Executed whenever an error occurs except when the error occurs during |
34 // Start/Seek/Resume or Suspend. Those errors are reported via |seek_cb| | 33 // Start/Seek/Resume or Suspend. Those errors are reported via |seek_cb| |
35 // and |suspend_cb| respectively. | 34 // and |suspend_cb| respectively. |
36 virtual void OnError(PipelineStatus status) = 0; | 35 virtual void OnError(PipelineStatus status) = 0; |
37 | 36 |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 // Gets the current pipeline statistics. | 166 // Gets the current pipeline statistics. |
168 virtual PipelineStatistics GetStatistics() const = 0; | 167 virtual PipelineStatistics GetStatistics() const = 0; |
169 | 168 |
170 virtual void SetCdm(CdmContext* cdm_context, | 169 virtual void SetCdm(CdmContext* cdm_context, |
171 const CdmAttachedCB& cdm_attached_cb) = 0; | 170 const CdmAttachedCB& cdm_attached_cb) = 0; |
172 }; | 171 }; |
173 | 172 |
174 } // namespace media | 173 } // namespace media |
175 | 174 |
176 #endif // MEDIA_BASE_PIPELINE_H_ | 175 #endif // MEDIA_BASE_PIPELINE_H_ |
OLD | NEW |