Coverage Report

Created: 2018-09-25 14:53

/src/mozilla-central/dom/xhr/XMLHttpRequestUpload.h
Line
Count
Source (jump to first uncovered line)
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
12
namespace mozilla {
13
namespace dom {
14
15
class XMLHttpRequestUpload final : public XMLHttpRequestEventTarget
16
{
17
public:
18
  explicit XMLHttpRequestUpload(DOMEventTargetHelper* aOwner)
19
    : XMLHttpRequestEventTarget(aOwner)
20
0
  {}
21
22
  explicit XMLHttpRequestUpload()
23
0
  {}
24
25
  NS_DECL_ISUPPORTS_INHERITED
26
27
  virtual JSObject*
28
  WrapObject(JSContext *cx, JS::Handle<JSObject*> aGivenProto) override;
29
30
  bool HasListeners()
31
0
  {
32
0
    return mListenerManager && mListenerManager->HasListeners();
33
0
  }
34
35
private:
36
  virtual ~XMLHttpRequestUpload()
37
  {}
38
};
39
40
41
} // dom namespace
42
} // mozilla namespace
43
44
#endif // mozilla_dom_XMLHttpRequestUpload_h
45