LCOV - code coverage report
Current view: directory - objdir/dist/include - nsIXMLHttpRequest.h (source / functions) Found Hit Coverage
Test: app.info Lines: 7 6 85.7 %
Date: 2012-06-02 Functions: 7 5 71.4 %

       1                 : /*
       2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/content/base/public/nsIXMLHttpRequest.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIXMLHttpRequest_h__
       6                 : #define __gen_nsIXMLHttpRequest_h__
       7                 : 
       8                 : 
       9                 : #ifndef __gen_nsIDOMEventTarget_h__
      10                 : #include "nsIDOMEventTarget.h"
      11                 : #endif
      12                 : 
      13                 : #include "jspubtd.h"
      14                 : 
      15                 : /* For IDL files that don't want to include root IDL files. */
      16                 : #ifndef NS_NO_VTABLE
      17                 : #define NS_NO_VTABLE
      18                 : #endif
      19                 : class nsIChannel; /* forward declaration */
      20                 : 
      21                 : class nsIDOMDocument; /* forward declaration */
      22                 : 
      23                 : class nsIDOMEventListener; /* forward declaration */
      24                 : 
      25                 : class nsIPrincipal; /* forward declaration */
      26                 : 
      27                 : class nsIScriptContext; /* forward declaration */
      28                 : 
      29                 : class nsIURI; /* forward declaration */
      30                 : 
      31                 : class nsIVariant; /* forward declaration */
      32                 : 
      33                 : class nsPIDOMWindow; /* forward declaration */
      34                 : 
      35                 : class nsIInputStream; /* forward declaration */
      36                 : 
      37                 : class nsIDOMBlob; /* forward declaration */
      38                 : 
      39                 : // for jsval
      40                 : #include "jsapi.h"
      41                 : 
      42                 : /* starting interface:    nsIXMLHttpRequestEventTarget */
      43                 : #define NS_IXMLHTTPREQUESTEVENTTARGET_IID_STR "5e346bf8-7083-4ef8-b9b9-736a1b5aa7ab"
      44                 : 
      45                 : #define NS_IXMLHTTPREQUESTEVENTTARGET_IID \
      46                 :   {0x5e346bf8, 0x7083, 0x4ef8, \
      47                 :     { 0xb9, 0xb9, 0x73, 0x6a, 0x1b, 0x5a, 0xa7, 0xab }}
      48                 : 
      49             596 : class NS_NO_VTABLE NS_SCRIPTABLE nsIXMLHttpRequestEventTarget : public nsIDOMEventTarget {
      50                 :  public: 
      51                 : 
      52                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IXMLHTTPREQUESTEVENTTARGET_IID)
      53                 : 
      54                 :   /* attribute nsIDOMEventListener onabort; */
      55                 :   NS_SCRIPTABLE NS_IMETHOD GetOnabort(nsIDOMEventListener * *aOnabort) = 0;
      56                 :   NS_SCRIPTABLE NS_IMETHOD SetOnabort(nsIDOMEventListener *aOnabort) = 0;
      57                 : 
      58                 :   /* attribute nsIDOMEventListener onerror; */
      59                 :   NS_SCRIPTABLE NS_IMETHOD GetOnerror(nsIDOMEventListener * *aOnerror) = 0;
      60                 :   NS_SCRIPTABLE NS_IMETHOD SetOnerror(nsIDOMEventListener *aOnerror) = 0;
      61                 : 
      62                 :   /* attribute nsIDOMEventListener onload; */
      63                 :   NS_SCRIPTABLE NS_IMETHOD GetOnload(nsIDOMEventListener * *aOnload) = 0;
      64                 :   NS_SCRIPTABLE NS_IMETHOD SetOnload(nsIDOMEventListener *aOnload) = 0;
      65                 : 
      66                 :   /* attribute nsIDOMEventListener onloadstart; */
      67                 :   NS_SCRIPTABLE NS_IMETHOD GetOnloadstart(nsIDOMEventListener * *aOnloadstart) = 0;
      68                 :   NS_SCRIPTABLE NS_IMETHOD SetOnloadstart(nsIDOMEventListener *aOnloadstart) = 0;
      69                 : 
      70                 :   /* attribute nsIDOMEventListener onprogress; */
      71                 :   NS_SCRIPTABLE NS_IMETHOD GetOnprogress(nsIDOMEventListener * *aOnprogress) = 0;
      72                 :   NS_SCRIPTABLE NS_IMETHOD SetOnprogress(nsIDOMEventListener *aOnprogress) = 0;
      73                 : 
      74                 :   /* attribute nsIDOMEventListener ontimeout; */
      75                 :   NS_SCRIPTABLE NS_IMETHOD GetOntimeout(nsIDOMEventListener * *aOntimeout) = 0;
      76                 :   NS_SCRIPTABLE NS_IMETHOD SetOntimeout(nsIDOMEventListener *aOntimeout) = 0;
      77                 : 
      78                 :   /* attribute nsIDOMEventListener onloadend; */
      79                 :   NS_SCRIPTABLE NS_IMETHOD GetOnloadend(nsIDOMEventListener * *aOnloadend) = 0;
      80                 :   NS_SCRIPTABLE NS_IMETHOD SetOnloadend(nsIDOMEventListener *aOnloadend) = 0;
      81                 : 
      82                 : };
      83                 : 
      84                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIXMLHttpRequestEventTarget, NS_IXMLHTTPREQUESTEVENTTARGET_IID)
      85                 : 
      86                 : /* Use this macro when declaring classes that implement this interface. */
      87                 : #define NS_DECL_NSIXMLHTTPREQUESTEVENTTARGET \
      88                 :   NS_SCRIPTABLE NS_IMETHOD GetOnabort(nsIDOMEventListener * *aOnabort); \
      89                 :   NS_SCRIPTABLE NS_IMETHOD SetOnabort(nsIDOMEventListener *aOnabort); \
      90                 :   NS_SCRIPTABLE NS_IMETHOD GetOnerror(nsIDOMEventListener * *aOnerror); \
      91                 :   NS_SCRIPTABLE NS_IMETHOD SetOnerror(nsIDOMEventListener *aOnerror); \
      92                 :   NS_SCRIPTABLE NS_IMETHOD GetOnload(nsIDOMEventListener * *aOnload); \
      93                 :   NS_SCRIPTABLE NS_IMETHOD SetOnload(nsIDOMEventListener *aOnload); \
      94                 :   NS_SCRIPTABLE NS_IMETHOD GetOnloadstart(nsIDOMEventListener * *aOnloadstart); \
      95                 :   NS_SCRIPTABLE NS_IMETHOD SetOnloadstart(nsIDOMEventListener *aOnloadstart); \
      96                 :   NS_SCRIPTABLE NS_IMETHOD GetOnprogress(nsIDOMEventListener * *aOnprogress); \
      97                 :   NS_SCRIPTABLE NS_IMETHOD SetOnprogress(nsIDOMEventListener *aOnprogress); \
      98                 :   NS_SCRIPTABLE NS_IMETHOD GetOntimeout(nsIDOMEventListener * *aOntimeout); \
      99                 :   NS_SCRIPTABLE NS_IMETHOD SetOntimeout(nsIDOMEventListener *aOntimeout); \
     100                 :   NS_SCRIPTABLE NS_IMETHOD GetOnloadend(nsIDOMEventListener * *aOnloadend); \
     101                 :   NS_SCRIPTABLE NS_IMETHOD SetOnloadend(nsIDOMEventListener *aOnloadend); 
     102                 : 
     103                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     104                 : #define NS_FORWARD_NSIXMLHTTPREQUESTEVENTTARGET(_to) \
     105                 :   NS_SCRIPTABLE NS_IMETHOD GetOnabort(nsIDOMEventListener * *aOnabort) { return _to GetOnabort(aOnabort); } \
     106                 :   NS_SCRIPTABLE NS_IMETHOD SetOnabort(nsIDOMEventListener *aOnabort) { return _to SetOnabort(aOnabort); } \
     107                 :   NS_SCRIPTABLE NS_IMETHOD GetOnerror(nsIDOMEventListener * *aOnerror) { return _to GetOnerror(aOnerror); } \
     108                 :   NS_SCRIPTABLE NS_IMETHOD SetOnerror(nsIDOMEventListener *aOnerror) { return _to SetOnerror(aOnerror); } \
     109                 :   NS_SCRIPTABLE NS_IMETHOD GetOnload(nsIDOMEventListener * *aOnload) { return _to GetOnload(aOnload); } \
     110                 :   NS_SCRIPTABLE NS_IMETHOD SetOnload(nsIDOMEventListener *aOnload) { return _to SetOnload(aOnload); } \
     111                 :   NS_SCRIPTABLE NS_IMETHOD GetOnloadstart(nsIDOMEventListener * *aOnloadstart) { return _to GetOnloadstart(aOnloadstart); } \
     112                 :   NS_SCRIPTABLE NS_IMETHOD SetOnloadstart(nsIDOMEventListener *aOnloadstart) { return _to SetOnloadstart(aOnloadstart); } \
     113                 :   NS_SCRIPTABLE NS_IMETHOD GetOnprogress(nsIDOMEventListener * *aOnprogress) { return _to GetOnprogress(aOnprogress); } \
     114                 :   NS_SCRIPTABLE NS_IMETHOD SetOnprogress(nsIDOMEventListener *aOnprogress) { return _to SetOnprogress(aOnprogress); } \
     115                 :   NS_SCRIPTABLE NS_IMETHOD GetOntimeout(nsIDOMEventListener * *aOntimeout) { return _to GetOntimeout(aOntimeout); } \
     116                 :   NS_SCRIPTABLE NS_IMETHOD SetOntimeout(nsIDOMEventListener *aOntimeout) { return _to SetOntimeout(aOntimeout); } \
     117                 :   NS_SCRIPTABLE NS_IMETHOD GetOnloadend(nsIDOMEventListener * *aOnloadend) { return _to GetOnloadend(aOnloadend); } \
     118                 :   NS_SCRIPTABLE NS_IMETHOD SetOnloadend(nsIDOMEventListener *aOnloadend) { return _to SetOnloadend(aOnloadend); } 
     119                 : 
     120                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     121                 : #define NS_FORWARD_SAFE_NSIXMLHTTPREQUESTEVENTTARGET(_to) \
     122                 :   NS_SCRIPTABLE NS_IMETHOD GetOnabort(nsIDOMEventListener * *aOnabort) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOnabort(aOnabort); } \
     123                 :   NS_SCRIPTABLE NS_IMETHOD SetOnabort(nsIDOMEventListener *aOnabort) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOnabort(aOnabort); } \
     124                 :   NS_SCRIPTABLE NS_IMETHOD GetOnerror(nsIDOMEventListener * *aOnerror) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOnerror(aOnerror); } \
     125                 :   NS_SCRIPTABLE NS_IMETHOD SetOnerror(nsIDOMEventListener *aOnerror) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOnerror(aOnerror); } \
     126                 :   NS_SCRIPTABLE NS_IMETHOD GetOnload(nsIDOMEventListener * *aOnload) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOnload(aOnload); } \
     127                 :   NS_SCRIPTABLE NS_IMETHOD SetOnload(nsIDOMEventListener *aOnload) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOnload(aOnload); } \
     128                 :   NS_SCRIPTABLE NS_IMETHOD GetOnloadstart(nsIDOMEventListener * *aOnloadstart) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOnloadstart(aOnloadstart); } \
     129                 :   NS_SCRIPTABLE NS_IMETHOD SetOnloadstart(nsIDOMEventListener *aOnloadstart) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOnloadstart(aOnloadstart); } \
     130                 :   NS_SCRIPTABLE NS_IMETHOD GetOnprogress(nsIDOMEventListener * *aOnprogress) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOnprogress(aOnprogress); } \
     131                 :   NS_SCRIPTABLE NS_IMETHOD SetOnprogress(nsIDOMEventListener *aOnprogress) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOnprogress(aOnprogress); } \
     132                 :   NS_SCRIPTABLE NS_IMETHOD GetOntimeout(nsIDOMEventListener * *aOntimeout) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOntimeout(aOntimeout); } \
     133                 :   NS_SCRIPTABLE NS_IMETHOD SetOntimeout(nsIDOMEventListener *aOntimeout) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOntimeout(aOntimeout); } \
     134                 :   NS_SCRIPTABLE NS_IMETHOD GetOnloadend(nsIDOMEventListener * *aOnloadend) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOnloadend(aOnloadend); } \
     135                 :   NS_SCRIPTABLE NS_IMETHOD SetOnloadend(nsIDOMEventListener *aOnloadend) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOnloadend(aOnloadend); } 
     136                 : 
     137                 : #if 0
     138                 : /* Use the code below as a template for the implementation class for this interface. */
     139                 : 
     140                 : /* Header file */
     141                 : class nsXMLHttpRequestEventTarget : public nsIXMLHttpRequestEventTarget
     142                 : {
     143                 : public:
     144                 :   NS_DECL_ISUPPORTS
     145                 :   NS_DECL_NSIXMLHTTPREQUESTEVENTTARGET
     146                 : 
     147                 :   nsXMLHttpRequestEventTarget();
     148                 : 
     149                 : private:
     150                 :   ~nsXMLHttpRequestEventTarget();
     151                 : 
     152                 : protected:
     153                 :   /* additional members */
     154                 : };
     155                 : 
     156                 : /* Implementation file */
     157                 : NS_IMPL_ISUPPORTS1(nsXMLHttpRequestEventTarget, nsIXMLHttpRequestEventTarget)
     158                 : 
     159                 : nsXMLHttpRequestEventTarget::nsXMLHttpRequestEventTarget()
     160                 : {
     161                 :   /* member initializers and constructor code */
     162                 : }
     163                 : 
     164                 : nsXMLHttpRequestEventTarget::~nsXMLHttpRequestEventTarget()
     165                 : {
     166                 :   /* destructor code */
     167                 : }
     168                 : 
     169                 : /* attribute nsIDOMEventListener onabort; */
     170                 : NS_IMETHODIMP nsXMLHttpRequestEventTarget::GetOnabort(nsIDOMEventListener * *aOnabort)
     171                 : {
     172                 :     return NS_ERROR_NOT_IMPLEMENTED;
     173                 : }
     174                 : NS_IMETHODIMP nsXMLHttpRequestEventTarget::SetOnabort(nsIDOMEventListener *aOnabort)
     175                 : {
     176                 :     return NS_ERROR_NOT_IMPLEMENTED;
     177                 : }
     178                 : 
     179                 : /* attribute nsIDOMEventListener onerror; */
     180                 : NS_IMETHODIMP nsXMLHttpRequestEventTarget::GetOnerror(nsIDOMEventListener * *aOnerror)
     181                 : {
     182                 :     return NS_ERROR_NOT_IMPLEMENTED;
     183                 : }
     184                 : NS_IMETHODIMP nsXMLHttpRequestEventTarget::SetOnerror(nsIDOMEventListener *aOnerror)
     185                 : {
     186                 :     return NS_ERROR_NOT_IMPLEMENTED;
     187                 : }
     188                 : 
     189                 : /* attribute nsIDOMEventListener onload; */
     190                 : NS_IMETHODIMP nsXMLHttpRequestEventTarget::GetOnload(nsIDOMEventListener * *aOnload)
     191                 : {
     192                 :     return NS_ERROR_NOT_IMPLEMENTED;
     193                 : }
     194                 : NS_IMETHODIMP nsXMLHttpRequestEventTarget::SetOnload(nsIDOMEventListener *aOnload)
     195                 : {
     196                 :     return NS_ERROR_NOT_IMPLEMENTED;
     197                 : }
     198                 : 
     199                 : /* attribute nsIDOMEventListener onloadstart; */
     200                 : NS_IMETHODIMP nsXMLHttpRequestEventTarget::GetOnloadstart(nsIDOMEventListener * *aOnloadstart)
     201                 : {
     202                 :     return NS_ERROR_NOT_IMPLEMENTED;
     203                 : }
     204                 : NS_IMETHODIMP nsXMLHttpRequestEventTarget::SetOnloadstart(nsIDOMEventListener *aOnloadstart)
     205                 : {
     206                 :     return NS_ERROR_NOT_IMPLEMENTED;
     207                 : }
     208                 : 
     209                 : /* attribute nsIDOMEventListener onprogress; */
     210                 : NS_IMETHODIMP nsXMLHttpRequestEventTarget::GetOnprogress(nsIDOMEventListener * *aOnprogress)
     211                 : {
     212                 :     return NS_ERROR_NOT_IMPLEMENTED;
     213                 : }
     214                 : NS_IMETHODIMP nsXMLHttpRequestEventTarget::SetOnprogress(nsIDOMEventListener *aOnprogress)
     215                 : {
     216                 :     return NS_ERROR_NOT_IMPLEMENTED;
     217                 : }
     218                 : 
     219                 : /* attribute nsIDOMEventListener ontimeout; */
     220                 : NS_IMETHODIMP nsXMLHttpRequestEventTarget::GetOntimeout(nsIDOMEventListener * *aOntimeout)
     221                 : {
     222                 :     return NS_ERROR_NOT_IMPLEMENTED;
     223                 : }
     224                 : NS_IMETHODIMP nsXMLHttpRequestEventTarget::SetOntimeout(nsIDOMEventListener *aOntimeout)
     225                 : {
     226                 :     return NS_ERROR_NOT_IMPLEMENTED;
     227                 : }
     228                 : 
     229                 : /* attribute nsIDOMEventListener onloadend; */
     230                 : NS_IMETHODIMP nsXMLHttpRequestEventTarget::GetOnloadend(nsIDOMEventListener * *aOnloadend)
     231                 : {
     232                 :     return NS_ERROR_NOT_IMPLEMENTED;
     233                 : }
     234                 : NS_IMETHODIMP nsXMLHttpRequestEventTarget::SetOnloadend(nsIDOMEventListener *aOnloadend)
     235                 : {
     236                 :     return NS_ERROR_NOT_IMPLEMENTED;
     237                 : }
     238                 : 
     239                 : /* End of implementation class template. */
     240                 : #endif
     241                 : 
     242                 : 
     243                 : /* starting interface:    nsIXMLHttpRequestUpload */
     244                 : #define NS_IXMLHTTPREQUESTUPLOAD_IID_STR "8dbd2448-740a-412c-b314-434f24a1c510"
     245                 : 
     246                 : #define NS_IXMLHTTPREQUESTUPLOAD_IID \
     247                 :   {0x8dbd2448, 0x740a, 0x412c, \
     248                 :     { 0xb3, 0x14, 0x43, 0x4f, 0x24, 0xa1, 0xc5, 0x10 }}
     249                 : 
     250               0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIXMLHttpRequestUpload : public nsIXMLHttpRequestEventTarget {
     251                 :  public: 
     252                 : 
     253                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IXMLHTTPREQUESTUPLOAD_IID)
     254                 : 
     255                 : };
     256                 : 
     257                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIXMLHttpRequestUpload, NS_IXMLHTTPREQUESTUPLOAD_IID)
     258                 : 
     259                 : /* Use this macro when declaring classes that implement this interface. */
     260                 : #define NS_DECL_NSIXMLHTTPREQUESTUPLOAD \
     261                 :   /* no methods! */
     262                 : 
     263                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     264                 : #define NS_FORWARD_NSIXMLHTTPREQUESTUPLOAD(_to) \
     265                 :   /* no methods! */
     266                 : 
     267                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     268                 : #define NS_FORWARD_SAFE_NSIXMLHTTPREQUESTUPLOAD(_to) \
     269                 :   /* no methods! */
     270                 : 
     271                 : #if 0
     272                 : /* Use the code below as a template for the implementation class for this interface. */
     273                 : 
     274                 : /* Header file */
     275                 : class nsXMLHttpRequestUpload : public nsIXMLHttpRequestUpload
     276                 : {
     277                 : public:
     278                 :   NS_DECL_ISUPPORTS
     279                 :   NS_DECL_NSIXMLHTTPREQUESTUPLOAD
     280                 : 
     281                 :   nsXMLHttpRequestUpload();
     282                 : 
     283                 : private:
     284                 :   ~nsXMLHttpRequestUpload();
     285                 : 
     286                 : protected:
     287                 :   /* additional members */
     288                 : };
     289                 : 
     290                 : /* Implementation file */
     291                 : NS_IMPL_ISUPPORTS1(nsXMLHttpRequestUpload, nsIXMLHttpRequestUpload)
     292                 : 
     293                 : nsXMLHttpRequestUpload::nsXMLHttpRequestUpload()
     294                 : {
     295                 :   /* member initializers and constructor code */
     296                 : }
     297                 : 
     298                 : nsXMLHttpRequestUpload::~nsXMLHttpRequestUpload()
     299                 : {
     300                 :   /* destructor code */
     301                 : }
     302                 : 
     303                 : /* End of implementation class template. */
     304                 : #endif
     305                 : 
     306                 : 
     307                 : /* starting interface:    nsIXMLHttpRequest */
     308                 : #define NS_IXMLHTTPREQUEST_IID_STR "88ffc45a-22e2-44f4-9a6e-f4586fbde376"
     309                 : 
     310                 : #define NS_IXMLHTTPREQUEST_IID \
     311                 :   {0x88ffc45a, 0x22e2, 0x44f4, \
     312                 :     { 0x9a, 0x6e, 0xf4, 0x58, 0x6f, 0xbd, 0xe3, 0x76 }}
     313                 : 
     314             596 : class NS_SCRIPTABLE nsIXMLHttpRequest : public nsISupports {
     315                 :  public: 
     316                 : 
     317                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IXMLHTTPREQUEST_IID)
     318                 : 
     319                 :   /* readonly attribute nsIChannel channel; */
     320                 :   NS_SCRIPTABLE NS_IMETHOD GetChannel(nsIChannel * *aChannel) = 0;
     321                 : 
     322                 :   /* readonly attribute nsIDOMDocument responseXML; */
     323                 :   NS_SCRIPTABLE NS_IMETHOD GetResponseXML(nsIDOMDocument * *aResponseXML) = 0;
     324                 : 
     325                 :   /* readonly attribute AString responseText; */
     326                 :   NS_SCRIPTABLE NS_IMETHOD GetResponseText(nsAString & aResponseText) = 0;
     327                 : 
     328                 :   /* attribute AString responseType; */
     329                 :   NS_SCRIPTABLE NS_IMETHOD GetResponseType(nsAString & aResponseType) = 0;
     330                 :   NS_SCRIPTABLE NS_IMETHOD SetResponseType(const nsAString & aResponseType) = 0;
     331                 : 
     332                 :   /* [implicit_jscontext] readonly attribute jsval response; */
     333                 :   NS_SCRIPTABLE NS_IMETHOD GetResponse(JSContext* cx, JS::Value *aResponse) = 0;
     334                 : 
     335                 :   /* readonly attribute unsigned long status; */
     336                 :   NS_SCRIPTABLE NS_IMETHOD GetStatus(PRUint32 *aStatus) = 0;
     337                 : 
     338                 :   /* readonly attribute AUTF8String statusText; */
     339                 :   NS_SCRIPTABLE NS_IMETHOD GetStatusText(nsACString & aStatusText) = 0;
     340                 : 
     341                 :   /* void abort (); */
     342                 :   NS_SCRIPTABLE NS_IMETHOD Abort(void) = 0;
     343                 : 
     344                 :   /* DOMString getAllResponseHeaders (); */
     345                 :   NS_SCRIPTABLE NS_IMETHOD GetAllResponseHeaders(nsAString & _retval NS_OUTPARAM) = 0;
     346                 : 
     347                 :   /* ACString getResponseHeader (in AUTF8String header); */
     348                 :   NS_SCRIPTABLE NS_IMETHOD GetResponseHeader(const nsACString & header, nsACString & _retval NS_OUTPARAM) = 0;
     349                 : 
     350                 :    // note this is NOT virtual so this won't muck with the vtable!
     351               2 :   inline nsresult Open(const nsACString& method, const nsACString& url,
     352                 :                        bool async, const nsAString& user,
     353                 :                        const nsAString& password) {
     354               2 :     return Open(method, url, async, user, password, 3);
     355                 :   }
     356                 :   /* [optional_argc] void open (in AUTF8String method, in AUTF8String url, [optional] in boolean async, [optional, Undefined (Empty)] in DOMString user, [optional, Undefined (Empty)] in DOMString password); */
     357                 :   NS_SCRIPTABLE NS_IMETHOD Open(const nsACString & method, const nsACString & url, bool async, const nsAString & user, const nsAString & password, PRUint8 _argc) = 0;
     358                 : 
     359                 :   /* void send ([optional] in nsIVariant body); */
     360                 :   NS_SCRIPTABLE NS_IMETHOD Send(nsIVariant *body) = 0;
     361                 : 
     362                 :   /* void sendAsBinary (in DOMString body); */
     363                 :   NS_SCRIPTABLE NS_IMETHOD SendAsBinary(const nsAString & body) = 0;
     364                 : 
     365                 :   /* void setRequestHeader (in AUTF8String header, in AUTF8String value); */
     366                 :   NS_SCRIPTABLE NS_IMETHOD SetRequestHeader(const nsACString & header, const nsACString & value) = 0;
     367                 : 
     368                 :   /* attribute unsigned long timeout; */
     369                 :   NS_SCRIPTABLE NS_IMETHOD GetTimeout(PRUint32 *aTimeout) = 0;
     370                 :   NS_SCRIPTABLE NS_IMETHOD SetTimeout(PRUint32 aTimeout) = 0;
     371                 : 
     372                 :   enum {
     373                 :     UNSENT = 0U,
     374                 :     OPENED = 1U,
     375                 :     HEADERS_RECEIVED = 2U,
     376                 :     LOADING = 3U,
     377                 :     DONE = 4U
     378                 :   };
     379                 : 
     380                 :   /* readonly attribute unsigned short readyState; */
     381                 :   NS_SCRIPTABLE NS_IMETHOD GetReadyState(PRUint16 *aReadyState) = 0;
     382                 : 
     383                 :   /* void overrideMimeType (in AUTF8String mimetype); */
     384                 :   NS_SCRIPTABLE NS_IMETHOD OverrideMimeType(const nsACString & mimetype) = 0;
     385                 : 
     386                 :   /* attribute boolean multipart; */
     387                 :   NS_SCRIPTABLE NS_IMETHOD GetMultipart(bool *aMultipart) = 0;
     388                 :   NS_SCRIPTABLE NS_IMETHOD SetMultipart(bool aMultipart) = 0;
     389                 : 
     390                 :   /* attribute boolean mozBackgroundRequest; */
     391                 :   NS_SCRIPTABLE NS_IMETHOD GetMozBackgroundRequest(bool *aMozBackgroundRequest) = 0;
     392                 :   NS_SCRIPTABLE NS_IMETHOD SetMozBackgroundRequest(bool aMozBackgroundRequest) = 0;
     393                 : 
     394                 :   /* attribute boolean withCredentials; */
     395                 :   NS_SCRIPTABLE NS_IMETHOD GetWithCredentials(bool *aWithCredentials) = 0;
     396                 :   NS_SCRIPTABLE NS_IMETHOD SetWithCredentials(bool aWithCredentials) = 0;
     397                 : 
     398                 :   /* [noscript] void init (in nsIPrincipal principal, in nsIScriptContext scriptContext, in nsPIDOMWindow ownerWindow, in nsIURI baseURI); */
     399                 :   NS_IMETHOD Init(nsIPrincipal *principal, nsIScriptContext *scriptContext, nsPIDOMWindow *ownerWindow, nsIURI *baseURI) = 0;
     400                 : 
     401                 :   /* readonly attribute nsIXMLHttpRequestUpload upload; */
     402                 :   NS_SCRIPTABLE NS_IMETHOD GetUpload(nsIXMLHttpRequestUpload * *aUpload) = 0;
     403                 : 
     404                 :   /* attribute nsIDOMEventListener onreadystatechange; */
     405                 :   NS_SCRIPTABLE NS_IMETHOD GetOnreadystatechange(nsIDOMEventListener * *aOnreadystatechange) = 0;
     406                 :   NS_SCRIPTABLE NS_IMETHOD SetOnreadystatechange(nsIDOMEventListener *aOnreadystatechange) = 0;
     407                 : 
     408                 : };
     409                 : 
     410                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIXMLHttpRequest, NS_IXMLHTTPREQUEST_IID)
     411                 : 
     412                 : /* Use this macro when declaring classes that implement this interface. */
     413                 : #define NS_DECL_NSIXMLHTTPREQUEST \
     414                 :   NS_SCRIPTABLE NS_IMETHOD GetChannel(nsIChannel * *aChannel); \
     415                 :   NS_SCRIPTABLE NS_IMETHOD GetResponseXML(nsIDOMDocument * *aResponseXML); \
     416                 :   NS_SCRIPTABLE NS_IMETHOD GetResponseText(nsAString & aResponseText); \
     417                 :   NS_SCRIPTABLE NS_IMETHOD GetResponseType(nsAString & aResponseType); \
     418                 :   NS_SCRIPTABLE NS_IMETHOD SetResponseType(const nsAString & aResponseType); \
     419                 :   NS_SCRIPTABLE NS_IMETHOD GetResponse(JSContext* cx, JS::Value *aResponse); \
     420                 :   NS_SCRIPTABLE NS_IMETHOD GetStatus(PRUint32 *aStatus); \
     421                 :   NS_SCRIPTABLE NS_IMETHOD GetStatusText(nsACString & aStatusText); \
     422                 :   NS_SCRIPTABLE NS_IMETHOD Abort(void); \
     423                 :   NS_SCRIPTABLE NS_IMETHOD GetAllResponseHeaders(nsAString & _retval NS_OUTPARAM); \
     424                 :   NS_SCRIPTABLE NS_IMETHOD GetResponseHeader(const nsACString & header, nsACString & _retval NS_OUTPARAM); \
     425                 :   NS_SCRIPTABLE NS_IMETHOD Open(const nsACString & method, const nsACString & url, bool async, const nsAString & user, const nsAString & password, PRUint8 _argc); \
     426                 :   NS_SCRIPTABLE NS_IMETHOD Send(nsIVariant *body); \
     427                 :   NS_SCRIPTABLE NS_IMETHOD SendAsBinary(const nsAString & body); \
     428                 :   NS_SCRIPTABLE NS_IMETHOD SetRequestHeader(const nsACString & header, const nsACString & value); \
     429                 :   NS_SCRIPTABLE NS_IMETHOD GetTimeout(PRUint32 *aTimeout); \
     430                 :   NS_SCRIPTABLE NS_IMETHOD SetTimeout(PRUint32 aTimeout); \
     431                 :   NS_SCRIPTABLE NS_IMETHOD GetReadyState(PRUint16 *aReadyState); \
     432                 :   NS_SCRIPTABLE NS_IMETHOD OverrideMimeType(const nsACString & mimetype); \
     433                 :   NS_SCRIPTABLE NS_IMETHOD GetMultipart(bool *aMultipart); \
     434                 :   NS_SCRIPTABLE NS_IMETHOD SetMultipart(bool aMultipart); \
     435                 :   NS_SCRIPTABLE NS_IMETHOD GetMozBackgroundRequest(bool *aMozBackgroundRequest); \
     436                 :   NS_SCRIPTABLE NS_IMETHOD SetMozBackgroundRequest(bool aMozBackgroundRequest); \
     437                 :   NS_SCRIPTABLE NS_IMETHOD GetWithCredentials(bool *aWithCredentials); \
     438                 :   NS_SCRIPTABLE NS_IMETHOD SetWithCredentials(bool aWithCredentials); \
     439                 :   NS_IMETHOD Init(nsIPrincipal *principal, nsIScriptContext *scriptContext, nsPIDOMWindow *ownerWindow, nsIURI *baseURI); \
     440                 :   NS_SCRIPTABLE NS_IMETHOD GetUpload(nsIXMLHttpRequestUpload * *aUpload); \
     441                 :   NS_SCRIPTABLE NS_IMETHOD GetOnreadystatechange(nsIDOMEventListener * *aOnreadystatechange); \
     442                 :   NS_SCRIPTABLE NS_IMETHOD SetOnreadystatechange(nsIDOMEventListener *aOnreadystatechange); 
     443                 : 
     444                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     445                 : #define NS_FORWARD_NSIXMLHTTPREQUEST(_to) \
     446                 :   NS_SCRIPTABLE NS_IMETHOD GetChannel(nsIChannel * *aChannel) { return _to GetChannel(aChannel); } \
     447                 :   NS_SCRIPTABLE NS_IMETHOD GetResponseXML(nsIDOMDocument * *aResponseXML) { return _to GetResponseXML(aResponseXML); } \
     448                 :   NS_SCRIPTABLE NS_IMETHOD GetResponseText(nsAString & aResponseText) { return _to GetResponseText(aResponseText); } \
     449                 :   NS_SCRIPTABLE NS_IMETHOD GetResponseType(nsAString & aResponseType) { return _to GetResponseType(aResponseType); } \
     450                 :   NS_SCRIPTABLE NS_IMETHOD SetResponseType(const nsAString & aResponseType) { return _to SetResponseType(aResponseType); } \
     451                 :   NS_SCRIPTABLE NS_IMETHOD GetResponse(JSContext* cx, JS::Value *aResponse) { return _to GetResponse(cx, aResponse); } \
     452                 :   NS_SCRIPTABLE NS_IMETHOD GetStatus(PRUint32 *aStatus) { return _to GetStatus(aStatus); } \
     453                 :   NS_SCRIPTABLE NS_IMETHOD GetStatusText(nsACString & aStatusText) { return _to GetStatusText(aStatusText); } \
     454                 :   NS_SCRIPTABLE NS_IMETHOD Abort(void) { return _to Abort(); } \
     455                 :   NS_SCRIPTABLE NS_IMETHOD GetAllResponseHeaders(nsAString & _retval NS_OUTPARAM) { return _to GetAllResponseHeaders(_retval); } \
     456                 :   NS_SCRIPTABLE NS_IMETHOD GetResponseHeader(const nsACString & header, nsACString & _retval NS_OUTPARAM) { return _to GetResponseHeader(header, _retval); } \
     457                 :   NS_SCRIPTABLE NS_IMETHOD Open(const nsACString & method, const nsACString & url, bool async, const nsAString & user, const nsAString & password, PRUint8 _argc) { return _to Open(method, url, async, user, password, _argc); } \
     458                 :   NS_SCRIPTABLE NS_IMETHOD Send(nsIVariant *body) { return _to Send(body); } \
     459                 :   NS_SCRIPTABLE NS_IMETHOD SendAsBinary(const nsAString & body) { return _to SendAsBinary(body); } \
     460                 :   NS_SCRIPTABLE NS_IMETHOD SetRequestHeader(const nsACString & header, const nsACString & value) { return _to SetRequestHeader(header, value); } \
     461                 :   NS_SCRIPTABLE NS_IMETHOD GetTimeout(PRUint32 *aTimeout) { return _to GetTimeout(aTimeout); } \
     462                 :   NS_SCRIPTABLE NS_IMETHOD SetTimeout(PRUint32 aTimeout) { return _to SetTimeout(aTimeout); } \
     463                 :   NS_SCRIPTABLE NS_IMETHOD GetReadyState(PRUint16 *aReadyState) { return _to GetReadyState(aReadyState); } \
     464                 :   NS_SCRIPTABLE NS_IMETHOD OverrideMimeType(const nsACString & mimetype) { return _to OverrideMimeType(mimetype); } \
     465                 :   NS_SCRIPTABLE NS_IMETHOD GetMultipart(bool *aMultipart) { return _to GetMultipart(aMultipart); } \
     466                 :   NS_SCRIPTABLE NS_IMETHOD SetMultipart(bool aMultipart) { return _to SetMultipart(aMultipart); } \
     467                 :   NS_SCRIPTABLE NS_IMETHOD GetMozBackgroundRequest(bool *aMozBackgroundRequest) { return _to GetMozBackgroundRequest(aMozBackgroundRequest); } \
     468                 :   NS_SCRIPTABLE NS_IMETHOD SetMozBackgroundRequest(bool aMozBackgroundRequest) { return _to SetMozBackgroundRequest(aMozBackgroundRequest); } \
     469                 :   NS_SCRIPTABLE NS_IMETHOD GetWithCredentials(bool *aWithCredentials) { return _to GetWithCredentials(aWithCredentials); } \
     470                 :   NS_SCRIPTABLE NS_IMETHOD SetWithCredentials(bool aWithCredentials) { return _to SetWithCredentials(aWithCredentials); } \
     471                 :   NS_IMETHOD Init(nsIPrincipal *principal, nsIScriptContext *scriptContext, nsPIDOMWindow *ownerWindow, nsIURI *baseURI) { return _to Init(principal, scriptContext, ownerWindow, baseURI); } \
     472                 :   NS_SCRIPTABLE NS_IMETHOD GetUpload(nsIXMLHttpRequestUpload * *aUpload) { return _to GetUpload(aUpload); } \
     473                 :   NS_SCRIPTABLE NS_IMETHOD GetOnreadystatechange(nsIDOMEventListener * *aOnreadystatechange) { return _to GetOnreadystatechange(aOnreadystatechange); } \
     474                 :   NS_SCRIPTABLE NS_IMETHOD SetOnreadystatechange(nsIDOMEventListener *aOnreadystatechange) { return _to SetOnreadystatechange(aOnreadystatechange); } 
     475                 : 
     476                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     477                 : #define NS_FORWARD_SAFE_NSIXMLHTTPREQUEST(_to) \
     478                 :   NS_SCRIPTABLE NS_IMETHOD GetChannel(nsIChannel * *aChannel) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChannel(aChannel); } \
     479                 :   NS_SCRIPTABLE NS_IMETHOD GetResponseXML(nsIDOMDocument * *aResponseXML) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResponseXML(aResponseXML); } \
     480                 :   NS_SCRIPTABLE NS_IMETHOD GetResponseText(nsAString & aResponseText) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResponseText(aResponseText); } \
     481                 :   NS_SCRIPTABLE NS_IMETHOD GetResponseType(nsAString & aResponseType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResponseType(aResponseType); } \
     482                 :   NS_SCRIPTABLE NS_IMETHOD SetResponseType(const nsAString & aResponseType) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetResponseType(aResponseType); } \
     483                 :   NS_SCRIPTABLE NS_IMETHOD GetResponse(JSContext* cx, JS::Value *aResponse) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResponse(cx, aResponse); } \
     484                 :   NS_SCRIPTABLE NS_IMETHOD GetStatus(PRUint32 *aStatus) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStatus(aStatus); } \
     485                 :   NS_SCRIPTABLE NS_IMETHOD GetStatusText(nsACString & aStatusText) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStatusText(aStatusText); } \
     486                 :   NS_SCRIPTABLE NS_IMETHOD Abort(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Abort(); } \
     487                 :   NS_SCRIPTABLE NS_IMETHOD GetAllResponseHeaders(nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAllResponseHeaders(_retval); } \
     488                 :   NS_SCRIPTABLE NS_IMETHOD GetResponseHeader(const nsACString & header, nsACString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResponseHeader(header, _retval); } \
     489                 :   NS_SCRIPTABLE NS_IMETHOD Open(const nsACString & method, const nsACString & url, bool async, const nsAString & user, const nsAString & password, PRUint8 _argc) { return !_to ? NS_ERROR_NULL_POINTER : _to->Open(method, url, async, user, password, _argc); } \
     490                 :   NS_SCRIPTABLE NS_IMETHOD Send(nsIVariant *body) { return !_to ? NS_ERROR_NULL_POINTER : _to->Send(body); } \
     491                 :   NS_SCRIPTABLE NS_IMETHOD SendAsBinary(const nsAString & body) { return !_to ? NS_ERROR_NULL_POINTER : _to->SendAsBinary(body); } \
     492                 :   NS_SCRIPTABLE NS_IMETHOD SetRequestHeader(const nsACString & header, const nsACString & value) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetRequestHeader(header, value); } \
     493                 :   NS_SCRIPTABLE NS_IMETHOD GetTimeout(PRUint32 *aTimeout) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTimeout(aTimeout); } \
     494                 :   NS_SCRIPTABLE NS_IMETHOD SetTimeout(PRUint32 aTimeout) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTimeout(aTimeout); } \
     495                 :   NS_SCRIPTABLE NS_IMETHOD GetReadyState(PRUint16 *aReadyState) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetReadyState(aReadyState); } \
     496                 :   NS_SCRIPTABLE NS_IMETHOD OverrideMimeType(const nsACString & mimetype) { return !_to ? NS_ERROR_NULL_POINTER : _to->OverrideMimeType(mimetype); } \
     497                 :   NS_SCRIPTABLE NS_IMETHOD GetMultipart(bool *aMultipart) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMultipart(aMultipart); } \
     498                 :   NS_SCRIPTABLE NS_IMETHOD SetMultipart(bool aMultipart) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMultipart(aMultipart); } \
     499                 :   NS_SCRIPTABLE NS_IMETHOD GetMozBackgroundRequest(bool *aMozBackgroundRequest) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozBackgroundRequest(aMozBackgroundRequest); } \
     500                 :   NS_SCRIPTABLE NS_IMETHOD SetMozBackgroundRequest(bool aMozBackgroundRequest) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozBackgroundRequest(aMozBackgroundRequest); } \
     501                 :   NS_SCRIPTABLE NS_IMETHOD GetWithCredentials(bool *aWithCredentials) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWithCredentials(aWithCredentials); } \
     502                 :   NS_SCRIPTABLE NS_IMETHOD SetWithCredentials(bool aWithCredentials) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetWithCredentials(aWithCredentials); } \
     503                 :   NS_IMETHOD Init(nsIPrincipal *principal, nsIScriptContext *scriptContext, nsPIDOMWindow *ownerWindow, nsIURI *baseURI) { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(principal, scriptContext, ownerWindow, baseURI); } \
     504                 :   NS_SCRIPTABLE NS_IMETHOD GetUpload(nsIXMLHttpRequestUpload * *aUpload) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUpload(aUpload); } \
     505                 :   NS_SCRIPTABLE NS_IMETHOD GetOnreadystatechange(nsIDOMEventListener * *aOnreadystatechange) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOnreadystatechange(aOnreadystatechange); } \
     506                 :   NS_SCRIPTABLE NS_IMETHOD SetOnreadystatechange(nsIDOMEventListener *aOnreadystatechange) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOnreadystatechange(aOnreadystatechange); } 
     507                 : 
     508                 : #if 0
     509                 : /* Use the code below as a template for the implementation class for this interface. */
     510                 : 
     511                 : /* Header file */
     512                 : class nsXMLHttpRequest : public nsIXMLHttpRequest
     513                 : {
     514                 : public:
     515                 :   NS_DECL_ISUPPORTS
     516                 :   NS_DECL_NSIXMLHTTPREQUEST
     517                 : 
     518                 :   nsXMLHttpRequest();
     519                 : 
     520                 : private:
     521                 :   ~nsXMLHttpRequest();
     522                 : 
     523                 : protected:
     524                 :   /* additional members */
     525                 : };
     526                 : 
     527                 : /* Implementation file */
     528                 : NS_IMPL_ISUPPORTS1(nsXMLHttpRequest, nsIXMLHttpRequest)
     529                 : 
     530                 : nsXMLHttpRequest::nsXMLHttpRequest()
     531                 : {
     532                 :   /* member initializers and constructor code */
     533                 : }
     534                 : 
     535                 : nsXMLHttpRequest::~nsXMLHttpRequest()
     536                 : {
     537                 :   /* destructor code */
     538                 : }
     539                 : 
     540                 : /* readonly attribute nsIChannel channel; */
     541                 : NS_IMETHODIMP nsXMLHttpRequest::GetChannel(nsIChannel * *aChannel)
     542                 : {
     543                 :     return NS_ERROR_NOT_IMPLEMENTED;
     544                 : }
     545                 : 
     546                 : /* readonly attribute nsIDOMDocument responseXML; */
     547                 : NS_IMETHODIMP nsXMLHttpRequest::GetResponseXML(nsIDOMDocument * *aResponseXML)
     548                 : {
     549                 :     return NS_ERROR_NOT_IMPLEMENTED;
     550                 : }
     551                 : 
     552                 : /* readonly attribute AString responseText; */
     553                 : NS_IMETHODIMP nsXMLHttpRequest::GetResponseText(nsAString & aResponseText)
     554                 : {
     555                 :     return NS_ERROR_NOT_IMPLEMENTED;
     556                 : }
     557                 : 
     558                 : /* attribute AString responseType; */
     559                 : NS_IMETHODIMP nsXMLHttpRequest::GetResponseType(nsAString & aResponseType)
     560                 : {
     561                 :     return NS_ERROR_NOT_IMPLEMENTED;
     562                 : }
     563                 : NS_IMETHODIMP nsXMLHttpRequest::SetResponseType(const nsAString & aResponseType)
     564                 : {
     565                 :     return NS_ERROR_NOT_IMPLEMENTED;
     566                 : }
     567                 : 
     568                 : /* [implicit_jscontext] readonly attribute jsval response; */
     569                 : NS_IMETHODIMP nsXMLHttpRequest::GetResponse(JSContext* cx, JS::Value *aResponse)
     570                 : {
     571                 :     return NS_ERROR_NOT_IMPLEMENTED;
     572                 : }
     573                 : 
     574                 : /* readonly attribute unsigned long status; */
     575                 : NS_IMETHODIMP nsXMLHttpRequest::GetStatus(PRUint32 *aStatus)
     576                 : {
     577                 :     return NS_ERROR_NOT_IMPLEMENTED;
     578                 : }
     579                 : 
     580                 : /* readonly attribute AUTF8String statusText; */
     581                 : NS_IMETHODIMP nsXMLHttpRequest::GetStatusText(nsACString & aStatusText)
     582                 : {
     583                 :     return NS_ERROR_NOT_IMPLEMENTED;
     584                 : }
     585                 : 
     586                 : /* void abort (); */
     587                 : NS_IMETHODIMP nsXMLHttpRequest::Abort()
     588                 : {
     589                 :     return NS_ERROR_NOT_IMPLEMENTED;
     590                 : }
     591                 : 
     592                 : /* DOMString getAllResponseHeaders (); */
     593                 : NS_IMETHODIMP nsXMLHttpRequest::GetAllResponseHeaders(nsAString & _retval NS_OUTPARAM)
     594                 : {
     595                 :     return NS_ERROR_NOT_IMPLEMENTED;
     596                 : }
     597                 : 
     598                 : /* ACString getResponseHeader (in AUTF8String header); */
     599                 : NS_IMETHODIMP nsXMLHttpRequest::GetResponseHeader(const nsACString & header, nsACString & _retval NS_OUTPARAM)
     600                 : {
     601                 :     return NS_ERROR_NOT_IMPLEMENTED;
     602                 : }
     603                 : 
     604                 : /* [optional_argc] void open (in AUTF8String method, in AUTF8String url, [optional] in boolean async, [optional, Undefined (Empty)] in DOMString user, [optional, Undefined (Empty)] in DOMString password); */
     605                 : NS_IMETHODIMP nsXMLHttpRequest::Open(const nsACString & method, const nsACString & url, bool async, const nsAString & user, const nsAString & password, PRUint8 _argc)
     606                 : {
     607                 :     return NS_ERROR_NOT_IMPLEMENTED;
     608                 : }
     609                 : 
     610                 : /* void send ([optional] in nsIVariant body); */
     611                 : NS_IMETHODIMP nsXMLHttpRequest::Send(nsIVariant *body)
     612                 : {
     613                 :     return NS_ERROR_NOT_IMPLEMENTED;
     614                 : }
     615                 : 
     616                 : /* void sendAsBinary (in DOMString body); */
     617                 : NS_IMETHODIMP nsXMLHttpRequest::SendAsBinary(const nsAString & body)
     618                 : {
     619                 :     return NS_ERROR_NOT_IMPLEMENTED;
     620                 : }
     621                 : 
     622                 : /* void setRequestHeader (in AUTF8String header, in AUTF8String value); */
     623                 : NS_IMETHODIMP nsXMLHttpRequest::SetRequestHeader(const nsACString & header, const nsACString & value)
     624                 : {
     625                 :     return NS_ERROR_NOT_IMPLEMENTED;
     626                 : }
     627                 : 
     628                 : /* attribute unsigned long timeout; */
     629                 : NS_IMETHODIMP nsXMLHttpRequest::GetTimeout(PRUint32 *aTimeout)
     630                 : {
     631                 :     return NS_ERROR_NOT_IMPLEMENTED;
     632                 : }
     633                 : NS_IMETHODIMP nsXMLHttpRequest::SetTimeout(PRUint32 aTimeout)
     634                 : {
     635                 :     return NS_ERROR_NOT_IMPLEMENTED;
     636                 : }
     637                 : 
     638                 : /* readonly attribute unsigned short readyState; */
     639                 : NS_IMETHODIMP nsXMLHttpRequest::GetReadyState(PRUint16 *aReadyState)
     640                 : {
     641                 :     return NS_ERROR_NOT_IMPLEMENTED;
     642                 : }
     643                 : 
     644                 : /* void overrideMimeType (in AUTF8String mimetype); */
     645                 : NS_IMETHODIMP nsXMLHttpRequest::OverrideMimeType(const nsACString & mimetype)
     646                 : {
     647                 :     return NS_ERROR_NOT_IMPLEMENTED;
     648                 : }
     649                 : 
     650                 : /* attribute boolean multipart; */
     651                 : NS_IMETHODIMP nsXMLHttpRequest::GetMultipart(bool *aMultipart)
     652                 : {
     653                 :     return NS_ERROR_NOT_IMPLEMENTED;
     654                 : }
     655                 : NS_IMETHODIMP nsXMLHttpRequest::SetMultipart(bool aMultipart)
     656                 : {
     657                 :     return NS_ERROR_NOT_IMPLEMENTED;
     658                 : }
     659                 : 
     660                 : /* attribute boolean mozBackgroundRequest; */
     661                 : NS_IMETHODIMP nsXMLHttpRequest::GetMozBackgroundRequest(bool *aMozBackgroundRequest)
     662                 : {
     663                 :     return NS_ERROR_NOT_IMPLEMENTED;
     664                 : }
     665                 : NS_IMETHODIMP nsXMLHttpRequest::SetMozBackgroundRequest(bool aMozBackgroundRequest)
     666                 : {
     667                 :     return NS_ERROR_NOT_IMPLEMENTED;
     668                 : }
     669                 : 
     670                 : /* attribute boolean withCredentials; */
     671                 : NS_IMETHODIMP nsXMLHttpRequest::GetWithCredentials(bool *aWithCredentials)
     672                 : {
     673                 :     return NS_ERROR_NOT_IMPLEMENTED;
     674                 : }
     675                 : NS_IMETHODIMP nsXMLHttpRequest::SetWithCredentials(bool aWithCredentials)
     676                 : {
     677                 :     return NS_ERROR_NOT_IMPLEMENTED;
     678                 : }
     679                 : 
     680                 : /* [noscript] void init (in nsIPrincipal principal, in nsIScriptContext scriptContext, in nsPIDOMWindow ownerWindow, in nsIURI baseURI); */
     681                 : NS_IMETHODIMP nsXMLHttpRequest::Init(nsIPrincipal *principal, nsIScriptContext *scriptContext, nsPIDOMWindow *ownerWindow, nsIURI *baseURI)
     682                 : {
     683                 :     return NS_ERROR_NOT_IMPLEMENTED;
     684                 : }
     685                 : 
     686                 : /* readonly attribute nsIXMLHttpRequestUpload upload; */
     687                 : NS_IMETHODIMP nsXMLHttpRequest::GetUpload(nsIXMLHttpRequestUpload * *aUpload)
     688                 : {
     689                 :     return NS_ERROR_NOT_IMPLEMENTED;
     690                 : }
     691                 : 
     692                 : /* attribute nsIDOMEventListener onreadystatechange; */
     693                 : NS_IMETHODIMP nsXMLHttpRequest::GetOnreadystatechange(nsIDOMEventListener * *aOnreadystatechange)
     694                 : {
     695                 :     return NS_ERROR_NOT_IMPLEMENTED;
     696                 : }
     697                 : NS_IMETHODIMP nsXMLHttpRequest::SetOnreadystatechange(nsIDOMEventListener *aOnreadystatechange)
     698                 : {
     699                 :     return NS_ERROR_NOT_IMPLEMENTED;
     700                 : }
     701                 : 
     702                 : /* End of implementation class template. */
     703                 : #endif
     704                 : 
     705                 : 
     706                 : /* starting interface:    nsIXHRSendable */
     707                 : #define NS_IXHRSENDABLE_IID_STR "840d0d00-e83e-4a29-b3c7-67e96e90a499"
     708                 : 
     709                 : #define NS_IXHRSENDABLE_IID \
     710                 :   {0x840d0d00, 0xe83e, 0x4a29, \
     711                 :     { 0xb3, 0xc7, 0x67, 0xe9, 0x6e, 0x90, 0xa4, 0x99 }}
     712                 : 
     713              10 : class NS_NO_VTABLE NS_SCRIPTABLE nsIXHRSendable : public nsISupports {
     714                 :  public: 
     715                 : 
     716                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IXHRSENDABLE_IID)
     717                 : 
     718                 :   /* void getSendInfo (out nsIInputStream body, out ACString contentType, out ACString charset); */
     719                 :   NS_SCRIPTABLE NS_IMETHOD GetSendInfo(nsIInputStream * *body NS_OUTPARAM, nsACString & contentType NS_OUTPARAM, nsACString & charset NS_OUTPARAM) = 0;
     720                 : 
     721                 : };
     722                 : 
     723                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIXHRSendable, NS_IXHRSENDABLE_IID)
     724                 : 
     725                 : /* Use this macro when declaring classes that implement this interface. */
     726                 : #define NS_DECL_NSIXHRSENDABLE \
     727                 :   NS_SCRIPTABLE NS_IMETHOD GetSendInfo(nsIInputStream * *body NS_OUTPARAM, nsACString & contentType NS_OUTPARAM, nsACString & charset NS_OUTPARAM); 
     728                 : 
     729                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     730                 : #define NS_FORWARD_NSIXHRSENDABLE(_to) \
     731                 :   NS_SCRIPTABLE NS_IMETHOD GetSendInfo(nsIInputStream * *body NS_OUTPARAM, nsACString & contentType NS_OUTPARAM, nsACString & charset NS_OUTPARAM) { return _to GetSendInfo(body, contentType, charset); } 
     732                 : 
     733                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     734                 : #define NS_FORWARD_SAFE_NSIXHRSENDABLE(_to) \
     735                 :   NS_SCRIPTABLE NS_IMETHOD GetSendInfo(nsIInputStream * *body NS_OUTPARAM, nsACString & contentType NS_OUTPARAM, nsACString & charset NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSendInfo(body, contentType, charset); } 
     736                 : 
     737                 : #if 0
     738                 : /* Use the code below as a template for the implementation class for this interface. */
     739                 : 
     740                 : /* Header file */
     741                 : class nsXHRSendable : public nsIXHRSendable
     742                 : {
     743                 : public:
     744                 :   NS_DECL_ISUPPORTS
     745                 :   NS_DECL_NSIXHRSENDABLE
     746                 : 
     747                 :   nsXHRSendable();
     748                 : 
     749                 : private:
     750                 :   ~nsXHRSendable();
     751                 : 
     752                 : protected:
     753                 :   /* additional members */
     754                 : };
     755                 : 
     756                 : /* Implementation file */
     757                 : NS_IMPL_ISUPPORTS1(nsXHRSendable, nsIXHRSendable)
     758                 : 
     759                 : nsXHRSendable::nsXHRSendable()
     760                 : {
     761                 :   /* member initializers and constructor code */
     762                 : }
     763                 : 
     764                 : nsXHRSendable::~nsXHRSendable()
     765                 : {
     766                 :   /* destructor code */
     767                 : }
     768                 : 
     769                 : /* void getSendInfo (out nsIInputStream body, out ACString contentType, out ACString charset); */
     770                 : NS_IMETHODIMP nsXHRSendable::GetSendInfo(nsIInputStream * *body NS_OUTPARAM, nsACString & contentType NS_OUTPARAM, nsACString & charset NS_OUTPARAM)
     771                 : {
     772                 :     return NS_ERROR_NOT_IMPLEMENTED;
     773                 : }
     774                 : 
     775                 : /* End of implementation class template. */
     776                 : #endif
     777                 : 
     778                 : 
     779                 : /* starting interface:    nsIJSXMLHttpRequest */
     780                 : #define NS_IJSXMLHTTPREQUEST_IID_STR "423fdd3d-41c9-4149-8fe5-b14a1d3912a0"
     781                 : 
     782                 : #define NS_IJSXMLHTTPREQUEST_IID \
     783                 :   {0x423fdd3d, 0x41c9, 0x4149, \
     784                 :     { 0x8f, 0xe5, 0xb1, 0x4a, 0x1d, 0x39, 0x12, 0xa0 }}
     785                 : 
     786             596 : class NS_NO_VTABLE NS_SCRIPTABLE MOZ_DEPRECATED nsIJSXMLHttpRequest : public nsISupports {
     787                 :  public: 
     788                 : 
     789                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IJSXMLHTTPREQUEST_IID)
     790                 : 
     791                 :   /* attribute nsIDOMEventListener onuploadprogress; */
     792                 :   NS_SCRIPTABLE NS_IMETHOD GetOnuploadprogress(nsIDOMEventListener * *aOnuploadprogress) = 0;
     793                 :   NS_SCRIPTABLE NS_IMETHOD SetOnuploadprogress(nsIDOMEventListener *aOnuploadprogress) = 0;
     794                 : 
     795                 : };
     796                 : 
     797                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIJSXMLHttpRequest, NS_IJSXMLHTTPREQUEST_IID)
     798                 : 
     799                 : /* Use this macro when declaring classes that implement this interface. */
     800                 : #define NS_DECL_NSIJSXMLHTTPREQUEST \
     801                 :   NS_SCRIPTABLE NS_IMETHOD GetOnuploadprogress(nsIDOMEventListener * *aOnuploadprogress); \
     802                 :   NS_SCRIPTABLE NS_IMETHOD SetOnuploadprogress(nsIDOMEventListener *aOnuploadprogress); 
     803                 : 
     804                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     805                 : #define NS_FORWARD_NSIJSXMLHTTPREQUEST(_to) \
     806                 :   NS_SCRIPTABLE NS_IMETHOD GetOnuploadprogress(nsIDOMEventListener * *aOnuploadprogress) { return _to GetOnuploadprogress(aOnuploadprogress); } \
     807                 :   NS_SCRIPTABLE NS_IMETHOD SetOnuploadprogress(nsIDOMEventListener *aOnuploadprogress) { return _to SetOnuploadprogress(aOnuploadprogress); } 
     808                 : 
     809                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     810                 : #define NS_FORWARD_SAFE_NSIJSXMLHTTPREQUEST(_to) \
     811                 :   NS_SCRIPTABLE NS_IMETHOD GetOnuploadprogress(nsIDOMEventListener * *aOnuploadprogress) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOnuploadprogress(aOnuploadprogress); } \
     812                 :   NS_SCRIPTABLE NS_IMETHOD SetOnuploadprogress(nsIDOMEventListener *aOnuploadprogress) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOnuploadprogress(aOnuploadprogress); } 
     813                 : 
     814                 : #if 0
     815                 : /* Use the code below as a template for the implementation class for this interface. */
     816                 : 
     817                 : /* Header file */
     818                 : class nsJSXMLHttpRequest : public nsIJSXMLHttpRequest
     819                 : {
     820                 : public:
     821                 :   NS_DECL_ISUPPORTS
     822                 :   NS_DECL_NSIJSXMLHTTPREQUEST
     823                 : 
     824                 :   nsJSXMLHttpRequest();
     825                 : 
     826                 : private:
     827                 :   ~nsJSXMLHttpRequest();
     828                 : 
     829                 : protected:
     830                 :   /* additional members */
     831                 : };
     832                 : 
     833                 : /* Implementation file */
     834                 : NS_IMPL_ISUPPORTS1(nsJSXMLHttpRequest, nsIJSXMLHttpRequest)
     835                 : 
     836                 : nsJSXMLHttpRequest::nsJSXMLHttpRequest()
     837                 : {
     838                 :   /* member initializers and constructor code */
     839                 : }
     840                 : 
     841                 : nsJSXMLHttpRequest::~nsJSXMLHttpRequest()
     842                 : {
     843                 :   /* destructor code */
     844                 : }
     845                 : 
     846                 : /* attribute nsIDOMEventListener onuploadprogress; */
     847                 : NS_IMETHODIMP nsJSXMLHttpRequest::GetOnuploadprogress(nsIDOMEventListener * *aOnuploadprogress)
     848                 : {
     849                 :     return NS_ERROR_NOT_IMPLEMENTED;
     850                 : }
     851                 : NS_IMETHODIMP nsJSXMLHttpRequest::SetOnuploadprogress(nsIDOMEventListener *aOnuploadprogress)
     852                 : {
     853                 :     return NS_ERROR_NOT_IMPLEMENTED;
     854                 : }
     855                 : 
     856                 : /* End of implementation class template. */
     857                 : #endif
     858                 : 
     859                 : #define NS_XMLHTTPREQUEST_CID                       \
     860                 :  { /* d164e770-4157-11d4-9a42-000064657374 */       \
     861                 :   0xd164e770, 0x4157, 0x11d4,                       \
     862                 :  {0x9a, 0x42, 0x00, 0x00, 0x64, 0x65, 0x73, 0x74} }
     863                 : #define NS_XMLHTTPREQUEST_CONTRACTID \
     864                 : "@mozilla.org/xmlextras/xmlhttprequest;1"
     865                 : 
     866                 : #endif /* __gen_nsIXMLHttpRequest_h__ */

Generated by: LCOV version 1.7