no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
[gecko.git] / dom / xhr / XMLHttpRequestEventTarget.h
blob89c13e13386bf4ad0b9734fce3fe455b16e7c58b
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/. */
7 #ifndef mozilla_dom_XMLHttpRequestEventTarget_h
8 #define mozilla_dom_XMLHttpRequestEventTarget_h
10 #include "mozilla/DOMEventTargetHelper.h"
12 namespace mozilla::dom {
14 class XMLHttpRequestEventTarget : public DOMEventTargetHelper {
15 protected:
16 explicit XMLHttpRequestEventTarget(DOMEventTargetHelper* aOwner)
17 : DOMEventTargetHelper(aOwner) {}
19 explicit XMLHttpRequestEventTarget(nsIGlobalObject* aGlobalObject)
20 : DOMEventTargetHelper(aGlobalObject) {}
22 virtual ~XMLHttpRequestEventTarget() = default;
24 public:
25 NS_DECL_ISUPPORTS_INHERITED
26 NS_DECL_CYCLE_COLLECTION_CLASS_INHERITED(XMLHttpRequestEventTarget,
27 DOMEventTargetHelper)
29 mozilla::Maybe<EventCallbackDebuggerNotificationType>
30 GetDebuggerNotificationType() const override;
32 IMPL_EVENT_HANDLER(loadstart)
33 IMPL_EVENT_HANDLER(progress)
34 IMPL_EVENT_HANDLER(abort)
35 IMPL_EVENT_HANDLER(error)
36 IMPL_EVENT_HANDLER(load)
37 IMPL_EVENT_HANDLER(timeout)
38 IMPL_EVENT_HANDLER(loadend)
40 nsISupports* GetParentObject() const { return GetOwner(); }
42 virtual void DisconnectFromOwner() override;
45 } // namespace mozilla::dom
47 #endif // mozilla_dom_XMLHttpRequestEventTarget_h