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: media/mojo/clients/mojo_renderer.h

Issue 2643743002: Mojify demuxers and allow running {Chunk/FFmpeg}Demuxer in a Utility Process (Closed)
Patch Set: Rebase and make sure to unbind mojom::DemuxerPtr on the bound thread during termination Created 3 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 | « media/mojo/clients/mojo_demuxer_source_buffer.cc ('k') | media/mojo/clients/mojo_renderer.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 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 MEDIA_MOJO_CLIENTS_MOJO_RENDERER_H_ 5 #ifndef MEDIA_MOJO_CLIENTS_MOJO_RENDERER_H_
6 #define MEDIA_MOJO_CLIENTS_MOJO_RENDERER_H_ 6 #define MEDIA_MOJO_CLIENTS_MOJO_RENDERER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 void BindRemoteRendererIfNeeded(); 93 void BindRemoteRendererIfNeeded();
94 94
95 // Initialize the remote renderer when |media_resource| is of type 95 // Initialize the remote renderer when |media_resource| is of type
96 // MediaResource::Type::STREAM. 96 // MediaResource::Type::STREAM.
97 void InitializeRendererFromStreams(media::RendererClient* client); 97 void InitializeRendererFromStreams(media::RendererClient* client);
98 98
99 // Initialize the remote renderer when |media_resource| is of type 99 // Initialize the remote renderer when |media_resource| is of type
100 // MediaResource::Type::URL. 100 // MediaResource::Type::URL.
101 void InitializeRendererFromUrl(media::RendererClient* client); 101 void InitializeRendererFromUrl(media::RendererClient* client);
102 102
103 // Initialize the remote renderer when |media_resource| is of type
104 // DemuxerSteamProvider::Type::REMOTE.
105 void InitializeRendererFromRemoteId(media::RendererClient* client);
106
103 // Callback for connection error on |remote_renderer_|. 107 // Callback for connection error on |remote_renderer_|.
104 void OnConnectionError(); 108 void OnConnectionError();
105 109
106 // Callback for connection error on any of |streams_|. The |stream| parameter 110 // Callback for connection error on any of |streams_|. The |stream| parameter
107 // indicates which stream the error happened on. 111 // indicates which stream the error happened on.
108 void OnDemuxerStreamConnectionError(MojoDemuxerStreamImpl* stream); 112 void OnDemuxerStreamConnectionError(MojoDemuxerStreamImpl* stream);
109 113
110 // Callback for connection error on |mojo_audio_renderer_sink_|. 114 // Callback for connection error on |mojo_audio_renderer_sink_|.
111 void OnAudioRendererSinkConnectionError(); 115 void OnAudioRendererSinkConnectionError();
112 116
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 177
174 std::unique_ptr<MojoAudioRendererSinkImpl> mojo_audio_renderer_sink_; 178 std::unique_ptr<MojoAudioRendererSinkImpl> mojo_audio_renderer_sink_;
175 std::unique_ptr<MojoVideoRendererSinkImpl> mojo_video_renderer_sink_; 179 std::unique_ptr<MojoVideoRendererSinkImpl> mojo_video_renderer_sink_;
176 180
177 DISALLOW_COPY_AND_ASSIGN(MojoRenderer); 181 DISALLOW_COPY_AND_ASSIGN(MojoRenderer);
178 }; 182 };
179 183
180 } // namespace media 184 } // namespace media
181 185
182 #endif // MEDIA_MOJO_CLIENTS_MOJO_RENDERER_H_ 186 #endif // MEDIA_MOJO_CLIENTS_MOJO_RENDERER_H_
OLDNEW
« no previous file with comments | « media/mojo/clients/mojo_demuxer_source_buffer.cc ('k') | media/mojo/clients/mojo_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698