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

Side by Side Diff: media/base/renderer_client.h

Issue 1955843002: Move Renderer permanent callbacks into RendererClient interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed comments Created 4 years, 7 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/base/renderer.h ('k') | media/base/video_renderer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef MEDIA_BASE_RENDERER_CLIENT_H_
6 #define MEDIA_BASE_RENDERER_CLIENT_H_
7
8 namespace media {
9
10 // Interface used by Renderer, AudioRenderer, and VideoRenderer implementations
11 // to notify their clients.
12 class RendererClient {
13 public:
14 // Executed if any error was encountered after Renderer initialization.
15 virtual void OnError(PipelineStatus status) = 0;
16
17 // Executed when rendering has reached the end of stream.
18 virtual void OnEnded() = 0;
19
20 // Executed periodically with rendering statistics.
21 virtual void OnStatisticsUpdate(const PipelineStatistics& stats) = 0;
22
23 // Executed when buffering state is changed.
24 virtual void OnBufferingStateChange(BufferingState state) = 0;
25
26 // Executed whenever the key needed to decrypt the stream is not available.
27 virtual void OnWaitingForDecryptionKey() = 0;
28 };
29
30 } // namespace media
31
32 #endif // MEDIA_BASE_RENDERER_CLIENT_H_
OLDNEW
« no previous file with comments | « media/base/renderer.h ('k') | media/base/video_renderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698