2012-02-24 17:19:49 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=2 et sw=2 tw=80: */
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
2018-04-19 19:55:33 +03:00
|
|
|
#include "nsISupports.idl"
|
2012-02-24 17:19:49 +04:00
|
|
|
|
2016-01-30 20:05:36 +03:00
|
|
|
interface mozIDOMWindow;
|
2018-04-19 19:55:33 +03:00
|
|
|
webidl DOMRequest;
|
2012-02-24 17:19:49 +04:00
|
|
|
|
2016-01-30 20:05:36 +03:00
|
|
|
[scriptable, builtinclass, uuid(9a57e5de-ce93-45fa-8145-755722834f7c)]
|
2012-02-24 17:19:49 +04:00
|
|
|
interface nsIDOMRequestService : nsISupports
|
|
|
|
{
|
2018-04-19 19:55:33 +03:00
|
|
|
DOMRequest createRequest(in mozIDOMWindow window);
|
2012-02-24 17:19:49 +04:00
|
|
|
|
2018-04-19 19:55:33 +03:00
|
|
|
void fireSuccess(in DOMRequest request, in jsval result);
|
2018-09-06 11:02:43 +03:00
|
|
|
void fireError(in DOMRequest request, in AString error);
|
2018-04-19 19:55:33 +03:00
|
|
|
void fireSuccessAsync(in DOMRequest request, in jsval result);
|
2018-09-06 11:02:43 +03:00
|
|
|
void fireErrorAsync(in DOMRequest request, in AString error);
|
2012-02-24 17:19:49 +04:00
|
|
|
};
|