Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Side by Side Diff: chromecast/media/service/cast_renderer.h

Issue 2491043003: MediaResource refactoring to support multiple streams (Closed)
Patch Set: rebase Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_MEDIA_SERVICE_CAST_RENDERER_H_ 5 #ifndef CHROMECAST_MEDIA_SERVICE_CAST_RENDERER_H_
6 #define CHROMECAST_MEDIA_SERVICE_CAST_RENDERER_H_ 6 #define CHROMECAST_MEDIA_SERVICE_CAST_RENDERER_H_
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "chromecast/media/base/media_resource_tracker.h" 9 #include "chromecast/media/base/media_resource_tracker.h"
10 #include "chromecast/media/base/video_resolution_policy.h" 10 #include "chromecast/media/base/video_resolution_policy.h"
(...skipping 17 matching lines...) Expand all
28 public VideoResolutionPolicy::Observer { 28 public VideoResolutionPolicy::Observer {
29 public: 29 public:
30 CastRenderer(const CreateMediaPipelineBackendCB& create_backend_cb, 30 CastRenderer(const CreateMediaPipelineBackendCB& create_backend_cb,
31 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, 31 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner,
32 const std::string& audio_device_id, 32 const std::string& audio_device_id,
33 VideoResolutionPolicy* video_resolution_policy, 33 VideoResolutionPolicy* video_resolution_policy,
34 MediaResourceTracker* media_resource_tracker); 34 MediaResourceTracker* media_resource_tracker);
35 ~CastRenderer() final; 35 ~CastRenderer() final;
36 36
37 // ::media::Renderer implementation. 37 // ::media::Renderer implementation.
38 void Initialize(::media::DemuxerStreamProvider* demuxer_stream_provider, 38 void Initialize(::media::MediaResource* media_resource,
39 ::media::RendererClient* client, 39 ::media::RendererClient* client,
40 const ::media::PipelineStatusCB& init_cb) final; 40 const ::media::PipelineStatusCB& init_cb) final;
41 void SetCdm(::media::CdmContext* cdm_context, 41 void SetCdm(::media::CdmContext* cdm_context,
42 const ::media::CdmAttachedCB& cdm_attached_cb) final; 42 const ::media::CdmAttachedCB& cdm_attached_cb) final;
43 void Flush(const base::Closure& flush_cb) final; 43 void Flush(const base::Closure& flush_cb) final;
44 void StartPlayingFrom(base::TimeDelta time) final; 44 void StartPlayingFrom(base::TimeDelta time) final;
45 void SetPlaybackRate(double playback_rate) final; 45 void SetPlaybackRate(double playback_rate) final;
46 void SetVolume(float volume) final; 46 void SetVolume(float volume) final;
47 base::TimeDelta GetMediaTime() final; 47 base::TimeDelta GetMediaTime() final;
48 48
(...skipping 28 matching lines...) Expand all
77 gfx::Size video_res_; 77 gfx::Size video_res_;
78 78
79 base::WeakPtrFactory<CastRenderer> weak_factory_; 79 base::WeakPtrFactory<CastRenderer> weak_factory_;
80 DISALLOW_COPY_AND_ASSIGN(CastRenderer); 80 DISALLOW_COPY_AND_ASSIGN(CastRenderer);
81 }; 81 };
82 82
83 } // namespace media 83 } // namespace media
84 } // namespace chromecast 84 } // namespace chromecast
85 85
86 #endif // CHROMECAST_MEDIA_SERVICE_CAST_RENDERER_H_ 86 #endif // CHROMECAST_MEDIA_SERVICE_CAST_RENDERER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698