LCOV - code coverage report
Current view: top level - dom/xhr - XMLHttpRequestUpload.h (source / functions) Hit Total Coverage
Test: output.info Lines: 6 10 60.0 %
Date: 2017-07-14 16:53:18 Functions: 6 19 31.6 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
       2             : /* vim: set ts=8 sts=2 et sw=2 tw=80: */
       3             : /* This Source Code Form is subject to the terms of the Mozilla Public
       4             :  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
       5             :  * You can obtain one at http://mozilla.org/MPL/2.0/. */
       6             : 
       7             : #ifndef mozilla_dom_XMLHttpRequestUpload_h
       8             : #define mozilla_dom_XMLHttpRequestUpload_h
       9             : 
      10             : #include "mozilla/dom/XMLHttpRequestEventTarget.h"
      11             : #include "nsIXMLHttpRequest.h"
      12             : 
      13             : namespace mozilla {
      14             : namespace dom {
      15             : 
      16             : class XMLHttpRequestUpload final : public XMLHttpRequestEventTarget,
      17             :                                    public nsIXMLHttpRequestUpload
      18             : {
      19             : public:
      20           3 :   explicit XMLHttpRequestUpload(DOMEventTargetHelper* aOwner)
      21           3 :     : XMLHttpRequestEventTarget(aOwner)
      22           3 :   {}
      23             : 
      24           0 :   explicit XMLHttpRequestUpload()
      25           0 :   {}
      26             : 
      27             :   NS_DECL_ISUPPORTS_INHERITED
      28             :   NS_FORWARD_NSIXMLHTTPREQUESTEVENTTARGET(XMLHttpRequestEventTarget::)
      29          48 :   NS_REALLY_FORWARD_NSIDOMEVENTTARGET(XMLHttpRequestEventTarget)
      30             :   NS_DECL_NSIXMLHTTPREQUESTUPLOAD
      31             : 
      32             :   virtual JSObject*
      33             :   WrapObject(JSContext *cx, JS::Handle<JSObject*> aGivenProto) override;
      34             : 
      35           2 :   bool HasListeners()
      36             :   {
      37           2 :     return mListenerManager && mListenerManager->HasListeners();
      38             :   }
      39             : 
      40             : private:
      41           0 :   virtual ~XMLHttpRequestUpload()
      42           0 :   {}
      43             : };
      44             : 
      45             : 
      46             : } // dom namespace
      47             : } // mozilla namespace
      48             : 
      49             : #endif // mozilla_dom_XMLHttpRequestUpload_h
      50             : 

Generated by: LCOV version 1.13