LCOV - code coverage report
Current view: top level - dom/media - VideoStreamTrack.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 9 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 7 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-*/
       2             : /* This Source Code Form is subject to the terms of the Mozilla Public
       3             :  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
       4             :  * You can obtain one at http://mozilla.org/MPL/2.0/. */
       5             : 
       6             : #ifndef VIDEOSTREAMTRACK_H_
       7             : #define VIDEOSTREAMTRACK_H_
       8             : 
       9             : #include "MediaStreamTrack.h"
      10             : #include "DOMMediaStream.h"
      11             : 
      12             : namespace mozilla {
      13             : 
      14             : class MediaStreamVideoSink;
      15             : 
      16             : namespace dom {
      17             : 
      18           0 : class VideoStreamTrack : public MediaStreamTrack {
      19             : public:
      20           0 :   VideoStreamTrack(DOMMediaStream* aStream, TrackID aTrackID,
      21             :                    TrackID aInputTrackID,
      22             :                    MediaStreamTrackSource* aSource,
      23             :                    const MediaTrackConstraints& aConstraints = MediaTrackConstraints())
      24           0 :     : MediaStreamTrack(aStream, aTrackID, aInputTrackID, aSource, aConstraints) {}
      25             : 
      26             :   JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
      27             : 
      28           0 :   VideoStreamTrack* AsVideoStreamTrack() override { return this; }
      29             : 
      30           0 :   const VideoStreamTrack* AsVideoStreamTrack() const override { return this; }
      31             : 
      32             :   void AddVideoOutput(MediaStreamVideoSink* aSink);
      33             :   void RemoveVideoOutput(MediaStreamVideoSink* aSink);
      34             : 
      35             :   // WebIDL
      36           0 :   void GetKind(nsAString& aKind) override { aKind.AssignLiteral("video"); }
      37             : 
      38             : protected:
      39           0 :   already_AddRefed<MediaStreamTrack> CloneInternal(DOMMediaStream* aOwningStream,
      40             :                                                    TrackID aTrackID) override
      41             :   {
      42           0 :     return do_AddRef(new VideoStreamTrack(aOwningStream,
      43             :                                           aTrackID,
      44             :                                           mInputTrackID,
      45             :                                           mSource,
      46           0 :                                           mConstraints));
      47             :   }
      48             : };
      49             : 
      50             : } // namespace dom
      51             : } // namespace mozilla
      52             : 
      53             : #endif /* VIDEOSTREAMTRACK_H_ */

Generated by: LCOV version 1.13