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

Side by Side Diff: media/mojo/clients/mojo_renderer.h

Issue 2230583002: Add MediaPlayerRenderer/MediaPlayerRendererClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Chris' comment Created 4 years, 4 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 #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 "base/macros.h" 10 #include "base/macros.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 void OnVideoNaturalSizeChange(const gfx::Size& size) override; 66 void OnVideoNaturalSizeChange(const gfx::Size& size) override;
67 void OnVideoOpacityChange(bool opaque) override; 67 void OnVideoOpacityChange(bool opaque) override;
68 void OnWaitingForDecryptionKey() override; 68 void OnWaitingForDecryptionKey() override;
69 void OnStatisticsUpdate(const PipelineStatistics& stats) override; 69 void OnStatisticsUpdate(const PipelineStatistics& stats) override;
70 70
71 // Binds |remote_renderer_| to the mojo message pipe. Can be called multiple 71 // Binds |remote_renderer_| to the mojo message pipe. Can be called multiple
72 // times. If an error occurs during connection, OnConnectionError will be 72 // times. If an error occurs during connection, OnConnectionError will be
73 // called asynchronously. 73 // called asynchronously.
74 void BindRemoteRendererIfNeeded(); 74 void BindRemoteRendererIfNeeded();
75 75
76 void InitializeRendererFromStreams(media::RendererClient* client);
DaleCurtis 2016/08/10 21:14:06 What is FromStreams?
tguilbert 2016/08/11 00:29:00 Added comment.
77 void InitializeRendererFromUrl(media::RendererClient* client);
78
76 // Callback for connection error on |remote_renderer_|. 79 // Callback for connection error on |remote_renderer_|.
77 void OnConnectionError(); 80 void OnConnectionError();
78 81
79 // Callback for connection error on |audio_stream_| and |video_stream_|. 82 // Callback for connection error on |audio_stream_| and |video_stream_|.
80 void OnDemuxerStreamConnectionError(DemuxerStream::Type type); 83 void OnDemuxerStreamConnectionError(DemuxerStream::Type type);
81 84
82 // Callbacks for |remote_renderer_| methods. 85 // Callbacks for |remote_renderer_| methods.
83 void OnInitialized(media::RendererClient* client, bool success); 86 void OnInitialized(media::RendererClient* client, bool success);
84 void OnFlushed(); 87 void OnFlushed();
85 void OnCdmAttached(bool success); 88 void OnCdmAttached(bool success);
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 // Lock used to serialize access for |time_|. 137 // Lock used to serialize access for |time_|.
135 mutable base::Lock lock_; 138 mutable base::Lock lock_;
136 base::TimeDelta time_; 139 base::TimeDelta time_;
137 140
138 DISALLOW_COPY_AND_ASSIGN(MojoRenderer); 141 DISALLOW_COPY_AND_ASSIGN(MojoRenderer);
139 }; 142 };
140 143
141 } // namespace media 144 } // namespace media
142 145
143 #endif // MEDIA_MOJO_CLIENTS_MOJO_RENDERER_H_ 146 #endif // MEDIA_MOJO_CLIENTS_MOJO_RENDERER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698