XMLHttpRequestUpload.cpp 939 B

123456789101112131415161718192021222324252627
  1. /* -*- Mode: C++; tab-width: 8; 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
  4. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. #include "XMLHttpRequestUpload.h"
  6. #include "mozilla/dom/XMLHttpRequestUploadBinding.h"
  7. namespace mozilla {
  8. namespace dom {
  9. NS_INTERFACE_MAP_BEGIN(XMLHttpRequestUpload)
  10. NS_INTERFACE_MAP_ENTRY(nsIXMLHttpRequestUpload)
  11. NS_INTERFACE_MAP_END_INHERITING(XMLHttpRequestEventTarget)
  12. NS_IMPL_ADDREF_INHERITED(XMLHttpRequestUpload, XMLHttpRequestEventTarget)
  13. NS_IMPL_RELEASE_INHERITED(XMLHttpRequestUpload, XMLHttpRequestEventTarget)
  14. /* virtual */ JSObject*
  15. XMLHttpRequestUpload::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
  16. {
  17. return XMLHttpRequestUploadBinding::Wrap(aCx, this, aGivenProto);
  18. }
  19. } // dom namespace
  20. } // mozilla namespace