LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsIXMLHttpRequest.h (source / functions) Hit Total Coverage
Test: output.info Lines: 4 7 57.1 %
Date: 2017-07-14 16:53:18 Functions: 4 6 66.7 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/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 "js/Value.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 nsILoadGroup; /* forward declaration */
      26             : 
      27             : class nsIPrincipal; /* forward declaration */
      28             : 
      29             : class nsIScriptContext; /* forward declaration */
      30             : 
      31             : class nsIURI; /* forward declaration */
      32             : 
      33             : class nsIVariant; /* forward declaration */
      34             : 
      35             : class nsIGlobalObject; /* forward declaration */
      36             : 
      37             : class nsIInputStream; /* forward declaration */
      38             : 
      39             : class nsIDOMBlob; /* forward declaration */
      40             : 
      41             : 
      42             : /* starting interface:    nsIXMLHttpRequestEventTarget */
      43             : #define NS_IXMLHTTPREQUESTEVENTTARGET_IID_STR "88e7d2a0-2e5b-4f65-9624-a61e607a9948"
      44             : 
      45             : #define NS_IXMLHTTPREQUESTEVENTTARGET_IID \
      46             :   {0x88e7d2a0, 0x2e5b, 0x4f65, \
      47             :     { 0x96, 0x24, 0xa6, 0x1e, 0x60, 0x7a, 0x99, 0x48 }}
      48             : 
      49          12 : class NS_NO_VTABLE nsIXMLHttpRequestEventTarget : public nsIDOMEventTarget {
      50             :  public:
      51             : 
      52             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IXMLHTTPREQUESTEVENTTARGET_IID)
      53             : 
      54             : };
      55             : 
      56             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIXMLHttpRequestEventTarget, NS_IXMLHTTPREQUESTEVENTTARGET_IID)
      57             : 
      58             : /* Use this macro when declaring classes that implement this interface. */
      59             : #define NS_DECL_NSIXMLHTTPREQUESTEVENTTARGET \
      60             :   /* no methods! */
      61             : 
      62             : /* Use this macro when declaring the members of this interface when the
      63             :    class doesn't implement the interface. This is useful for forwarding. */
      64             : #define NS_DECL_NON_VIRTUAL_NSIXMLHTTPREQUESTEVENTTARGET \
      65             :   /* no methods! */
      66             : 
      67             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      68             : #define NS_FORWARD_NSIXMLHTTPREQUESTEVENTTARGET(_to) \
      69             :   /* no methods! */
      70             : 
      71             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      72             : #define NS_FORWARD_SAFE_NSIXMLHTTPREQUESTEVENTTARGET(_to) \
      73             :   /* no methods! */
      74             : 
      75             : #if 0
      76             : /* Use the code below as a template for the implementation class for this interface. */
      77             : 
      78             : /* Header file */
      79             : class nsXMLHttpRequestEventTarget : public nsIXMLHttpRequestEventTarget
      80             : {
      81             : public:
      82             :   NS_DECL_ISUPPORTS
      83             :   NS_DECL_NSIXMLHTTPREQUESTEVENTTARGET
      84             : 
      85             :   nsXMLHttpRequestEventTarget();
      86             : 
      87             : private:
      88             :   ~nsXMLHttpRequestEventTarget();
      89             : 
      90             : protected:
      91             :   /* additional members */
      92             : };
      93             : 
      94             : /* Implementation file */
      95             : NS_IMPL_ISUPPORTS(nsXMLHttpRequestEventTarget, nsIXMLHttpRequestEventTarget)
      96             : 
      97             : nsXMLHttpRequestEventTarget::nsXMLHttpRequestEventTarget()
      98             : {
      99             :   /* member initializers and constructor code */
     100             : }
     101             : 
     102             : nsXMLHttpRequestEventTarget::~nsXMLHttpRequestEventTarget()
     103             : {
     104             :   /* destructor code */
     105             : }
     106             : 
     107             : /* End of implementation class template. */
     108             : #endif
     109             : 
     110             : 
     111             : /* starting interface:    nsIXMLHttpRequestUpload */
     112             : #define NS_IXMLHTTPREQUESTUPLOAD_IID_STR "d74c4dc4-bc8c-4f5d-b7f1-121a48750abe"
     113             : 
     114             : #define NS_IXMLHTTPREQUESTUPLOAD_IID \
     115             :   {0xd74c4dc4, 0xbc8c, 0x4f5d, \
     116             :     { 0xb7, 0xf1, 0x12, 0x1a, 0x48, 0x75, 0x0a, 0xbe }}
     117             : 
     118           3 : class NS_NO_VTABLE nsIXMLHttpRequestUpload : public nsIXMLHttpRequestEventTarget {
     119             :  public:
     120             : 
     121             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IXMLHTTPREQUESTUPLOAD_IID)
     122             : 
     123             : };
     124             : 
     125             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIXMLHttpRequestUpload, NS_IXMLHTTPREQUESTUPLOAD_IID)
     126             : 
     127             : /* Use this macro when declaring classes that implement this interface. */
     128             : #define NS_DECL_NSIXMLHTTPREQUESTUPLOAD \
     129             :   /* no methods! */
     130             : 
     131             : /* Use this macro when declaring the members of this interface when the
     132             :    class doesn't implement the interface. This is useful for forwarding. */
     133             : #define NS_DECL_NON_VIRTUAL_NSIXMLHTTPREQUESTUPLOAD \
     134             :   /* no methods! */
     135             : 
     136             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     137             : #define NS_FORWARD_NSIXMLHTTPREQUESTUPLOAD(_to) \
     138             :   /* no methods! */
     139             : 
     140             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     141             : #define NS_FORWARD_SAFE_NSIXMLHTTPREQUESTUPLOAD(_to) \
     142             :   /* no methods! */
     143             : 
     144             : #if 0
     145             : /* Use the code below as a template for the implementation class for this interface. */
     146             : 
     147             : /* Header file */
     148             : class nsXMLHttpRequestUpload : public nsIXMLHttpRequestUpload
     149             : {
     150             : public:
     151             :   NS_DECL_ISUPPORTS
     152             :   NS_DECL_NSIXMLHTTPREQUESTUPLOAD
     153             : 
     154             :   nsXMLHttpRequestUpload();
     155             : 
     156             : private:
     157             :   ~nsXMLHttpRequestUpload();
     158             : 
     159             : protected:
     160             :   /* additional members */
     161             : };
     162             : 
     163             : /* Implementation file */
     164             : NS_IMPL_ISUPPORTS(nsXMLHttpRequestUpload, nsIXMLHttpRequestUpload)
     165             : 
     166             : nsXMLHttpRequestUpload::nsXMLHttpRequestUpload()
     167             : {
     168             :   /* member initializers and constructor code */
     169             : }
     170             : 
     171             : nsXMLHttpRequestUpload::~nsXMLHttpRequestUpload()
     172             : {
     173             :   /* destructor code */
     174             : }
     175             : 
     176             : /* End of implementation class template. */
     177             : #endif
     178             : 
     179             : 
     180             : /* starting interface:    nsIXMLHttpRequest */
     181             : #define NS_IXMLHTTPREQUEST_IID_STR "6f54214c-7175-498d-9d2d-0429e38c2869"
     182             : 
     183             : #define NS_IXMLHTTPREQUEST_IID \
     184             :   {0x6f54214c, 0x7175, 0x498d, \
     185             :     { 0x9d, 0x2d, 0x04, 0x29, 0xe3, 0x8c, 0x28, 0x69 }}
     186             : 
     187           3 : class nsIXMLHttpRequest : public nsISupports {
     188             :  public:
     189             : 
     190             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IXMLHTTPREQUEST_IID)
     191             : 
     192             :   /* readonly attribute nsIChannel channel; */
     193             :   NS_IMETHOD GetChannel(nsIChannel * *aChannel) = 0;
     194             : 
     195             :   /* readonly attribute nsIDOMDocument responseXML; */
     196             :   NS_IMETHOD GetResponseXML(nsIDOMDocument * *aResponseXML) = 0;
     197             : 
     198             :   /* readonly attribute AString responseText; */
     199             :   NS_IMETHOD GetResponseText(nsAString & aResponseText) = 0;
     200             : 
     201             :   /* attribute AString responseType; */
     202             :   NS_IMETHOD GetResponseType(nsAString & aResponseType) = 0;
     203             :   NS_IMETHOD SetResponseType(const nsAString & aResponseType) = 0;
     204             : 
     205             :   /* [implicit_jscontext] readonly attribute jsval response; */
     206             :   NS_IMETHOD GetResponse(JSContext* cx, JS::MutableHandleValue aResponse) = 0;
     207             : 
     208             :   /* readonly attribute unsigned long status; */
     209             :   NS_IMETHOD GetStatus(uint32_t *aStatus) = 0;
     210             : 
     211             :   /* readonly attribute ACString statusText; */
     212             :   NS_IMETHOD GetStatusText(nsACString & aStatusText) = 0;
     213             : 
     214             :   /* [binaryname(SlowAbort)] void abort (); */
     215             :   NS_IMETHOD SlowAbort(void) = 0;
     216             : 
     217             :   /* ACString getAllResponseHeaders (); */
     218             :   NS_IMETHOD GetAllResponseHeaders(nsACString & _retval) = 0;
     219             : 
     220             :   /* ACString getResponseHeader (in ACString header); */
     221             :   NS_IMETHOD GetResponseHeader(const nsACString & header, nsACString & _retval) = 0;
     222             : 
     223             :    // note this is NOT virtual so this won't muck with the vtable!
     224           0 :   inline nsresult Open(const nsACString& method, const nsACString& url,
     225             :                        bool async, const nsAString& user,
     226             :                        const nsAString& password) {
     227           0 :     return Open(method, url, async, user, password, 3);
     228             :   }
     229             :   /* [optional_argc] void open (in ACString method, in AUTF8String url, [optional] in boolean async, [optional, Undefined (Empty)] in DOMString user, [optional, Undefined (Empty)] in DOMString password); */
     230             :   NS_IMETHOD Open(const nsACString & method, const nsACString & url, bool async, const nsAString & user, const nsAString & password, uint8_t _argc) = 0;
     231             : 
     232             :   /* void send ([optional] in nsIVariant body); */
     233             :   NS_IMETHOD Send(nsIVariant *body) = 0;
     234             : 
     235             :   /* void setRequestHeader (in ACString header, in ACString value); */
     236             :   NS_IMETHOD SetRequestHeader(const nsACString & header, const nsACString & value) = 0;
     237             : 
     238             :   /* attribute unsigned long timeout; */
     239             :   NS_IMETHOD GetTimeout(uint32_t *aTimeout) = 0;
     240             :   NS_IMETHOD SetTimeout(uint32_t aTimeout) = 0;
     241             : 
     242             :   enum {
     243             :     UNSENT = 0U,
     244             :     OPENED = 1U,
     245             :     HEADERS_RECEIVED = 2U,
     246             :     LOADING = 3U,
     247             :     DONE = 4U
     248             :   };
     249             : 
     250             :   /* readonly attribute unsigned short readyState; */
     251             :   NS_IMETHOD GetReadyState(uint16_t *aReadyState) = 0;
     252             : 
     253             :   /* [binaryname(SlowOverrideMimeType)] void overrideMimeType (in DOMString mimetype); */
     254             :   NS_IMETHOD SlowOverrideMimeType(const nsAString & mimetype) = 0;
     255             : 
     256             :   /* attribute boolean mozBackgroundRequest; */
     257             :   NS_IMETHOD GetMozBackgroundRequest(bool *aMozBackgroundRequest) = 0;
     258             :   NS_IMETHOD SetMozBackgroundRequest(bool aMozBackgroundRequest) = 0;
     259             : 
     260             :   /* attribute boolean withCredentials; */
     261             :   NS_IMETHOD GetWithCredentials(bool *aWithCredentials) = 0;
     262             :   NS_IMETHOD SetWithCredentials(bool aWithCredentials) = 0;
     263             : 
     264             :   /* [noscript] void init (in nsIPrincipal principal, in nsIGlobalObject globalObject, in nsIURI baseURI, [optional] in nsILoadGroup loadGroup); */
     265             :   NS_IMETHOD Init(nsIPrincipal *principal, nsIGlobalObject *globalObject, nsIURI *baseURI, nsILoadGroup *loadGroup) = 0;
     266             : 
     267             :   /* readonly attribute nsIXMLHttpRequestUpload upload; */
     268             :   NS_IMETHOD GetUpload(nsIXMLHttpRequestUpload * *aUpload) = 0;
     269             : 
     270             :   /* [implicit_jscontext] attribute jsval onreadystatechange; */
     271             :   NS_IMETHOD GetOnreadystatechange(JSContext* cx, JS::MutableHandleValue aOnreadystatechange) = 0;
     272             :   NS_IMETHOD SetOnreadystatechange(JSContext* cx, JS::HandleValue aOnreadystatechange) = 0;
     273             : 
     274             :   /* readonly attribute boolean mozAnon; */
     275             :   NS_IMETHOD GetMozAnon(bool *aMozAnon) = 0;
     276             : 
     277             :   /* readonly attribute boolean mozSystem; */
     278             :   NS_IMETHOD GetMozSystem(bool *aMozSystem) = 0;
     279             : 
     280             : };
     281             : 
     282             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIXMLHttpRequest, NS_IXMLHTTPREQUEST_IID)
     283             : 
     284             : /* Use this macro when declaring classes that implement this interface. */
     285             : #define NS_DECL_NSIXMLHTTPREQUEST \
     286             :   NS_IMETHOD GetChannel(nsIChannel * *aChannel) override; \
     287             :   NS_IMETHOD GetResponseXML(nsIDOMDocument * *aResponseXML) override; \
     288             :   NS_IMETHOD GetResponseText(nsAString & aResponseText) override; \
     289             :   NS_IMETHOD GetResponseType(nsAString & aResponseType) override; \
     290             :   NS_IMETHOD SetResponseType(const nsAString & aResponseType) override; \
     291             :   NS_IMETHOD GetResponse(JSContext* cx, JS::MutableHandleValue aResponse) override; \
     292             :   NS_IMETHOD GetStatus(uint32_t *aStatus) override; \
     293             :   NS_IMETHOD GetStatusText(nsACString & aStatusText) override; \
     294             :   NS_IMETHOD SlowAbort(void) override; \
     295             :   NS_IMETHOD GetAllResponseHeaders(nsACString & _retval) override; \
     296             :   NS_IMETHOD GetResponseHeader(const nsACString & header, nsACString & _retval) override; \
     297             :   NS_IMETHOD Open(const nsACString & method, const nsACString & url, bool async, const nsAString & user, const nsAString & password, uint8_t _argc) override; \
     298             :   NS_IMETHOD Send(nsIVariant *body) override; \
     299             :   NS_IMETHOD SetRequestHeader(const nsACString & header, const nsACString & value) override; \
     300             :   NS_IMETHOD GetTimeout(uint32_t *aTimeout) override; \
     301             :   NS_IMETHOD SetTimeout(uint32_t aTimeout) override; \
     302             :   NS_IMETHOD GetReadyState(uint16_t *aReadyState) override; \
     303             :   NS_IMETHOD SlowOverrideMimeType(const nsAString & mimetype) override; \
     304             :   NS_IMETHOD GetMozBackgroundRequest(bool *aMozBackgroundRequest) override; \
     305             :   NS_IMETHOD SetMozBackgroundRequest(bool aMozBackgroundRequest) override; \
     306             :   NS_IMETHOD GetWithCredentials(bool *aWithCredentials) override; \
     307             :   NS_IMETHOD SetWithCredentials(bool aWithCredentials) override; \
     308             :   NS_IMETHOD Init(nsIPrincipal *principal, nsIGlobalObject *globalObject, nsIURI *baseURI, nsILoadGroup *loadGroup) override; \
     309             :   NS_IMETHOD GetUpload(nsIXMLHttpRequestUpload * *aUpload) override; \
     310             :   NS_IMETHOD GetOnreadystatechange(JSContext* cx, JS::MutableHandleValue aOnreadystatechange) override; \
     311             :   NS_IMETHOD SetOnreadystatechange(JSContext* cx, JS::HandleValue aOnreadystatechange) override; \
     312             :   NS_IMETHOD GetMozAnon(bool *aMozAnon) override; \
     313             :   NS_IMETHOD GetMozSystem(bool *aMozSystem) override; 
     314             : 
     315             : /* Use this macro when declaring the members of this interface when the
     316             :    class doesn't implement the interface. This is useful for forwarding. */
     317             : #define NS_DECL_NON_VIRTUAL_NSIXMLHTTPREQUEST \
     318             :   nsresult GetChannel(nsIChannel * *aChannel); \
     319             :   nsresult GetResponseXML(nsIDOMDocument * *aResponseXML); \
     320             :   nsresult GetResponseText(nsAString & aResponseText); \
     321             :   nsresult GetResponseType(nsAString & aResponseType); \
     322             :   nsresult SetResponseType(const nsAString & aResponseType); \
     323             :   nsresult GetResponse(JSContext* cx, JS::MutableHandleValue aResponse); \
     324             :   nsresult GetStatus(uint32_t *aStatus); \
     325             :   nsresult GetStatusText(nsACString & aStatusText); \
     326             :   nsresult SlowAbort(void); \
     327             :   nsresult GetAllResponseHeaders(nsACString & _retval); \
     328             :   nsresult GetResponseHeader(const nsACString & header, nsACString & _retval); \
     329             :   nsresult Open(const nsACString & method, const nsACString & url, bool async, const nsAString & user, const nsAString & password, uint8_t _argc); \
     330             :   nsresult Send(nsIVariant *body); \
     331             :   nsresult SetRequestHeader(const nsACString & header, const nsACString & value); \
     332             :   nsresult GetTimeout(uint32_t *aTimeout); \
     333             :   nsresult SetTimeout(uint32_t aTimeout); \
     334             :   nsresult GetReadyState(uint16_t *aReadyState); \
     335             :   nsresult SlowOverrideMimeType(const nsAString & mimetype); \
     336             :   nsresult GetMozBackgroundRequest(bool *aMozBackgroundRequest); \
     337             :   nsresult SetMozBackgroundRequest(bool aMozBackgroundRequest); \
     338             :   nsresult GetWithCredentials(bool *aWithCredentials); \
     339             :   nsresult SetWithCredentials(bool aWithCredentials); \
     340             :   nsresult Init(nsIPrincipal *principal, nsIGlobalObject *globalObject, nsIURI *baseURI, nsILoadGroup *loadGroup); \
     341             :   nsresult GetUpload(nsIXMLHttpRequestUpload * *aUpload); \
     342             :   nsresult GetOnreadystatechange(JSContext* cx, JS::MutableHandleValue aOnreadystatechange); \
     343             :   nsresult SetOnreadystatechange(JSContext* cx, JS::HandleValue aOnreadystatechange); \
     344             :   nsresult GetMozAnon(bool *aMozAnon); \
     345             :   nsresult GetMozSystem(bool *aMozSystem); 
     346             : 
     347             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     348             : #define NS_FORWARD_NSIXMLHTTPREQUEST(_to) \
     349             :   NS_IMETHOD GetChannel(nsIChannel * *aChannel) override { return _to GetChannel(aChannel); } \
     350             :   NS_IMETHOD GetResponseXML(nsIDOMDocument * *aResponseXML) override { return _to GetResponseXML(aResponseXML); } \
     351             :   NS_IMETHOD GetResponseText(nsAString & aResponseText) override { return _to GetResponseText(aResponseText); } \
     352             :   NS_IMETHOD GetResponseType(nsAString & aResponseType) override { return _to GetResponseType(aResponseType); } \
     353             :   NS_IMETHOD SetResponseType(const nsAString & aResponseType) override { return _to SetResponseType(aResponseType); } \
     354             :   NS_IMETHOD GetResponse(JSContext* cx, JS::MutableHandleValue aResponse) override { return _to GetResponse(cx, aResponse); } \
     355             :   NS_IMETHOD GetStatus(uint32_t *aStatus) override { return _to GetStatus(aStatus); } \
     356             :   NS_IMETHOD GetStatusText(nsACString & aStatusText) override { return _to GetStatusText(aStatusText); } \
     357             :   NS_IMETHOD SlowAbort(void) override { return _to SlowAbort(); } \
     358             :   NS_IMETHOD GetAllResponseHeaders(nsACString & _retval) override { return _to GetAllResponseHeaders(_retval); } \
     359             :   NS_IMETHOD GetResponseHeader(const nsACString & header, nsACString & _retval) override { return _to GetResponseHeader(header, _retval); } \
     360             :   NS_IMETHOD Open(const nsACString & method, const nsACString & url, bool async, const nsAString & user, const nsAString & password, uint8_t _argc) override { return _to Open(method, url, async, user, password, _argc); } \
     361             :   NS_IMETHOD Send(nsIVariant *body) override { return _to Send(body); } \
     362             :   NS_IMETHOD SetRequestHeader(const nsACString & header, const nsACString & value) override { return _to SetRequestHeader(header, value); } \
     363             :   NS_IMETHOD GetTimeout(uint32_t *aTimeout) override { return _to GetTimeout(aTimeout); } \
     364             :   NS_IMETHOD SetTimeout(uint32_t aTimeout) override { return _to SetTimeout(aTimeout); } \
     365             :   NS_IMETHOD GetReadyState(uint16_t *aReadyState) override { return _to GetReadyState(aReadyState); } \
     366             :   NS_IMETHOD SlowOverrideMimeType(const nsAString & mimetype) override { return _to SlowOverrideMimeType(mimetype); } \
     367             :   NS_IMETHOD GetMozBackgroundRequest(bool *aMozBackgroundRequest) override { return _to GetMozBackgroundRequest(aMozBackgroundRequest); } \
     368             :   NS_IMETHOD SetMozBackgroundRequest(bool aMozBackgroundRequest) override { return _to SetMozBackgroundRequest(aMozBackgroundRequest); } \
     369             :   NS_IMETHOD GetWithCredentials(bool *aWithCredentials) override { return _to GetWithCredentials(aWithCredentials); } \
     370             :   NS_IMETHOD SetWithCredentials(bool aWithCredentials) override { return _to SetWithCredentials(aWithCredentials); } \
     371             :   NS_IMETHOD Init(nsIPrincipal *principal, nsIGlobalObject *globalObject, nsIURI *baseURI, nsILoadGroup *loadGroup) override { return _to Init(principal, globalObject, baseURI, loadGroup); } \
     372             :   NS_IMETHOD GetUpload(nsIXMLHttpRequestUpload * *aUpload) override { return _to GetUpload(aUpload); } \
     373             :   NS_IMETHOD GetOnreadystatechange(JSContext* cx, JS::MutableHandleValue aOnreadystatechange) override { return _to GetOnreadystatechange(cx, aOnreadystatechange); } \
     374             :   NS_IMETHOD SetOnreadystatechange(JSContext* cx, JS::HandleValue aOnreadystatechange) override { return _to SetOnreadystatechange(cx, aOnreadystatechange); } \
     375             :   NS_IMETHOD GetMozAnon(bool *aMozAnon) override { return _to GetMozAnon(aMozAnon); } \
     376             :   NS_IMETHOD GetMozSystem(bool *aMozSystem) override { return _to GetMozSystem(aMozSystem); } 
     377             : 
     378             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     379             : #define NS_FORWARD_SAFE_NSIXMLHTTPREQUEST(_to) \
     380             :   NS_IMETHOD GetChannel(nsIChannel * *aChannel) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChannel(aChannel); } \
     381             :   NS_IMETHOD GetResponseXML(nsIDOMDocument * *aResponseXML) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResponseXML(aResponseXML); } \
     382             :   NS_IMETHOD GetResponseText(nsAString & aResponseText) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResponseText(aResponseText); } \
     383             :   NS_IMETHOD GetResponseType(nsAString & aResponseType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResponseType(aResponseType); } \
     384             :   NS_IMETHOD SetResponseType(const nsAString & aResponseType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetResponseType(aResponseType); } \
     385             :   NS_IMETHOD GetResponse(JSContext* cx, JS::MutableHandleValue aResponse) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResponse(cx, aResponse); } \
     386             :   NS_IMETHOD GetStatus(uint32_t *aStatus) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStatus(aStatus); } \
     387             :   NS_IMETHOD GetStatusText(nsACString & aStatusText) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStatusText(aStatusText); } \
     388             :   NS_IMETHOD SlowAbort(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SlowAbort(); } \
     389             :   NS_IMETHOD GetAllResponseHeaders(nsACString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAllResponseHeaders(_retval); } \
     390             :   NS_IMETHOD GetResponseHeader(const nsACString & header, nsACString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResponseHeader(header, _retval); } \
     391             :   NS_IMETHOD Open(const nsACString & method, const nsACString & url, bool async, const nsAString & user, const nsAString & password, uint8_t _argc) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Open(method, url, async, user, password, _argc); } \
     392             :   NS_IMETHOD Send(nsIVariant *body) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Send(body); } \
     393             :   NS_IMETHOD SetRequestHeader(const nsACString & header, const nsACString & value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetRequestHeader(header, value); } \
     394             :   NS_IMETHOD GetTimeout(uint32_t *aTimeout) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTimeout(aTimeout); } \
     395             :   NS_IMETHOD SetTimeout(uint32_t aTimeout) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTimeout(aTimeout); } \
     396             :   NS_IMETHOD GetReadyState(uint16_t *aReadyState) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetReadyState(aReadyState); } \
     397             :   NS_IMETHOD SlowOverrideMimeType(const nsAString & mimetype) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SlowOverrideMimeType(mimetype); } \
     398             :   NS_IMETHOD GetMozBackgroundRequest(bool *aMozBackgroundRequest) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozBackgroundRequest(aMozBackgroundRequest); } \
     399             :   NS_IMETHOD SetMozBackgroundRequest(bool aMozBackgroundRequest) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozBackgroundRequest(aMozBackgroundRequest); } \
     400             :   NS_IMETHOD GetWithCredentials(bool *aWithCredentials) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWithCredentials(aWithCredentials); } \
     401             :   NS_IMETHOD SetWithCredentials(bool aWithCredentials) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetWithCredentials(aWithCredentials); } \
     402             :   NS_IMETHOD Init(nsIPrincipal *principal, nsIGlobalObject *globalObject, nsIURI *baseURI, nsILoadGroup *loadGroup) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(principal, globalObject, baseURI, loadGroup); } \
     403             :   NS_IMETHOD GetUpload(nsIXMLHttpRequestUpload * *aUpload) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUpload(aUpload); } \
     404             :   NS_IMETHOD GetOnreadystatechange(JSContext* cx, JS::MutableHandleValue aOnreadystatechange) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOnreadystatechange(cx, aOnreadystatechange); } \
     405             :   NS_IMETHOD SetOnreadystatechange(JSContext* cx, JS::HandleValue aOnreadystatechange) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOnreadystatechange(cx, aOnreadystatechange); } \
     406             :   NS_IMETHOD GetMozAnon(bool *aMozAnon) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozAnon(aMozAnon); } \
     407             :   NS_IMETHOD GetMozSystem(bool *aMozSystem) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozSystem(aMozSystem); } 
     408             : 
     409             : #if 0
     410             : /* Use the code below as a template for the implementation class for this interface. */
     411             : 
     412             : /* Header file */
     413             : class nsXMLHttpRequest : public nsIXMLHttpRequest
     414             : {
     415             : public:
     416             :   NS_DECL_ISUPPORTS
     417             :   NS_DECL_NSIXMLHTTPREQUEST
     418             : 
     419             :   nsXMLHttpRequest();
     420             : 
     421             : private:
     422             :   ~nsXMLHttpRequest();
     423             : 
     424             : protected:
     425             :   /* additional members */
     426             : };
     427             : 
     428             : /* Implementation file */
     429             : NS_IMPL_ISUPPORTS(nsXMLHttpRequest, nsIXMLHttpRequest)
     430             : 
     431             : nsXMLHttpRequest::nsXMLHttpRequest()
     432             : {
     433             :   /* member initializers and constructor code */
     434             : }
     435             : 
     436             : nsXMLHttpRequest::~nsXMLHttpRequest()
     437             : {
     438             :   /* destructor code */
     439             : }
     440             : 
     441             : /* readonly attribute nsIChannel channel; */
     442             : NS_IMETHODIMP nsXMLHttpRequest::GetChannel(nsIChannel * *aChannel)
     443             : {
     444             :     return NS_ERROR_NOT_IMPLEMENTED;
     445             : }
     446             : 
     447             : /* readonly attribute nsIDOMDocument responseXML; */
     448             : NS_IMETHODIMP nsXMLHttpRequest::GetResponseXML(nsIDOMDocument * *aResponseXML)
     449             : {
     450             :     return NS_ERROR_NOT_IMPLEMENTED;
     451             : }
     452             : 
     453             : /* readonly attribute AString responseText; */
     454             : NS_IMETHODIMP nsXMLHttpRequest::GetResponseText(nsAString & aResponseText)
     455             : {
     456             :     return NS_ERROR_NOT_IMPLEMENTED;
     457             : }
     458             : 
     459             : /* attribute AString responseType; */
     460             : NS_IMETHODIMP nsXMLHttpRequest::GetResponseType(nsAString & aResponseType)
     461             : {
     462             :     return NS_ERROR_NOT_IMPLEMENTED;
     463             : }
     464             : NS_IMETHODIMP nsXMLHttpRequest::SetResponseType(const nsAString & aResponseType)
     465             : {
     466             :     return NS_ERROR_NOT_IMPLEMENTED;
     467             : }
     468             : 
     469             : /* [implicit_jscontext] readonly attribute jsval response; */
     470             : NS_IMETHODIMP nsXMLHttpRequest::GetResponse(JSContext* cx, JS::MutableHandleValue aResponse)
     471             : {
     472             :     return NS_ERROR_NOT_IMPLEMENTED;
     473             : }
     474             : 
     475             : /* readonly attribute unsigned long status; */
     476             : NS_IMETHODIMP nsXMLHttpRequest::GetStatus(uint32_t *aStatus)
     477             : {
     478             :     return NS_ERROR_NOT_IMPLEMENTED;
     479             : }
     480             : 
     481             : /* readonly attribute ACString statusText; */
     482             : NS_IMETHODIMP nsXMLHttpRequest::GetStatusText(nsACString & aStatusText)
     483             : {
     484             :     return NS_ERROR_NOT_IMPLEMENTED;
     485             : }
     486             : 
     487             : /* [binaryname(SlowAbort)] void abort (); */
     488             : NS_IMETHODIMP nsXMLHttpRequest::SlowAbort()
     489             : {
     490             :     return NS_ERROR_NOT_IMPLEMENTED;
     491             : }
     492             : 
     493             : /* ACString getAllResponseHeaders (); */
     494             : NS_IMETHODIMP nsXMLHttpRequest::GetAllResponseHeaders(nsACString & _retval)
     495             : {
     496             :     return NS_ERROR_NOT_IMPLEMENTED;
     497             : }
     498             : 
     499             : /* ACString getResponseHeader (in ACString header); */
     500             : NS_IMETHODIMP nsXMLHttpRequest::GetResponseHeader(const nsACString & header, nsACString & _retval)
     501             : {
     502             :     return NS_ERROR_NOT_IMPLEMENTED;
     503             : }
     504             : 
     505             : /* [optional_argc] void open (in ACString method, in AUTF8String url, [optional] in boolean async, [optional, Undefined (Empty)] in DOMString user, [optional, Undefined (Empty)] in DOMString password); */
     506             : NS_IMETHODIMP nsXMLHttpRequest::Open(const nsACString & method, const nsACString & url, bool async, const nsAString & user, const nsAString & password, uint8_t _argc)
     507             : {
     508             :     return NS_ERROR_NOT_IMPLEMENTED;
     509             : }
     510             : 
     511             : /* void send ([optional] in nsIVariant body); */
     512             : NS_IMETHODIMP nsXMLHttpRequest::Send(nsIVariant *body)
     513             : {
     514             :     return NS_ERROR_NOT_IMPLEMENTED;
     515             : }
     516             : 
     517             : /* void setRequestHeader (in ACString header, in ACString value); */
     518             : NS_IMETHODIMP nsXMLHttpRequest::SetRequestHeader(const nsACString & header, const nsACString & value)
     519             : {
     520             :     return NS_ERROR_NOT_IMPLEMENTED;
     521             : }
     522             : 
     523             : /* attribute unsigned long timeout; */
     524             : NS_IMETHODIMP nsXMLHttpRequest::GetTimeout(uint32_t *aTimeout)
     525             : {
     526             :     return NS_ERROR_NOT_IMPLEMENTED;
     527             : }
     528             : NS_IMETHODIMP nsXMLHttpRequest::SetTimeout(uint32_t aTimeout)
     529             : {
     530             :     return NS_ERROR_NOT_IMPLEMENTED;
     531             : }
     532             : 
     533             : /* readonly attribute unsigned short readyState; */
     534             : NS_IMETHODIMP nsXMLHttpRequest::GetReadyState(uint16_t *aReadyState)
     535             : {
     536             :     return NS_ERROR_NOT_IMPLEMENTED;
     537             : }
     538             : 
     539             : /* [binaryname(SlowOverrideMimeType)] void overrideMimeType (in DOMString mimetype); */
     540             : NS_IMETHODIMP nsXMLHttpRequest::SlowOverrideMimeType(const nsAString & mimetype)
     541             : {
     542             :     return NS_ERROR_NOT_IMPLEMENTED;
     543             : }
     544             : 
     545             : /* attribute boolean mozBackgroundRequest; */
     546             : NS_IMETHODIMP nsXMLHttpRequest::GetMozBackgroundRequest(bool *aMozBackgroundRequest)
     547             : {
     548             :     return NS_ERROR_NOT_IMPLEMENTED;
     549             : }
     550             : NS_IMETHODIMP nsXMLHttpRequest::SetMozBackgroundRequest(bool aMozBackgroundRequest)
     551             : {
     552             :     return NS_ERROR_NOT_IMPLEMENTED;
     553             : }
     554             : 
     555             : /* attribute boolean withCredentials; */
     556             : NS_IMETHODIMP nsXMLHttpRequest::GetWithCredentials(bool *aWithCredentials)
     557             : {
     558             :     return NS_ERROR_NOT_IMPLEMENTED;
     559             : }
     560             : NS_IMETHODIMP nsXMLHttpRequest::SetWithCredentials(bool aWithCredentials)
     561             : {
     562             :     return NS_ERROR_NOT_IMPLEMENTED;
     563             : }
     564             : 
     565             : /* [noscript] void init (in nsIPrincipal principal, in nsIGlobalObject globalObject, in nsIURI baseURI, [optional] in nsILoadGroup loadGroup); */
     566             : NS_IMETHODIMP nsXMLHttpRequest::Init(nsIPrincipal *principal, nsIGlobalObject *globalObject, nsIURI *baseURI, nsILoadGroup *loadGroup)
     567             : {
     568             :     return NS_ERROR_NOT_IMPLEMENTED;
     569             : }
     570             : 
     571             : /* readonly attribute nsIXMLHttpRequestUpload upload; */
     572             : NS_IMETHODIMP nsXMLHttpRequest::GetUpload(nsIXMLHttpRequestUpload * *aUpload)
     573             : {
     574             :     return NS_ERROR_NOT_IMPLEMENTED;
     575             : }
     576             : 
     577             : /* [implicit_jscontext] attribute jsval onreadystatechange; */
     578             : NS_IMETHODIMP nsXMLHttpRequest::GetOnreadystatechange(JSContext* cx, JS::MutableHandleValue aOnreadystatechange)
     579             : {
     580             :     return NS_ERROR_NOT_IMPLEMENTED;
     581             : }
     582             : NS_IMETHODIMP nsXMLHttpRequest::SetOnreadystatechange(JSContext* cx, JS::HandleValue aOnreadystatechange)
     583             : {
     584             :     return NS_ERROR_NOT_IMPLEMENTED;
     585             : }
     586             : 
     587             : /* readonly attribute boolean mozAnon; */
     588             : NS_IMETHODIMP nsXMLHttpRequest::GetMozAnon(bool *aMozAnon)
     589             : {
     590             :     return NS_ERROR_NOT_IMPLEMENTED;
     591             : }
     592             : 
     593             : /* readonly attribute boolean mozSystem; */
     594             : NS_IMETHODIMP nsXMLHttpRequest::GetMozSystem(bool *aMozSystem)
     595             : {
     596             :     return NS_ERROR_NOT_IMPLEMENTED;
     597             : }
     598             : 
     599             : /* End of implementation class template. */
     600             : #endif
     601             : 
     602             : 
     603             : /* starting interface:    nsIXHRSendable */
     604             : #define NS_IXHRSENDABLE_IID_STR "840d0d00-e83e-4a29-b3c7-67e96e90a499"
     605             : 
     606             : #define NS_IXHRSENDABLE_IID \
     607             :   {0x840d0d00, 0xe83e, 0x4a29, \
     608             :     { 0xb3, 0xc7, 0x67, 0xe9, 0x6e, 0x90, 0xa4, 0x99 }}
     609             : 
     610           0 : class NS_NO_VTABLE nsIXHRSendable : public nsISupports {
     611             :  public:
     612             : 
     613             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IXHRSENDABLE_IID)
     614             : 
     615             :   /* void getSendInfo (out nsIInputStream body, out uint64_t contentLength, out ACString contentTypeWithCharset, out ACString charset); */
     616             :   NS_IMETHOD GetSendInfo(nsIInputStream * *body, uint64_t *contentLength, nsACString & contentTypeWithCharset, nsACString & charset) = 0;
     617             : 
     618             : };
     619             : 
     620             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIXHRSendable, NS_IXHRSENDABLE_IID)
     621             : 
     622             : /* Use this macro when declaring classes that implement this interface. */
     623             : #define NS_DECL_NSIXHRSENDABLE \
     624             :   NS_IMETHOD GetSendInfo(nsIInputStream * *body, uint64_t *contentLength, nsACString & contentTypeWithCharset, nsACString & charset) override; 
     625             : 
     626             : /* Use this macro when declaring the members of this interface when the
     627             :    class doesn't implement the interface. This is useful for forwarding. */
     628             : #define NS_DECL_NON_VIRTUAL_NSIXHRSENDABLE \
     629             :   nsresult GetSendInfo(nsIInputStream * *body, uint64_t *contentLength, nsACString & contentTypeWithCharset, nsACString & charset); 
     630             : 
     631             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     632             : #define NS_FORWARD_NSIXHRSENDABLE(_to) \
     633             :   NS_IMETHOD GetSendInfo(nsIInputStream * *body, uint64_t *contentLength, nsACString & contentTypeWithCharset, nsACString & charset) override { return _to GetSendInfo(body, contentLength, contentTypeWithCharset, charset); } 
     634             : 
     635             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     636             : #define NS_FORWARD_SAFE_NSIXHRSENDABLE(_to) \
     637             :   NS_IMETHOD GetSendInfo(nsIInputStream * *body, uint64_t *contentLength, nsACString & contentTypeWithCharset, nsACString & charset) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSendInfo(body, contentLength, contentTypeWithCharset, charset); } 
     638             : 
     639             : #if 0
     640             : /* Use the code below as a template for the implementation class for this interface. */
     641             : 
     642             : /* Header file */
     643             : class nsXHRSendable : public nsIXHRSendable
     644             : {
     645             : public:
     646             :   NS_DECL_ISUPPORTS
     647             :   NS_DECL_NSIXHRSENDABLE
     648             : 
     649             :   nsXHRSendable();
     650             : 
     651             : private:
     652             :   ~nsXHRSendable();
     653             : 
     654             : protected:
     655             :   /* additional members */
     656             : };
     657             : 
     658             : /* Implementation file */
     659             : NS_IMPL_ISUPPORTS(nsXHRSendable, nsIXHRSendable)
     660             : 
     661             : nsXHRSendable::nsXHRSendable()
     662             : {
     663             :   /* member initializers and constructor code */
     664             : }
     665             : 
     666             : nsXHRSendable::~nsXHRSendable()
     667             : {
     668             :   /* destructor code */
     669             : }
     670             : 
     671             : /* void getSendInfo (out nsIInputStream body, out uint64_t contentLength, out ACString contentTypeWithCharset, out ACString charset); */
     672             : NS_IMETHODIMP nsXHRSendable::GetSendInfo(nsIInputStream * *body, uint64_t *contentLength, nsACString & contentTypeWithCharset, nsACString & charset)
     673             : {
     674             :     return NS_ERROR_NOT_IMPLEMENTED;
     675             : }
     676             : 
     677             : /* End of implementation class template. */
     678             : #endif
     679             : 
     680             : 
     681             : /* starting interface:    nsIJSXMLHttpRequest */
     682             : #define NS_IJSXMLHTTPREQUEST_IID_STR "8ae70a39-edf1-40b4-a992-472d23421c25"
     683             : 
     684             : #define NS_IJSXMLHTTPREQUEST_IID \
     685             :   {0x8ae70a39, 0xedf1, 0x40b4, \
     686             :     { 0xa9, 0x92, 0x47, 0x2d, 0x23, 0x42, 0x1c, 0x25 }}
     687             : 
     688           3 : class NS_NO_VTABLE nsIJSXMLHttpRequest : public nsISupports {
     689             :  public:
     690             : 
     691             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IJSXMLHTTPREQUEST_IID)
     692             : 
     693             : };
     694             : 
     695             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIJSXMLHttpRequest, NS_IJSXMLHTTPREQUEST_IID)
     696             : 
     697             : /* Use this macro when declaring classes that implement this interface. */
     698             : #define NS_DECL_NSIJSXMLHTTPREQUEST \
     699             :   /* no methods! */
     700             : 
     701             : /* Use this macro when declaring the members of this interface when the
     702             :    class doesn't implement the interface. This is useful for forwarding. */
     703             : #define NS_DECL_NON_VIRTUAL_NSIJSXMLHTTPREQUEST \
     704             :   /* no methods! */
     705             : 
     706             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     707             : #define NS_FORWARD_NSIJSXMLHTTPREQUEST(_to) \
     708             :   /* no methods! */
     709             : 
     710             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     711             : #define NS_FORWARD_SAFE_NSIJSXMLHTTPREQUEST(_to) \
     712             :   /* no methods! */
     713             : 
     714             : #if 0
     715             : /* Use the code below as a template for the implementation class for this interface. */
     716             : 
     717             : /* Header file */
     718             : class nsJSXMLHttpRequest : public nsIJSXMLHttpRequest
     719             : {
     720             : public:
     721             :   NS_DECL_ISUPPORTS
     722             :   NS_DECL_NSIJSXMLHTTPREQUEST
     723             : 
     724             :   nsJSXMLHttpRequest();
     725             : 
     726             : private:
     727             :   ~nsJSXMLHttpRequest();
     728             : 
     729             : protected:
     730             :   /* additional members */
     731             : };
     732             : 
     733             : /* Implementation file */
     734             : NS_IMPL_ISUPPORTS(nsJSXMLHttpRequest, nsIJSXMLHttpRequest)
     735             : 
     736             : nsJSXMLHttpRequest::nsJSXMLHttpRequest()
     737             : {
     738             :   /* member initializers and constructor code */
     739             : }
     740             : 
     741             : nsJSXMLHttpRequest::~nsJSXMLHttpRequest()
     742             : {
     743             :   /* destructor code */
     744             : }
     745             : 
     746             : /* End of implementation class template. */
     747             : #endif
     748             : 
     749             : #define NS_XMLHTTPREQUEST_CID                       \
     750             :  { /* d164e770-4157-11d4-9a42-000064657374 */       \
     751             :   0xd164e770, 0x4157, 0x11d4,                       \
     752             :  {0x9a, 0x42, 0x00, 0x00, 0x64, 0x65, 0x73, 0x74} }
     753             : #define NS_XMLHTTPREQUEST_CONTRACTID \
     754             : "@mozilla.org/xmlextras/xmlhttprequest;1"
     755             : 
     756             : #endif /* __gen_nsIXMLHttpRequest_h__ */

Generated by: LCOV version 1.13