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

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

Issue 2747633002: Fixing a crash in MediaCustomControlsFullscreenDetector when the page is destroyed (Closed)
Patch Set: Created 3 years, 9 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 /* 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 720 matching lines...) Expand 10 before | Expand all | Expand 10 after
731 }; 731 };
732 732
733 AudioSourceProviderImpl m_audioSourceProvider; 733 AudioSourceProviderImpl m_audioSourceProvider;
734 734
735 friend class AutoplayUmaHelper; // for isAutoplayAllowedPerSettings 735 friend class AutoplayUmaHelper; // for isAutoplayAllowedPerSettings
736 friend class AutoplayUmaHelperTest; 736 friend class AutoplayUmaHelperTest;
737 friend class Internals; 737 friend class Internals;
738 friend class TrackDisplayUpdateScope; 738 friend class TrackDisplayUpdateScope;
739 friend class MediaControlsTest; 739 friend class MediaControlsTest;
740 friend class HTMLMediaElementTest; 740 friend class HTMLMediaElementTest;
741 friend class HTMLMediaElementEventListenersTest;
741 friend class HTMLVideoElementTest; 742 friend class HTMLVideoElementTest;
742 friend class MediaControlsOrientationLockDelegateTest; 743 friend class MediaControlsOrientationLockDelegateTest;
743 744
744 Member<AutoplayUmaHelper> m_autoplayUmaHelper; 745 Member<AutoplayUmaHelper> m_autoplayUmaHelper;
745 746
746 WebRemotePlaybackClient* m_remotePlaybackClient; 747 WebRemotePlaybackClient* m_remotePlaybackClient;
747 748
748 // class AutoplayVisibilityObserver; 749 // class AutoplayVisibilityObserver;
749 Member<ElementVisibilityObserver> m_autoplayVisibilityObserver; 750 Member<ElementVisibilityObserver> m_autoplayVisibilityObserver;
750 751
751 IntRect m_currentIntersectRect; 752 IntRect m_currentIntersectRect;
752 753
753 Member<MediaControls> m_mediaControls; 754 Member<MediaControls> m_mediaControls;
754 Member<HTMLMediaElementControlsList> m_controlsList; 755 Member<HTMLMediaElementControlsList> m_controlsList;
755 756
756 static URLRegistry* s_mediaStreamRegistry; 757 static URLRegistry* s_mediaStreamRegistry;
757 }; 758 };
758 759
759 inline bool isHTMLMediaElement(const HTMLElement& element) { 760 inline bool isHTMLMediaElement(const HTMLElement& element) {
760 return isHTMLAudioElement(element) || isHTMLVideoElement(element); 761 return isHTMLAudioElement(element) || isHTMLVideoElement(element);
761 } 762 }
762 763
763 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); 764 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement);
764 765
765 } // namespace blink 766 } // namespace blink
766 767
767 #endif // HTMLMediaElement_h 768 #endif // HTMLMediaElement_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/BUILD.gn ('k') | third_party/WebKit/Source/core/html/HTMLMediaElementEventListenersTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698