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

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

Issue 2546993003: [MediaElement] Allow preloading for non-network scheme src (Closed)
Patch Set: nits 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 706 matching lines...) Expand 10 before | Expand all | Expand 10 after
717 Mutex provideInputLock; 717 Mutex provideInputLock;
718 }; 718 };
719 719
720 AudioSourceProviderImpl m_audioSourceProvider; 720 AudioSourceProviderImpl m_audioSourceProvider;
721 721
722 friend class AutoplayUmaHelper; // for isAutoplayAllowedPerSettings 722 friend class AutoplayUmaHelper; // for isAutoplayAllowedPerSettings
723 friend class AutoplayUmaHelperTest; 723 friend class AutoplayUmaHelperTest;
724 friend class Internals; 724 friend class Internals;
725 friend class TrackDisplayUpdateScope; 725 friend class TrackDisplayUpdateScope;
726 friend class MediaControlsTest; 726 friend class MediaControlsTest;
727 friend class HTMLMediaElementTest;
727 friend class HTMLVideoElementTest; 728 friend class HTMLVideoElementTest;
728 729
729 Member<AutoplayUmaHelper> m_autoplayUmaHelper; 730 Member<AutoplayUmaHelper> m_autoplayUmaHelper;
730 731
731 WebRemotePlaybackClient* m_remotePlaybackClient; 732 WebRemotePlaybackClient* m_remotePlaybackClient;
732 733
733 // class AutoplayVisibilityObserver; 734 // class AutoplayVisibilityObserver;
734 Member<ElementVisibilityObserver> m_autoplayVisibilityObserver; 735 Member<ElementVisibilityObserver> m_autoplayVisibilityObserver;
735 736
736 IntRect m_currentIntersectRect; 737 IntRect m_currentIntersectRect;
737 738
738 static URLRegistry* s_mediaStreamRegistry; 739 static URLRegistry* s_mediaStreamRegistry;
739 }; 740 };
740 741
741 inline bool isHTMLMediaElement(const HTMLElement& element) { 742 inline bool isHTMLMediaElement(const HTMLElement& element) {
742 return isHTMLAudioElement(element) || isHTMLVideoElement(element); 743 return isHTMLAudioElement(element) || isHTMLVideoElement(element);
743 } 744 }
744 745
745 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); 746 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement);
746 747
747 } // namespace blink 748 } // namespace blink
748 749
749 #endif // HTMLMediaElement_h 750 #endif // HTMLMediaElement_h
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/media/preload-conditions.html ('k') | third_party/WebKit/Source/core/html/HTMLMediaElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698