REGRESSION (r253519): [WKWebView evaluateJavaScript:completionHandler:] gives a non...
[WebKit-https.git] / Source / WebCore / Modules / mediasource / VideoTrackMediaSource.h
index f7f5f64..8e0f5f4 100644 (file)
@@ -23,8 +23,7 @@
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
  */
 
-#ifndef VideoTrackMediaSource_h
-#define VideoTrackMediaSource_h
+#pragma once
 
 #if ENABLE(MEDIA_SOURCE) && ENABLE(VIDEO_TRACK)
 
 
 namespace WebCore {
 
-class SourceBuffer;
-
 class VideoTrackMediaSource {
 public:
-    static SourceBuffer* sourceBuffer(VideoTrack* track) { return track->sourceBuffer(); }
+    static SourceBuffer* sourceBuffer(VideoTrack& track) { return track.sourceBuffer(); }
 };
 
-}
-
-#endif
+} // namespace WebCore
 
-#endif
+#endif // ENABLE(MEDIA_SOURCE) && ENABLE(VIDEO_TRACK)