mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-23 02:05:42 +00:00
4a4dcd57fa
Backed out changeset b73f033efb41 (bug 1525319) Backed out changeset 1d318d5c6b98 (bug 1525319) Backed out changeset 6d73418988d4 (bug 1525319) Backed out changeset 84ca79bd2dc3 (bug 1525319)
42 lines
1.4 KiB
Plaintext
42 lines
1.4 KiB
Plaintext
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
|
/* 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/. */
|
|
|
|
#include "nsISupports.idl"
|
|
|
|
interface nsIRequest;
|
|
|
|
/**
|
|
* nsIRequestObserver
|
|
*/
|
|
[scriptable, uuid(fd91e2e0-1481-11d3-9333-00104ba0fd40)]
|
|
interface nsIRequestObserver : nsISupports
|
|
{
|
|
/**
|
|
* Called to signify the beginning of an asynchronous request.
|
|
*
|
|
* @param aRequest request being observed
|
|
* @param aContext user defined context
|
|
*
|
|
* An exception thrown from onStartRequest has the side-effect of
|
|
* causing the request to be canceled.
|
|
*/
|
|
void onStartRequest(in nsIRequest aRequest,
|
|
in nsISupports aContext);
|
|
|
|
/**
|
|
* Called to signify the end of an asynchronous request. This
|
|
* call is always preceded by a call to onStartRequest.
|
|
*
|
|
* @param aRequest request being observed
|
|
* @param aContext user defined context
|
|
* @param aStatusCode reason for stopping (NS_OK if completed successfully)
|
|
*
|
|
* An exception thrown from onStopRequest is generally ignored.
|
|
*/
|
|
void onStopRequest(in nsIRequest aRequest,
|
|
in nsISupports aContext,
|
|
in nsresult aStatusCode);
|
|
};
|