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

Side by Side Diff: media/remoting/remote_renderer_impl.h

Issue 2648303003: Media Remoting: Don't exit remoting if no enough data buffered. (Closed)
Patch Set: Addressed comments. Created 3 years, 11 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 | « no previous file | media/remoting/remote_renderer_impl.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 2016 The Chromium Authors. All rights reserved. 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 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_REMOTING_REMOTE_RENDERER_IMPL_H_ 5 #ifndef MEDIA_REMOTING_REMOTE_RENDERER_IMPL_H_
6 #define MEDIA_REMOTING_REMOTE_RENDERER_IMPL_H_ 6 #define MEDIA_REMOTING_REMOTE_RENDERER_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 // Records the number of consecutive times that remoting playback was delayed. 224 // Records the number of consecutive times that remoting playback was delayed.
225 int times_playback_delayed_ = 0; 225 int times_playback_delayed_ = 0;
226 226
227 // Records events and measurements of interest. 227 // Records events and measurements of interest.
228 remoting::RendererMetricsRecorder metrics_recorder_; 228 remoting::RendererMetricsRecorder metrics_recorder_;
229 229
230 // A timer that polls the RemoteDemuxerStreamAdapters periodically to measure 230 // A timer that polls the RemoteDemuxerStreamAdapters periodically to measure
231 // the data flow rates for metrics. 231 // the data flow rates for metrics.
232 base::RepeatingTimer data_flow_poll_timer_; 232 base::RepeatingTimer data_flow_poll_timer_;
233 233
234 // Indicates whether there is enough data buffered for rendering.
235 bool is_waiting_for_buffering_ = true;
236
234 base::WeakPtrFactory<RemoteRendererImpl> weak_factory_; 237 base::WeakPtrFactory<RemoteRendererImpl> weak_factory_;
235 238
236 DISALLOW_COPY_AND_ASSIGN(RemoteRendererImpl); 239 DISALLOW_COPY_AND_ASSIGN(RemoteRendererImpl);
237 }; 240 };
238 241
239 } // namespace media 242 } // namespace media
240 243
241 #endif // MEDIA_REMOTING_REMOTE_RENDERER_IMPL_H_ 244 #endif // MEDIA_REMOTING_REMOTE_RENDERER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | media/remoting/remote_renderer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698