OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 CHROMECAST_BROWSER_MEDIA_MEDIA_PIPELINE_HOST_H_ | 5 #ifndef CHROMECAST_BROWSER_MEDIA_MEDIA_PIPELINE_HOST_H_ |
6 #define CHROMECAST_BROWSER_MEDIA_MEDIA_PIPELINE_HOST_H_ | 6 #define CHROMECAST_BROWSER_MEDIA_MEDIA_PIPELINE_HOST_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 const ::media::AudioDecoderConfig& config, | 52 const ::media::AudioDecoderConfig& config, |
53 const ::media::PipelineStatusCB& status_cb); | 53 const ::media::PipelineStatusCB& status_cb); |
54 void VideoInitialize(TrackId track_id, | 54 void VideoInitialize(TrackId track_id, |
55 const VideoPipelineClient& client, | 55 const VideoPipelineClient& client, |
56 const ::media::VideoDecoderConfig& config, | 56 const ::media::VideoDecoderConfig& config, |
57 const ::media::PipelineStatusCB& status_cb); | 57 const ::media::PipelineStatusCB& status_cb); |
58 void StartPlayingFrom(base::TimeDelta time); | 58 void StartPlayingFrom(base::TimeDelta time); |
59 void Flush(const ::media::PipelineStatusCB& status_cb); | 59 void Flush(const ::media::PipelineStatusCB& status_cb); |
60 void Stop(); | 60 void Stop(); |
61 | 61 |
62 void SetPlaybackRate(float playback_rate); | 62 void SetPlaybackRate(double playback_rate); |
63 void SetVolume(TrackId track_id, float playback_rate); | 63 void SetVolume(TrackId track_id, float playback_rate); |
64 void SetCdm(BrowserCdmCast* cdm); | 64 void SetCdm(BrowserCdmCast* cdm); |
65 | 65 |
66 void NotifyPipeWrite(TrackId track_id); | 66 void NotifyPipeWrite(TrackId track_id); |
67 | 67 |
68 private: | 68 private: |
69 base::ThreadChecker thread_checker_; | 69 base::ThreadChecker thread_checker_; |
70 | 70 |
71 scoped_ptr<MediaPipelineImpl> media_pipeline_; | 71 scoped_ptr<MediaPipelineImpl> media_pipeline_; |
72 | 72 |
73 // The shared memory for a track id must be valid until Stop is invoked on | 73 // The shared memory for a track id must be valid until Stop is invoked on |
74 // that track id. | 74 // that track id. |
75 struct MediaTrackHost; | 75 struct MediaTrackHost; |
76 typedef std::map<TrackId, MediaTrackHost*> MediaTrackMap; | 76 typedef std::map<TrackId, MediaTrackHost*> MediaTrackMap; |
77 MediaTrackMap media_track_map_; | 77 MediaTrackMap media_track_map_; |
78 | 78 |
79 DISALLOW_COPY_AND_ASSIGN(MediaPipelineHost); | 79 DISALLOW_COPY_AND_ASSIGN(MediaPipelineHost); |
80 }; | 80 }; |
81 | 81 |
82 } // namespace media | 82 } // namespace media |
83 } // namespace chromecast | 83 } // namespace chromecast |
84 | 84 |
85 #endif // CHROMECAST_BROWSER_MEDIA_MEDIA_PIPELINE_HOST_H_ | 85 #endif // CHROMECAST_BROWSER_MEDIA_MEDIA_PIPELINE_HOST_H_ |
86 | 86 |
OLD | NEW |