1/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 2/* vim: set ts=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#include "nsISupports.idl" 8 9interface mozIDOMWindow; 10webidl DOMRequest; 11 12[scriptable, builtinclass, uuid(9a57e5de-ce93-45fa-8145-755722834f7c)] 13interface nsIDOMRequestService : nsISupports 14{ 15 DOMRequest createRequest(in mozIDOMWindow window); 16 17 void fireSuccess(in DOMRequest request, in jsval result); 18 void fireError(in DOMRequest request, in AString error); 19 void fireSuccessAsync(in DOMRequest request, in jsval result); 20 void fireErrorAsync(in DOMRequest request, in AString error); 21}; 22