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

Side by Side Diff: chromecast/browser/media/cast_mojo_media_client.h

Issue 1841273002: [chromecast] Fix build with enable_mojo_media=true. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « chromecast/browser/media/BUILD.gn ('k') | chromecast/browser/media/cast_mojo_media_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_BROWSER_MEDIA_CAST_MOJO_MEDIA_CLIENT_H_ 5 #ifndef CHROMECAST_BROWSER_MEDIA_CAST_MOJO_MEDIA_CLIENT_H_
6 #define CHROMECAST_BROWSER_MEDIA_CAST_MOJO_MEDIA_CLIENT_H_ 6 #define CHROMECAST_BROWSER_MEDIA_CAST_MOJO_MEDIA_CLIENT_H_
7 7
8 #include "chromecast/browser/media/media_pipeline_backend_factory.h"
8 #include "media/mojo/services/mojo_media_client.h" 9 #include "media/mojo/services/mojo_media_client.h"
9 10
10 namespace chromecast { 11 namespace chromecast {
11 namespace media { 12 namespace media {
12 13
13 class CmaMediaPipelineClient;
14
15 class CastMojoMediaClient : public ::media::MojoMediaClient { 14 class CastMojoMediaClient : public ::media::MojoMediaClient {
16 public: 15 public:
17 CastMojoMediaClient(scoped_refptr<CmaMediaPipelineClient> pipeline_client); 16 CastMojoMediaClient(const CreateMediaPipelineBackendCB& create_backend_cb);
18 ~CastMojoMediaClient() override; 17 ~CastMojoMediaClient() override;
19 18
20 // MojoMediaClient overrides. 19 // MojoMediaClient overrides.
21 scoped_ptr<::media::RendererFactory> CreateRendererFactory( 20 scoped_ptr<::media::RendererFactory> CreateRendererFactory(
22 const scoped_refptr<::media::MediaLog>& media_log) override; 21 const scoped_refptr<::media::MediaLog>& media_log) override;
23 22
24 private: 23 private:
25 scoped_refptr<CmaMediaPipelineClient> pipeline_client_; 24 const CreateMediaPipelineBackendCB create_backend_cb_;
26 DISALLOW_COPY_AND_ASSIGN(CastMojoMediaClient); 25 DISALLOW_COPY_AND_ASSIGN(CastMojoMediaClient);
27 }; 26 };
28 27
29 } // namespace media 28 } // namespace media
30 } // namespace chromecast 29 } // namespace chromecast
31 30
32 #endif // CHROMECAST_BROWSER_MEDIA_CAST_MOJO_MEDIA_CLIENT_H_ 31 #endif // CHROMECAST_BROWSER_MEDIA_CAST_MOJO_MEDIA_CLIENT_H_
OLDNEW
« no previous file with comments | « chromecast/browser/media/BUILD.gn ('k') | chromecast/browser/media/cast_mojo_media_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698