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

Side by Side Diff: content/renderer/media/webmediaplayer_impl.h

Issue 526443003: Have WebMediaPlayerImpl track ended state. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_
6 #define CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_ 6 #define CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 // TODO(scherkus): since SetPlaybackRate(0) is asynchronous and we don't want 257 // TODO(scherkus): since SetPlaybackRate(0) is asynchronous and we don't want
258 // to hang the render thread during pause(), we record the time at the same 258 // to hang the render thread during pause(), we record the time at the same
259 // time we pause and then return that value in currentTime(). Otherwise our 259 // time we pause and then return that value in currentTime(). Otherwise our
260 // clock can creep forward a little bit while the asynchronous 260 // clock can creep forward a little bit while the asynchronous
261 // SetPlaybackRate(0) is being executed. 261 // SetPlaybackRate(0) is being executed.
262 bool paused_; 262 bool paused_;
263 bool seeking_; 263 bool seeking_;
264 double playback_rate_; 264 double playback_rate_;
265 base::TimeDelta paused_time_; 265 base::TimeDelta paused_time_;
266 266
267 // TODO(scherkus): Replace with an explicit ended signal to HTMLMediaElement,
268 // see http://crbug.com/409280
269 bool ended_;
270
267 // Seek gets pending if another seek is in progress. Only last pending seek 271 // Seek gets pending if another seek is in progress. Only last pending seek
268 // will have effect. 272 // will have effect.
269 bool pending_seek_; 273 bool pending_seek_;
270 double pending_seek_seconds_; 274 double pending_seek_seconds_;
271 275
272 // Tracks whether to issue time changed notifications during buffering state 276 // Tracks whether to issue time changed notifications during buffering state
273 // changes. 277 // changes.
274 bool should_notify_time_changed_; 278 bool should_notify_time_changed_;
275 279
276 blink::WebMediaPlayerClient* client_; 280 blink::WebMediaPlayerClient* client_;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 int text_track_index_; 316 int text_track_index_;
313 317
314 scoped_ptr<EncryptedMediaPlayerSupport> encrypted_media_support_; 318 scoped_ptr<EncryptedMediaPlayerSupport> encrypted_media_support_;
315 319
316 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); 320 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl);
317 }; 321 };
318 322
319 } // namespace content 323 } // namespace content
320 324
321 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_ 325 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/media/webmediaplayer_impl.cc » ('j') | content/renderer/media/webmediaplayer_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698