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

Side by Side Diff: media/mojo/services/mojo_renderer_service.cc

Issue 518163003: media: scaffolding and plumbing for MojoRenderer{Impl, Service} (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@medr
Patch Set: Created 6 years, 3 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "media/mojo/services/mojo_renderer_service.h"
6
7 #include "mojo/public/c/system/main.h"
8 #include "mojo/public/cpp/application/application_connection.h"
9 #include "mojo/public/cpp/application/application_delegate.h"
10 #include "mojo/public/cpp/application/application_runner_chromium.h"
11 #include "mojo/public/cpp/application/interface_factory_impl.h"
12
13 namespace media {
14
15 class MojoRendererApplication : public mojo::ApplicationDelegate {
16 public:
17 virtual bool ConfigureIncomingConnection(
18 mojo::ApplicationConnection* connection) MOJO_OVERRIDE {
19 connection->AddService(&renderer_instance_factory_);
20 return true;
21 }
22 private:
23 mojo::InterfaceFactoryImpl<MojoRendererService> renderer_instance_factory_;
24 };
25
26 MojoRendererService::MojoRendererService() {}
27 MojoRendererService::~MojoRendererService() {}
28
29 void MojoRendererService::Initialize(
30 const mojo::Callback<void(bool)>& callback) {
31
32 }
33
34 void MojoRendererService::DecodeAndRender(
35 mojo::MediaDecoderBufferPtr buffer,
36 const mojo::Callback<void()>& callback) {
37
38 }
39
40 void MojoRendererService::Flush(const mojo::Callback<void()>& callback) {
41
42 }
43
44 void MojoRendererService::StartPlayingFrom(int64_t time_delta_usec) {
45
46 }
47
48 void MojoRendererService::SetPlaybackRate(float playback_rate) {
49
50 }
51
52 void MojoRendererService::SetVolume(float volume) {
53
54 }
55
56 } // namespace media
57
58 MojoResult MojoMain(MojoHandle shell_handle) {
59 mojo::ApplicationRunnerChromium runner(new media::MojoRendererApplication);
60 return runner.Run(shell_handle);
61 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698