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

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

Issue 1372393007: [Chromecast] Upgrade to new CMA backend API (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Fix end_to_end test + address slan comments 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_AUDIO_PIPELINE_PROXY_H_ 5 #ifndef CHROMECAST_RENDERER_MEDIA_AUDIO_PIPELINE_PROXY_H_
6 #define CHROMECAST_RENDERER_MEDIA_AUDIO_PIPELINE_PROXY_H_ 6 #define CHROMECAST_RENDERER_MEDIA_AUDIO_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"
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "base/threading/thread_checker.h" 12 #include "base/threading/thread_checker.h"
13 #include "chromecast/common/media/cma_ipc_common.h" 13 #include "chromecast/common/media/cma_ipc_common.h"
14 #include "chromecast/media/cma/pipeline/audio_pipeline.h" 14 #include "chromecast/renderer/media/audio_pipeline.h"
15 #include "media/base/pipeline_status.h" 15 #include "media/base/pipeline_status.h"
16 16
17 namespace base { 17 namespace base {
18 class SingleThreadTaskRunner; 18 class SingleThreadTaskRunner;
19 class SharedMemory; 19 class SharedMemory;
20 } 20 }
21 21
22 namespace media { 22 namespace media {
23 class AudioDecoderConfig; 23 class AudioDecoderConfig;
24 } 24 }
25 25
26 namespace chromecast { 26 namespace chromecast {
27 namespace media { 27 namespace media {
28 class AudioPipelineProxyInternal; 28 class AudioPipelineProxyInternal;
29 struct AvPipelineClient;
30 class AvStreamerProxy; 29 class AvStreamerProxy;
31 class CodedFrameProvider; 30 class CodedFrameProvider;
32 class MediaChannelProxy; 31 class MediaChannelProxy;
32 struct AvPipelineClient;
33 33
34 class AudioPipelineProxy : public AudioPipeline { 34 class AudioPipelineProxy : public AudioPipeline {
35 public: 35 public:
36 AudioPipelineProxy(scoped_refptr<base::SingleThreadTaskRunner> io_task_runner, 36 AudioPipelineProxy(scoped_refptr<base::SingleThreadTaskRunner> io_task_runner,
37 scoped_refptr<MediaChannelProxy> media_channel_proxy); 37 scoped_refptr<MediaChannelProxy> media_channel_proxy);
38 ~AudioPipelineProxy() override; 38 ~AudioPipelineProxy() override;
39 39
40 void Initialize( 40 void Initialize(
41 const ::media::AudioDecoderConfig& config, 41 const ::media::AudioDecoderConfig& config,
42 scoped_ptr<CodedFrameProvider> frame_provider, 42 scoped_ptr<CodedFrameProvider> frame_provider,
(...skipping 25 matching lines...) Expand all
68 68
69 base::WeakPtr<AudioPipelineProxy> weak_this_; 69 base::WeakPtr<AudioPipelineProxy> weak_this_;
70 base::WeakPtrFactory<AudioPipelineProxy> weak_factory_; 70 base::WeakPtrFactory<AudioPipelineProxy> weak_factory_;
71 71
72 DISALLOW_COPY_AND_ASSIGN(AudioPipelineProxy); 72 DISALLOW_COPY_AND_ASSIGN(AudioPipelineProxy);
73 }; 73 };
74 74
75 } // namespace media 75 } // namespace media
76 } // namespace chromecast 76 } // namespace chromecast
77 77
78 #endif // CHROMECAST_RENDERER_MEDIA_AUDIO_PIPELINE_PROXY_H_ 78 #endif // CHROMECAST_RENDERER_MEDIA_AUDIO_PIPELINE_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698