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

Side by Side Diff: chromecast/media/cma/backend/media_pipeline_backend_factory_impl.h

Issue 2879703003: [chromecast] Moves CastAudioOutputStream::Backend to CMA thread. (Closed)
Patch Set: addressed comments Created 3 years, 6 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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_CMA_BACKEND_MEDIA_PIPELINE_BACKEND_FACTORY_H_ 5 #ifndef CHROMECAST_MEDIA_CMA_BACKEND_MEDIA_PIPELINE_BACKEND_FACTORY_IMPL_H_
6 #define CHROMECAST_MEDIA_CMA_BACKEND_MEDIA_PIPELINE_BACKEND_FACTORY_H_ 6 #define CHROMECAST_MEDIA_CMA_BACKEND_MEDIA_PIPELINE_BACKEND_FACTORY_IMPL_H_
7
8 #include <memory>
9 #include <string>
10 7
11 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "chromecast/media/cma/backend/media_pipeline_backend_factory.h"
12 10
13 namespace chromecast { 11 namespace chromecast {
14 namespace media { 12 namespace media {
15 13
16 class MediaPipelineBackend; 14 class MediaPipelineBackend;
17 class MediaPipelineBackendManager; 15 class MediaPipelineBackendManager;
18 struct MediaPipelineDeviceParams; 16 struct MediaPipelineDeviceParams;
19 17
20 // Creates MediaPipelineBackends using a given MediaPipelineBackendManager. 18 // Creates MediaPipelineBackends using a given MediaPipelineBackendManager.
21 class MediaPipelineBackendFactory { 19 class MediaPipelineBackendFactoryImpl : public MediaPipelineBackendFactory {
22 public: 20 public:
23 // TODO(slan): Use a static Create method once all of the constructor 21 // TODO(slan): Use a static Create method once all of the constructor
24 // dependencies are removed from the internal implemenation. 22 // dependencies are removed from the internal implemenation.
25 explicit MediaPipelineBackendFactory( 23 explicit MediaPipelineBackendFactoryImpl(
26 MediaPipelineBackendManager* media_pipeline_backend_manager); 24 MediaPipelineBackendManager* media_pipeline_backend_manager);
27 virtual ~MediaPipelineBackendFactory(); 25 ~MediaPipelineBackendFactoryImpl() override;
28 26
29 virtual std::unique_ptr<MediaPipelineBackend> CreateBackend( 27 std::unique_ptr<MediaPipelineBackend> CreateBackend(
30 const MediaPipelineDeviceParams& params); 28 const MediaPipelineDeviceParams& params) override;
31 29
32 protected: 30 protected:
33 MediaPipelineBackendManager* media_pipeline_backend_manager() { 31 MediaPipelineBackendManager* media_pipeline_backend_manager() {
34 return media_pipeline_backend_manager_; 32 return media_pipeline_backend_manager_;
35 } 33 }
36 34
37 private: 35 private:
38 media::MediaPipelineBackendManager* const media_pipeline_backend_manager_; 36 media::MediaPipelineBackendManager* const media_pipeline_backend_manager_;
39 37
40 DISALLOW_COPY_AND_ASSIGN(MediaPipelineBackendFactory); 38 DISALLOW_COPY_AND_ASSIGN(MediaPipelineBackendFactoryImpl);
41 }; 39 };
42 40
43 } // media 41 } // media
44 } // chromecast 42 } // chromecast
45 43
46 #endif // CHROMECAST_MEDIA_CMA_BACKEND_MEDIA_PIPELINE_BACKEND_FACTORY_H_ 44 #endif // CHROMECAST_MEDIA_CMA_BACKEND_MEDIA_PIPELINE_BACKEND_FACTORY_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698