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

Side by Side Diff: media/mojo/interfaces/renderer.mojom

Issue 2358413002: media: Use associated interface for mojo RendererClient (Closed)
Patch Set: more test update Created 4 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
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 module media.mojom; 5 module media.mojom;
6 6
7 import "media/mojo/interfaces/demuxer_stream.mojom"; 7 import "media/mojo/interfaces/demuxer_stream.mojom";
8 import "media/mojo/interfaces/media_types.mojom"; 8 import "media/mojo/interfaces/media_types.mojom";
9 import "mojo/common/common_custom_types.mojom"; 9 import "mojo/common/common_custom_types.mojom";
10 import "ui/gfx/geometry/mojo/geometry.mojom"; 10 import "ui/gfx/geometry/mojo/geometry.mojom";
11 import "url/mojo/url.mojom"; 11 import "url/mojo/url.mojom";
12 12
13 interface Renderer { 13 interface Renderer {
14 // Initializes the Renderer with one or both of an audio and video stream, 14 // Initializes the Renderer with one or both of an audio and video stream,
15 // executing the callback with whether the initialization succeeded. 15 // executing the callback with whether the initialization succeeded.
16 Initialize(RendererClient client, 16 Initialize(associated RendererClient client,
17 DemuxerStream? audio, 17 DemuxerStream? audio,
18 DemuxerStream? video, 18 DemuxerStream? video,
19 url.mojom.Url? url) => (bool success); 19 url.mojom.Url? url) => (bool success);
20 20
21 // Discards any buffered data, executing callback when completed. 21 // Discards any buffered data, executing callback when completed.
22 // NOTE: If an error occurs, RendererClient::OnError() can be called 22 // NOTE: If an error occurs, RendererClient::OnError() can be called
23 // before the callback is executed. 23 // before the callback is executed.
24 Flush() => (); 24 Flush() => ();
25 25
26 // Starts rendering from |time|. 26 // Starts rendering from |time|.
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 OnStatisticsUpdate(PipelineStatistics stats); 71 OnStatisticsUpdate(PipelineStatistics stats);
72 72
73 // Called when the remote renderering service is waiting on the decryption 73 // Called when the remote renderering service is waiting on the decryption
74 // key. 74 // key.
75 OnWaitingForDecryptionKey(); 75 OnWaitingForDecryptionKey();
76 76
77 // Executed the first time the metadata is updated, and whenever the duration 77 // Executed the first time the metadata is updated, and whenever the duration
78 // changes. 78 // changes.
79 OnDurationChange(mojo.common.mojom.TimeDelta duration); 79 OnDurationChange(mojo.common.mojom.TimeDelta duration);
80 }; 80 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698