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

Side by Side Diff: chromecast/renderer/media/media_pipeline_proxy.h

Issue 1372393007: [Chromecast] Upgrade to new CMA backend API (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 5 years, 2 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 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 16 matching lines...) Expand all
27 class VideoPipelineProxy; 27 class VideoPipelineProxy;
28 28
29 class MediaPipelineProxy : public MediaPipeline { 29 class MediaPipelineProxy : public MediaPipeline {
30 public: 30 public:
31 MediaPipelineProxy(int render_frame_id, 31 MediaPipelineProxy(int render_frame_id,
32 scoped_refptr<base::SingleThreadTaskRunner> task_runner, 32 scoped_refptr<base::SingleThreadTaskRunner> task_runner,
33 LoadType load_type); 33 LoadType load_type);
34 ~MediaPipelineProxy() override; 34 ~MediaPipelineProxy() override;
35 35
36 // MediaPipeline implementation. 36 // MediaPipeline implementation.
37 void SetClient(const MediaPipelineClient& client) override; 37 void SetClient(const RendererMediaPipelineClient& client) override;
38 void SetCdm(int cdm_id) override; 38 void SetCdm(int cdm_id) override;
39 AudioPipeline* GetAudioPipeline() const override; 39 AudioPipeline* GetAudioPipeline() const override;
40 VideoPipeline* GetVideoPipeline() const override; 40 VideoPipeline* GetVideoPipeline() const override;
41 void InitializeAudio( 41 void InitializeAudio(
42 const ::media::AudioDecoderConfig& config, 42 const ::media::AudioDecoderConfig& config,
43 scoped_ptr<CodedFrameProvider> frame_provider, 43 scoped_ptr<CodedFrameProvider> frame_provider,
44 const ::media::PipelineStatusCB& status_cb) override; 44 const ::media::PipelineStatusCB& status_cb) override;
45 void InitializeVideo( 45 void InitializeVideo(
46 const std::vector<::media::VideoDecoderConfig>& configs, 46 const std::vector<::media::VideoDecoderConfig>& configs,
47 scoped_ptr<CodedFrameProvider> frame_provider, 47 scoped_ptr<CodedFrameProvider> frame_provider,
(...skipping 27 matching lines...) Expand all
75 base::WeakPtr<MediaPipelineProxy> weak_this_; 75 base::WeakPtr<MediaPipelineProxy> weak_this_;
76 base::WeakPtrFactory<MediaPipelineProxy> weak_factory_; 76 base::WeakPtrFactory<MediaPipelineProxy> weak_factory_;
77 77
78 DISALLOW_COPY_AND_ASSIGN(MediaPipelineProxy); 78 DISALLOW_COPY_AND_ASSIGN(MediaPipelineProxy);
79 }; 79 };
80 80
81 } // namespace media 81 } // namespace media
82 } // namespace chromecast 82 } // namespace chromecast
83 83
84 #endif // CHROMECAST_RENDERER_MEDIA_MEDIA_PIPELINE_PROXY_H_ 84 #endif // CHROMECAST_RENDERER_MEDIA_MEDIA_PIPELINE_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698