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

Side by Side Diff: chromecast/media/mojo/cast_mojo_media_client.cc

Issue 1702453002: Revert of Reland "media: Refactor MojoMediaClient" with fix. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: run git cl format media Created 4 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
« no previous file with comments | « chromecast/media/mojo/cast_mojo_media_client.h ('k') | content/shell/BUILD.gn » ('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 #include "chromecast/media/mojo/cast_mojo_media_client.h" 5 #include "media/mojo/services/mojo_media_application.h"
6 6
7 namespace chromecast { 7 #include "media/mojo/services/mojo_media_client.h"
8
9 namespace {
10 class CastMojoMediaClient : public ::media::MojoMediaClient {
11 public:
12 CastMojoMediaClient() {}
13 ~CastMojoMediaClient() override {}
14
15 // MojoMediaClient overrides.
16 void Initialize() override {}
17 scoped_ptr<::media::RendererFactory> CreateRendererFactory(
18 const scoped_refptr<::media::MediaLog>& media_log) override {
19 return scoped_ptr<::media::RendererFactory>();
20 }
21
22 private:
23 DISALLOW_COPY_AND_ASSIGN(CastMojoMediaClient);
24 };
25 } // namespace
26
8 namespace media { 27 namespace media {
9
10 CastMojoMediaClient::CastMojoMediaClient() {}
11
12 CastMojoMediaClient::~CastMojoMediaClient() {}
13
14 // static 28 // static
15 scoped_ptr<::media::MojoMediaClient> CastMojoMediaClient::Create() { 29 scoped_ptr<MojoMediaClient> MojoMediaClient::Create() {
16 return scoped_ptr<::media::MojoMediaClient>(new CastMojoMediaClient()); 30 return make_scoped_ptr(new CastMojoMediaClient());
17 } 31 }
18
19 void CastMojoMediaClient::Initialize() {}
20
21 scoped_ptr<::media::RendererFactory> CastMojoMediaClient::CreateRendererFactory(
22 const scoped_refptr<::media::MediaLog>& /* media_log */) {
23 return scoped_ptr<::media::RendererFactory>();
24 }
25
26 } // namespace media 32 } // namespace media
27 } // namespace chromecast
OLDNEW
« no previous file with comments | « chromecast/media/mojo/cast_mojo_media_client.h ('k') | content/shell/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698