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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLMediaElement.h

Issue 2554113002: Deprecate UnthrottledThreadTimer. (Closed)
Patch Set: Created 4 years 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 /* 1 /*
2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights 2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights
3 * reserved. 3 * reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after
539 void rejectPlayPromises(ExceptionCode, const String&); 539 void rejectPlayPromises(ExceptionCode, const String&);
540 void rejectPlayPromisesInternal(ExceptionCode, const String&); 540 void rejectPlayPromisesInternal(ExceptionCode, const String&);
541 541
542 EnumerationHistogram& showControlsHistogram() const; 542 EnumerationHistogram& showControlsHistogram() const;
543 543
544 void onVisibilityChangedForAutoplay(bool isVisible); 544 void onVisibilityChangedForAutoplay(bool isVisible);
545 545
546 void checkViewportIntersectionChanged(); 546 void checkViewportIntersectionChanged();
547 void viewportFillDebouncerTimerFired(TimerBase*); 547 void viewportFillDebouncerTimerFired(TimerBase*);
548 548
549 UnthrottledThreadTimer<HTMLMediaElement> m_loadTimer; 549 // These timers should not be throttled.
550 UnthrottledThreadTimer<HTMLMediaElement> m_progressEventTimer; 550 TaskRunnerTimer<HTMLMediaElement> m_loadTimer;
551 UnthrottledThreadTimer<HTMLMediaElement> m_playbackProgressTimer; 551 TaskRunnerTimer<HTMLMediaElement> m_progressEventTimer;
552 UnthrottledThreadTimer<HTMLMediaElement> m_audioTracksTimer; 552 TaskRunnerTimer<HTMLMediaElement> m_playbackProgressTimer;
553 UnthrottledThreadTimer<HTMLMediaElement> m_viewportFillDebouncerTimer; 553 TaskRunnerTimer<HTMLMediaElement> m_audioTracksTimer;
554 TaskRunnerTimer<HTMLMediaElement> m_viewportFillDebouncerTimer;
555
554 Member<TimeRanges> m_playedTimeRanges; 556 Member<TimeRanges> m_playedTimeRanges;
555 Member<GenericEventQueue> m_asyncEventQueue; 557 Member<GenericEventQueue> m_asyncEventQueue;
556 558
557 double m_playbackRate; 559 double m_playbackRate;
558 double m_defaultPlaybackRate; 560 double m_defaultPlaybackRate;
559 NetworkState m_networkState; 561 NetworkState m_networkState;
560 ReadyState m_readyState; 562 ReadyState m_readyState;
561 ReadyState m_readyStateMaximum; 563 ReadyState m_readyStateMaximum;
562 KURL m_currentSrc; 564 KURL m_currentSrc;
563 Member<MediaStreamDescriptor> m_srcObject; 565 Member<MediaStreamDescriptor> m_srcObject;
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
741 743
742 inline bool isHTMLMediaElement(const HTMLElement& element) { 744 inline bool isHTMLMediaElement(const HTMLElement& element) {
743 return isHTMLAudioElement(element) || isHTMLVideoElement(element); 745 return isHTMLAudioElement(element) || isHTMLVideoElement(element);
744 } 746 }
745 747
746 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); 748 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement);
747 749
748 } // namespace blink 750 } // namespace blink
749 751
750 #endif // HTMLMediaElement_h 752 #endif // HTMLMediaElement_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/HTMLMediaElement.cpp » ('j') | third_party/WebKit/Source/platform/Timer.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698