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_RENDERER_MEDIA_MEDIA_PIPELINE_PROXY_H_ | 5 #ifndef CHROMECAST_RENDERER_MEDIA_MEDIA_PIPELINE_PROXY_H_ |
6 #define CHROMECAST_RENDERER_MEDIA_MEDIA_PIPELINE_PROXY_H_ | 6 #define CHROMECAST_RENDERER_MEDIA_MEDIA_PIPELINE_PROXY_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 const ::media::AudioDecoderConfig& config, | 43 const ::media::AudioDecoderConfig& config, |
44 scoped_ptr<CodedFrameProvider> frame_provider, | 44 scoped_ptr<CodedFrameProvider> frame_provider, |
45 const ::media::PipelineStatusCB& status_cb) override; | 45 const ::media::PipelineStatusCB& status_cb) override; |
46 void InitializeVideo( | 46 void InitializeVideo( |
47 const ::media::VideoDecoderConfig& config, | 47 const ::media::VideoDecoderConfig& config, |
48 scoped_ptr<CodedFrameProvider> frame_provider, | 48 scoped_ptr<CodedFrameProvider> frame_provider, |
49 const ::media::PipelineStatusCB& status_cb) override; | 49 const ::media::PipelineStatusCB& status_cb) override; |
50 void StartPlayingFrom(base::TimeDelta time) override; | 50 void StartPlayingFrom(base::TimeDelta time) override; |
51 void Flush(const ::media::PipelineStatusCB& status_cb) override; | 51 void Flush(const ::media::PipelineStatusCB& status_cb) override; |
52 void Stop() override; | 52 void Stop() override; |
53 void SetPlaybackRate(float playback_rate) override; | 53 void SetPlaybackRate(double playback_rate) override; |
54 | 54 |
55 private: | 55 private: |
56 void OnProxyFlushDone(const ::media::PipelineStatusCB& status_cb, | 56 void OnProxyFlushDone(const ::media::PipelineStatusCB& status_cb, |
57 ::media::PipelineStatus status); | 57 ::media::PipelineStatus status); |
58 | 58 |
59 base::ThreadChecker thread_checker_; | 59 base::ThreadChecker thread_checker_; |
60 | 60 |
61 scoped_refptr<base::MessageLoopProxy> io_message_loop_proxy_; | 61 scoped_refptr<base::MessageLoopProxy> io_message_loop_proxy_; |
62 | 62 |
63 const int render_frame_id_; | 63 const int render_frame_id_; |
(...skipping 12 matching lines...) Expand all Loading... |
76 base::WeakPtr<MediaPipelineProxy> weak_this_; | 76 base::WeakPtr<MediaPipelineProxy> weak_this_; |
77 base::WeakPtrFactory<MediaPipelineProxy> weak_factory_; | 77 base::WeakPtrFactory<MediaPipelineProxy> weak_factory_; |
78 | 78 |
79 DISALLOW_COPY_AND_ASSIGN(MediaPipelineProxy); | 79 DISALLOW_COPY_AND_ASSIGN(MediaPipelineProxy); |
80 }; | 80 }; |
81 | 81 |
82 } // namespace media | 82 } // namespace media |
83 } // namespace chromecast | 83 } // namespace chromecast |
84 | 84 |
85 #endif // CHROMECAST_RENDERER_MEDIA_MEDIA_PIPELINE_PROXY_H_ | 85 #endif // CHROMECAST_RENDERER_MEDIA_MEDIA_PIPELINE_PROXY_H_ |
OLD | NEW |