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

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIWebSocketChannel.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIWebSocketChannel_h__
       6             : #define __gen_nsIWebSocketChannel_h__
       7             : 
       8             : 
       9             : #ifndef __gen_nsISupports_h__
      10             : #include "nsISupports.h"
      11             : #endif
      12             : 
      13             : /* For IDL files that don't want to include root IDL files. */
      14             : #ifndef NS_NO_VTABLE
      15             : #define NS_NO_VTABLE
      16             : #endif
      17             : class nsIURI; /* forward declaration */
      18             : 
      19             : class nsIInterfaceRequestor; /* forward declaration */
      20             : 
      21             : class nsILoadGroup; /* forward declaration */
      22             : 
      23             : class nsIWebSocketListener; /* forward declaration */
      24             : 
      25             : class nsIInputStream; /* forward declaration */
      26             : 
      27             : class nsILoadInfo; /* forward declaration */
      28             : 
      29             : class nsIDOMNode; /* forward declaration */
      30             : 
      31             : class nsIPrincipal; /* forward declaration */
      32             : 
      33             : class nsITransportProvider; /* forward declaration */
      34             : 
      35             : 
      36             : /* starting interface:    nsIWebSocketChannel */
      37             : #define NS_IWEBSOCKETCHANNEL_IID_STR "ce71d028-322a-4105-a947-a894689b52bf"
      38             : 
      39             : #define NS_IWEBSOCKETCHANNEL_IID \
      40             :   {0xce71d028, 0x322a, 0x4105, \
      41             :     { 0xa9, 0x47, 0xa8, 0x94, 0x68, 0x9b, 0x52, 0xbf }}
      42             : 
      43           0 : class nsIWebSocketChannel : public nsISupports {
      44             :  public:
      45             : 
      46             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IWEBSOCKETCHANNEL_IID)
      47             : 
      48             :   /* [must_use] readonly attribute nsIURI originalURI; */
      49             :   MOZ_MUST_USE NS_IMETHOD GetOriginalURI(nsIURI * *aOriginalURI) = 0;
      50             : 
      51             :   /* [must_use] readonly attribute nsIURI URI; */
      52             :   MOZ_MUST_USE NS_IMETHOD GetURI(nsIURI * *aURI) = 0;
      53             : 
      54             :   /* [must_use] attribute nsIInterfaceRequestor notificationCallbacks; */
      55             :   MOZ_MUST_USE NS_IMETHOD GetNotificationCallbacks(nsIInterfaceRequestor * *aNotificationCallbacks) = 0;
      56             :   MOZ_MUST_USE NS_IMETHOD SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks) = 0;
      57             : 
      58             :   /* [must_use] readonly attribute nsISupports securityInfo; */
      59             :   MOZ_MUST_USE NS_IMETHOD GetSecurityInfo(nsISupports * *aSecurityInfo) = 0;
      60             : 
      61             :   /* [must_use] attribute nsILoadGroup loadGroup; */
      62             :   MOZ_MUST_USE NS_IMETHOD GetLoadGroup(nsILoadGroup * *aLoadGroup) = 0;
      63             :   MOZ_MUST_USE NS_IMETHOD SetLoadGroup(nsILoadGroup *aLoadGroup) = 0;
      64             : 
      65             :   /* [must_use] attribute nsILoadInfo loadInfo; */
      66             :   MOZ_MUST_USE NS_IMETHOD GetLoadInfo(nsILoadInfo * *aLoadInfo) = 0;
      67             :   MOZ_MUST_USE NS_IMETHOD SetLoadInfo(nsILoadInfo *aLoadInfo) = 0;
      68             : 
      69             :   /* [must_use] attribute ACString protocol; */
      70             :   MOZ_MUST_USE NS_IMETHOD GetProtocol(nsACString & aProtocol) = 0;
      71             :   MOZ_MUST_USE NS_IMETHOD SetProtocol(const nsACString & aProtocol) = 0;
      72             : 
      73             :   /* [must_use] readonly attribute ACString extensions; */
      74             :   MOZ_MUST_USE NS_IMETHOD GetExtensions(nsACString & aExtensions) = 0;
      75             : 
      76             :   /* [must_use] void initLoadInfo (in nsIDOMNode aLoadingNode, in nsIPrincipal aLoadingPrincipal, in nsIPrincipal aTriggeringPrincipal, in unsigned long aSecurityFlags, in unsigned long aContentPolicyType); */
      77             :   MOZ_MUST_USE NS_IMETHOD InitLoadInfo(nsIDOMNode *aLoadingNode, nsIPrincipal *aLoadingPrincipal, nsIPrincipal *aTriggeringPrincipal, uint32_t aSecurityFlags, uint32_t aContentPolicyType) = 0;
      78             : 
      79             :   /* [must_use] void asyncOpen (in nsIURI aURI, in ACString aOrigin, in unsigned long long aInnerWindowID, in nsIWebSocketListener aListener, in nsISupports aContext); */
      80             :   MOZ_MUST_USE NS_IMETHOD AsyncOpen(nsIURI *aURI, const nsACString & aOrigin, uint64_t aInnerWindowID, nsIWebSocketListener *aListener, nsISupports *aContext) = 0;
      81             : 
      82             :   /* [must_use] void close (in unsigned short aCode, in AUTF8String aReason); */
      83             :   MOZ_MUST_USE NS_IMETHOD Close(uint16_t aCode, const nsACString & aReason) = 0;
      84             : 
      85             :   enum {
      86             :     CLOSE_NORMAL = 1000U,
      87             :     CLOSE_GOING_AWAY = 1001U,
      88             :     CLOSE_PROTOCOL_ERROR = 1002U,
      89             :     CLOSE_UNSUPPORTED_DATATYPE = 1003U,
      90             :     CLOSE_NO_STATUS = 1005U,
      91             :     CLOSE_ABNORMAL = 1006U,
      92             :     CLOSE_INVALID_PAYLOAD = 1007U,
      93             :     CLOSE_POLICY_VIOLATION = 1008U,
      94             :     CLOSE_TOO_LARGE = 1009U,
      95             :     CLOSE_EXTENSION_MISSING = 1010U,
      96             :     CLOSE_INTERNAL_ERROR = 1011U,
      97             :     CLOSE_TLS_FAILED = 1015U
      98             :   };
      99             : 
     100             :   /* [must_use] void sendMsg (in AUTF8String aMsg); */
     101             :   MOZ_MUST_USE NS_IMETHOD SendMsg(const nsACString & aMsg) = 0;
     102             : 
     103             :   /* [must_use] void sendBinaryMsg (in ACString aMsg); */
     104             :   MOZ_MUST_USE NS_IMETHOD SendBinaryMsg(const nsACString & aMsg) = 0;
     105             : 
     106             :   /* [must_use] void sendBinaryStream (in nsIInputStream aStream, in unsigned long length); */
     107             :   MOZ_MUST_USE NS_IMETHOD SendBinaryStream(nsIInputStream *aStream, uint32_t length) = 0;
     108             : 
     109             :   /* [must_use] attribute unsigned long pingInterval; */
     110             :   MOZ_MUST_USE NS_IMETHOD GetPingInterval(uint32_t *aPingInterval) = 0;
     111             :   MOZ_MUST_USE NS_IMETHOD SetPingInterval(uint32_t aPingInterval) = 0;
     112             : 
     113             :   /* [must_use] attribute unsigned long pingTimeout; */
     114             :   MOZ_MUST_USE NS_IMETHOD GetPingTimeout(uint32_t *aPingTimeout) = 0;
     115             :   MOZ_MUST_USE NS_IMETHOD SetPingTimeout(uint32_t aPingTimeout) = 0;
     116             : 
     117             :   /* [must_use] attribute unsigned long serial; */
     118             :   MOZ_MUST_USE NS_IMETHOD GetSerial(uint32_t *aSerial) = 0;
     119             :   MOZ_MUST_USE NS_IMETHOD SetSerial(uint32_t aSerial) = 0;
     120             : 
     121             :   /* [must_use] void setServerParameters (in nsITransportProvider aProvider, in ACString aNegotiatedExtensions); */
     122             :   MOZ_MUST_USE NS_IMETHOD SetServerParameters(nsITransportProvider *aProvider, const nsACString & aNegotiatedExtensions) = 0;
     123             : 
     124           0 :      inline uint32_t Serial()
     125             :     {
     126             :       uint32_t serial;
     127           0 :       nsresult rv = GetSerial(&serial);
     128           0 :       if (NS_WARN_IF(NS_FAILED(rv))) {
     129           0 :         return 0;
     130             :       }
     131           0 :       return serial;
     132             :     }
     133             : };
     134             : 
     135             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIWebSocketChannel, NS_IWEBSOCKETCHANNEL_IID)
     136             : 
     137             : /* Use this macro when declaring classes that implement this interface. */
     138             : #define NS_DECL_NSIWEBSOCKETCHANNEL \
     139             :   MOZ_MUST_USE NS_IMETHOD GetOriginalURI(nsIURI * *aOriginalURI) override; \
     140             :   MOZ_MUST_USE NS_IMETHOD GetURI(nsIURI * *aURI) override; \
     141             :   MOZ_MUST_USE NS_IMETHOD GetNotificationCallbacks(nsIInterfaceRequestor * *aNotificationCallbacks) override; \
     142             :   MOZ_MUST_USE NS_IMETHOD SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks) override; \
     143             :   MOZ_MUST_USE NS_IMETHOD GetSecurityInfo(nsISupports * *aSecurityInfo) override; \
     144             :   MOZ_MUST_USE NS_IMETHOD GetLoadGroup(nsILoadGroup * *aLoadGroup) override; \
     145             :   MOZ_MUST_USE NS_IMETHOD SetLoadGroup(nsILoadGroup *aLoadGroup) override; \
     146             :   MOZ_MUST_USE NS_IMETHOD GetLoadInfo(nsILoadInfo * *aLoadInfo) override; \
     147             :   MOZ_MUST_USE NS_IMETHOD SetLoadInfo(nsILoadInfo *aLoadInfo) override; \
     148             :   MOZ_MUST_USE NS_IMETHOD GetProtocol(nsACString & aProtocol) override; \
     149             :   MOZ_MUST_USE NS_IMETHOD SetProtocol(const nsACString & aProtocol) override; \
     150             :   MOZ_MUST_USE NS_IMETHOD GetExtensions(nsACString & aExtensions) override; \
     151             :   MOZ_MUST_USE NS_IMETHOD InitLoadInfo(nsIDOMNode *aLoadingNode, nsIPrincipal *aLoadingPrincipal, nsIPrincipal *aTriggeringPrincipal, uint32_t aSecurityFlags, uint32_t aContentPolicyType) override; \
     152             :   MOZ_MUST_USE NS_IMETHOD AsyncOpen(nsIURI *aURI, const nsACString & aOrigin, uint64_t aInnerWindowID, nsIWebSocketListener *aListener, nsISupports *aContext) override; \
     153             :   MOZ_MUST_USE NS_IMETHOD Close(uint16_t aCode, const nsACString & aReason) override; \
     154             :   MOZ_MUST_USE NS_IMETHOD SendMsg(const nsACString & aMsg) override; \
     155             :   MOZ_MUST_USE NS_IMETHOD SendBinaryMsg(const nsACString & aMsg) override; \
     156             :   MOZ_MUST_USE NS_IMETHOD SendBinaryStream(nsIInputStream *aStream, uint32_t length) override; \
     157             :   MOZ_MUST_USE NS_IMETHOD GetPingInterval(uint32_t *aPingInterval) override; \
     158             :   MOZ_MUST_USE NS_IMETHOD SetPingInterval(uint32_t aPingInterval) override; \
     159             :   MOZ_MUST_USE NS_IMETHOD GetPingTimeout(uint32_t *aPingTimeout) override; \
     160             :   MOZ_MUST_USE NS_IMETHOD SetPingTimeout(uint32_t aPingTimeout) override; \
     161             :   MOZ_MUST_USE NS_IMETHOD GetSerial(uint32_t *aSerial) override; \
     162             :   MOZ_MUST_USE NS_IMETHOD SetSerial(uint32_t aSerial) override; \
     163             :   MOZ_MUST_USE NS_IMETHOD SetServerParameters(nsITransportProvider *aProvider, const nsACString & aNegotiatedExtensions) override; \
     164             : 
     165             : /* Use this macro when declaring the members of this interface when the
     166             :    class doesn't implement the interface. This is useful for forwarding. */
     167             : #define NS_DECL_NON_VIRTUAL_NSIWEBSOCKETCHANNEL \
     168             :   MOZ_MUST_USE nsresult GetOriginalURI(nsIURI * *aOriginalURI); \
     169             :   MOZ_MUST_USE nsresult GetURI(nsIURI * *aURI); \
     170             :   MOZ_MUST_USE nsresult GetNotificationCallbacks(nsIInterfaceRequestor * *aNotificationCallbacks); \
     171             :   MOZ_MUST_USE nsresult SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks); \
     172             :   MOZ_MUST_USE nsresult GetSecurityInfo(nsISupports * *aSecurityInfo); \
     173             :   MOZ_MUST_USE nsresult GetLoadGroup(nsILoadGroup * *aLoadGroup); \
     174             :   MOZ_MUST_USE nsresult SetLoadGroup(nsILoadGroup *aLoadGroup); \
     175             :   MOZ_MUST_USE nsresult GetLoadInfo(nsILoadInfo * *aLoadInfo); \
     176             :   MOZ_MUST_USE nsresult SetLoadInfo(nsILoadInfo *aLoadInfo); \
     177             :   MOZ_MUST_USE nsresult GetProtocol(nsACString & aProtocol); \
     178             :   MOZ_MUST_USE nsresult SetProtocol(const nsACString & aProtocol); \
     179             :   MOZ_MUST_USE nsresult GetExtensions(nsACString & aExtensions); \
     180             :   MOZ_MUST_USE nsresult InitLoadInfo(nsIDOMNode *aLoadingNode, nsIPrincipal *aLoadingPrincipal, nsIPrincipal *aTriggeringPrincipal, uint32_t aSecurityFlags, uint32_t aContentPolicyType); \
     181             :   MOZ_MUST_USE nsresult AsyncOpen(nsIURI *aURI, const nsACString & aOrigin, uint64_t aInnerWindowID, nsIWebSocketListener *aListener, nsISupports *aContext); \
     182             :   MOZ_MUST_USE nsresult Close(uint16_t aCode, const nsACString & aReason); \
     183             :   MOZ_MUST_USE nsresult SendMsg(const nsACString & aMsg); \
     184             :   MOZ_MUST_USE nsresult SendBinaryMsg(const nsACString & aMsg); \
     185             :   MOZ_MUST_USE nsresult SendBinaryStream(nsIInputStream *aStream, uint32_t length); \
     186             :   MOZ_MUST_USE nsresult GetPingInterval(uint32_t *aPingInterval); \
     187             :   MOZ_MUST_USE nsresult SetPingInterval(uint32_t aPingInterval); \
     188             :   MOZ_MUST_USE nsresult GetPingTimeout(uint32_t *aPingTimeout); \
     189             :   MOZ_MUST_USE nsresult SetPingTimeout(uint32_t aPingTimeout); \
     190             :   MOZ_MUST_USE nsresult GetSerial(uint32_t *aSerial); \
     191             :   MOZ_MUST_USE nsresult SetSerial(uint32_t aSerial); \
     192             :   MOZ_MUST_USE nsresult SetServerParameters(nsITransportProvider *aProvider, const nsACString & aNegotiatedExtensions); \
     193             : 
     194             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     195             : #define NS_FORWARD_NSIWEBSOCKETCHANNEL(_to) \
     196             :   MOZ_MUST_USE NS_IMETHOD GetOriginalURI(nsIURI * *aOriginalURI) override { return _to GetOriginalURI(aOriginalURI); } \
     197             :   MOZ_MUST_USE NS_IMETHOD GetURI(nsIURI * *aURI) override { return _to GetURI(aURI); } \
     198             :   MOZ_MUST_USE NS_IMETHOD GetNotificationCallbacks(nsIInterfaceRequestor * *aNotificationCallbacks) override { return _to GetNotificationCallbacks(aNotificationCallbacks); } \
     199             :   MOZ_MUST_USE NS_IMETHOD SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks) override { return _to SetNotificationCallbacks(aNotificationCallbacks); } \
     200             :   MOZ_MUST_USE NS_IMETHOD GetSecurityInfo(nsISupports * *aSecurityInfo) override { return _to GetSecurityInfo(aSecurityInfo); } \
     201             :   MOZ_MUST_USE NS_IMETHOD GetLoadGroup(nsILoadGroup * *aLoadGroup) override { return _to GetLoadGroup(aLoadGroup); } \
     202             :   MOZ_MUST_USE NS_IMETHOD SetLoadGroup(nsILoadGroup *aLoadGroup) override { return _to SetLoadGroup(aLoadGroup); } \
     203             :   MOZ_MUST_USE NS_IMETHOD GetLoadInfo(nsILoadInfo * *aLoadInfo) override { return _to GetLoadInfo(aLoadInfo); } \
     204             :   MOZ_MUST_USE NS_IMETHOD SetLoadInfo(nsILoadInfo *aLoadInfo) override { return _to SetLoadInfo(aLoadInfo); } \
     205             :   MOZ_MUST_USE NS_IMETHOD GetProtocol(nsACString & aProtocol) override { return _to GetProtocol(aProtocol); } \
     206             :   MOZ_MUST_USE NS_IMETHOD SetProtocol(const nsACString & aProtocol) override { return _to SetProtocol(aProtocol); } \
     207             :   MOZ_MUST_USE NS_IMETHOD GetExtensions(nsACString & aExtensions) override { return _to GetExtensions(aExtensions); } \
     208             :   MOZ_MUST_USE NS_IMETHOD InitLoadInfo(nsIDOMNode *aLoadingNode, nsIPrincipal *aLoadingPrincipal, nsIPrincipal *aTriggeringPrincipal, uint32_t aSecurityFlags, uint32_t aContentPolicyType) override { return _to InitLoadInfo(aLoadingNode, aLoadingPrincipal, aTriggeringPrincipal, aSecurityFlags, aContentPolicyType); } \
     209             :   MOZ_MUST_USE NS_IMETHOD AsyncOpen(nsIURI *aURI, const nsACString & aOrigin, uint64_t aInnerWindowID, nsIWebSocketListener *aListener, nsISupports *aContext) override { return _to AsyncOpen(aURI, aOrigin, aInnerWindowID, aListener, aContext); } \
     210             :   MOZ_MUST_USE NS_IMETHOD Close(uint16_t aCode, const nsACString & aReason) override { return _to Close(aCode, aReason); } \
     211             :   MOZ_MUST_USE NS_IMETHOD SendMsg(const nsACString & aMsg) override { return _to SendMsg(aMsg); } \
     212             :   MOZ_MUST_USE NS_IMETHOD SendBinaryMsg(const nsACString & aMsg) override { return _to SendBinaryMsg(aMsg); } \
     213             :   MOZ_MUST_USE NS_IMETHOD SendBinaryStream(nsIInputStream *aStream, uint32_t length) override { return _to SendBinaryStream(aStream, length); } \
     214             :   MOZ_MUST_USE NS_IMETHOD GetPingInterval(uint32_t *aPingInterval) override { return _to GetPingInterval(aPingInterval); } \
     215             :   MOZ_MUST_USE NS_IMETHOD SetPingInterval(uint32_t aPingInterval) override { return _to SetPingInterval(aPingInterval); } \
     216             :   MOZ_MUST_USE NS_IMETHOD GetPingTimeout(uint32_t *aPingTimeout) override { return _to GetPingTimeout(aPingTimeout); } \
     217             :   MOZ_MUST_USE NS_IMETHOD SetPingTimeout(uint32_t aPingTimeout) override { return _to SetPingTimeout(aPingTimeout); } \
     218             :   MOZ_MUST_USE NS_IMETHOD GetSerial(uint32_t *aSerial) override { return _to GetSerial(aSerial); } \
     219             :   MOZ_MUST_USE NS_IMETHOD SetSerial(uint32_t aSerial) override { return _to SetSerial(aSerial); } \
     220             :   MOZ_MUST_USE NS_IMETHOD SetServerParameters(nsITransportProvider *aProvider, const nsACString & aNegotiatedExtensions) override { return _to SetServerParameters(aProvider, aNegotiatedExtensions); } \
     221             : 
     222             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     223             : #define NS_FORWARD_SAFE_NSIWEBSOCKETCHANNEL(_to) \
     224             :   MOZ_MUST_USE NS_IMETHOD GetOriginalURI(nsIURI * *aOriginalURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOriginalURI(aOriginalURI); } \
     225             :   MOZ_MUST_USE NS_IMETHOD GetURI(nsIURI * *aURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetURI(aURI); } \
     226             :   MOZ_MUST_USE NS_IMETHOD GetNotificationCallbacks(nsIInterfaceRequestor * *aNotificationCallbacks) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNotificationCallbacks(aNotificationCallbacks); } \
     227             :   MOZ_MUST_USE NS_IMETHOD SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetNotificationCallbacks(aNotificationCallbacks); } \
     228             :   MOZ_MUST_USE NS_IMETHOD GetSecurityInfo(nsISupports * *aSecurityInfo) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSecurityInfo(aSecurityInfo); } \
     229             :   MOZ_MUST_USE NS_IMETHOD GetLoadGroup(nsILoadGroup * *aLoadGroup) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLoadGroup(aLoadGroup); } \
     230             :   MOZ_MUST_USE NS_IMETHOD SetLoadGroup(nsILoadGroup *aLoadGroup) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLoadGroup(aLoadGroup); } \
     231             :   MOZ_MUST_USE NS_IMETHOD GetLoadInfo(nsILoadInfo * *aLoadInfo) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLoadInfo(aLoadInfo); } \
     232             :   MOZ_MUST_USE NS_IMETHOD SetLoadInfo(nsILoadInfo *aLoadInfo) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLoadInfo(aLoadInfo); } \
     233             :   MOZ_MUST_USE NS_IMETHOD GetProtocol(nsACString & aProtocol) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProtocol(aProtocol); } \
     234             :   MOZ_MUST_USE NS_IMETHOD SetProtocol(const nsACString & aProtocol) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetProtocol(aProtocol); } \
     235             :   MOZ_MUST_USE NS_IMETHOD GetExtensions(nsACString & aExtensions) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetExtensions(aExtensions); } \
     236             :   MOZ_MUST_USE NS_IMETHOD InitLoadInfo(nsIDOMNode *aLoadingNode, nsIPrincipal *aLoadingPrincipal, nsIPrincipal *aTriggeringPrincipal, uint32_t aSecurityFlags, uint32_t aContentPolicyType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InitLoadInfo(aLoadingNode, aLoadingPrincipal, aTriggeringPrincipal, aSecurityFlags, aContentPolicyType); } \
     237             :   MOZ_MUST_USE NS_IMETHOD AsyncOpen(nsIURI *aURI, const nsACString & aOrigin, uint64_t aInnerWindowID, nsIWebSocketListener *aListener, nsISupports *aContext) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AsyncOpen(aURI, aOrigin, aInnerWindowID, aListener, aContext); } \
     238             :   MOZ_MUST_USE NS_IMETHOD Close(uint16_t aCode, const nsACString & aReason) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Close(aCode, aReason); } \
     239             :   MOZ_MUST_USE NS_IMETHOD SendMsg(const nsACString & aMsg) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SendMsg(aMsg); } \
     240             :   MOZ_MUST_USE NS_IMETHOD SendBinaryMsg(const nsACString & aMsg) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SendBinaryMsg(aMsg); } \
     241             :   MOZ_MUST_USE NS_IMETHOD SendBinaryStream(nsIInputStream *aStream, uint32_t length) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SendBinaryStream(aStream, length); } \
     242             :   MOZ_MUST_USE NS_IMETHOD GetPingInterval(uint32_t *aPingInterval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPingInterval(aPingInterval); } \
     243             :   MOZ_MUST_USE NS_IMETHOD SetPingInterval(uint32_t aPingInterval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPingInterval(aPingInterval); } \
     244             :   MOZ_MUST_USE NS_IMETHOD GetPingTimeout(uint32_t *aPingTimeout) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPingTimeout(aPingTimeout); } \
     245             :   MOZ_MUST_USE NS_IMETHOD SetPingTimeout(uint32_t aPingTimeout) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPingTimeout(aPingTimeout); } \
     246             :   MOZ_MUST_USE NS_IMETHOD GetSerial(uint32_t *aSerial) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSerial(aSerial); } \
     247             :   MOZ_MUST_USE NS_IMETHOD SetSerial(uint32_t aSerial) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSerial(aSerial); } \
     248             :   MOZ_MUST_USE NS_IMETHOD SetServerParameters(nsITransportProvider *aProvider, const nsACString & aNegotiatedExtensions) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetServerParameters(aProvider, aNegotiatedExtensions); } \
     249             : 
     250             : #if 0
     251             : /* Use the code below as a template for the implementation class for this interface. */
     252             : 
     253             : /* Header file */
     254             : class nsWebSocketChannel : public nsIWebSocketChannel
     255             : {
     256             : public:
     257             :   NS_DECL_ISUPPORTS
     258             :   NS_DECL_NSIWEBSOCKETCHANNEL
     259             : 
     260             :   nsWebSocketChannel();
     261             : 
     262             : private:
     263             :   ~nsWebSocketChannel();
     264             : 
     265             : protected:
     266             :   /* additional members */
     267             : };
     268             : 
     269             : /* Implementation file */
     270             : NS_IMPL_ISUPPORTS(nsWebSocketChannel, nsIWebSocketChannel)
     271             : 
     272             : nsWebSocketChannel::nsWebSocketChannel()
     273             : {
     274             :   /* member initializers and constructor code */
     275             : }
     276             : 
     277             : nsWebSocketChannel::~nsWebSocketChannel()
     278             : {
     279             :   /* destructor code */
     280             : }
     281             : 
     282             : /* [must_use] readonly attribute nsIURI originalURI; */
     283             : MOZ_MUST_USE NS_IMETHODIMP nsWebSocketChannel::GetOriginalURI(nsIURI * *aOriginalURI)
     284             : {
     285             :     return NS_ERROR_NOT_IMPLEMENTED;
     286             : }
     287             : 
     288             : /* [must_use] readonly attribute nsIURI URI; */
     289             : MOZ_MUST_USE NS_IMETHODIMP nsWebSocketChannel::GetURI(nsIURI * *aURI)
     290             : {
     291             :     return NS_ERROR_NOT_IMPLEMENTED;
     292             : }
     293             : 
     294             : /* [must_use] attribute nsIInterfaceRequestor notificationCallbacks; */
     295             : MOZ_MUST_USE NS_IMETHODIMP nsWebSocketChannel::GetNotificationCallbacks(nsIInterfaceRequestor * *aNotificationCallbacks)
     296             : {
     297             :     return NS_ERROR_NOT_IMPLEMENTED;
     298             : }
     299             : MOZ_MUST_USE NS_IMETHODIMP nsWebSocketChannel::SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks)
     300             : {
     301             :     return NS_ERROR_NOT_IMPLEMENTED;
     302             : }
     303             : 
     304             : /* [must_use] readonly attribute nsISupports securityInfo; */
     305             : MOZ_MUST_USE NS_IMETHODIMP nsWebSocketChannel::GetSecurityInfo(nsISupports * *aSecurityInfo)
     306             : {
     307             :     return NS_ERROR_NOT_IMPLEMENTED;
     308             : }
     309             : 
     310             : /* [must_use] attribute nsILoadGroup loadGroup; */
     311             : MOZ_MUST_USE NS_IMETHODIMP nsWebSocketChannel::GetLoadGroup(nsILoadGroup * *aLoadGroup)
     312             : {
     313             :     return NS_ERROR_NOT_IMPLEMENTED;
     314             : }
     315             : MOZ_MUST_USE NS_IMETHODIMP nsWebSocketChannel::SetLoadGroup(nsILoadGroup *aLoadGroup)
     316             : {
     317             :     return NS_ERROR_NOT_IMPLEMENTED;
     318             : }
     319             : 
     320             : /* [must_use] attribute nsILoadInfo loadInfo; */
     321             : MOZ_MUST_USE NS_IMETHODIMP nsWebSocketChannel::GetLoadInfo(nsILoadInfo * *aLoadInfo)
     322             : {
     323             :     return NS_ERROR_NOT_IMPLEMENTED;
     324             : }
     325             : MOZ_MUST_USE NS_IMETHODIMP nsWebSocketChannel::SetLoadInfo(nsILoadInfo *aLoadInfo)
     326             : {
     327             :     return NS_ERROR_NOT_IMPLEMENTED;
     328             : }
     329             : 
     330             : /* [must_use] attribute ACString protocol; */
     331             : MOZ_MUST_USE NS_IMETHODIMP nsWebSocketChannel::GetProtocol(nsACString & aProtocol)
     332             : {
     333             :     return NS_ERROR_NOT_IMPLEMENTED;
     334             : }
     335             : MOZ_MUST_USE NS_IMETHODIMP nsWebSocketChannel::SetProtocol(const nsACString & aProtocol)
     336             : {
     337             :     return NS_ERROR_NOT_IMPLEMENTED;
     338             : }
     339             : 
     340             : /* [must_use] readonly attribute ACString extensions; */
     341             : MOZ_MUST_USE NS_IMETHODIMP nsWebSocketChannel::GetExtensions(nsACString & aExtensions)
     342             : {
     343             :     return NS_ERROR_NOT_IMPLEMENTED;
     344             : }
     345             : 
     346             : /* [must_use] void initLoadInfo (in nsIDOMNode aLoadingNode, in nsIPrincipal aLoadingPrincipal, in nsIPrincipal aTriggeringPrincipal, in unsigned long aSecurityFlags, in unsigned long aContentPolicyType); */
     347             : MOZ_MUST_USE NS_IMETHODIMP nsWebSocketChannel::InitLoadInfo(nsIDOMNode *aLoadingNode, nsIPrincipal *aLoadingPrincipal, nsIPrincipal *aTriggeringPrincipal, uint32_t aSecurityFlags, uint32_t aContentPolicyType)
     348             : {
     349             :     return NS_ERROR_NOT_IMPLEMENTED;
     350             : }
     351             : 
     352             : /* [must_use] void asyncOpen (in nsIURI aURI, in ACString aOrigin, in unsigned long long aInnerWindowID, in nsIWebSocketListener aListener, in nsISupports aContext); */
     353             : MOZ_MUST_USE NS_IMETHODIMP nsWebSocketChannel::AsyncOpen(nsIURI *aURI, const nsACString & aOrigin, uint64_t aInnerWindowID, nsIWebSocketListener *aListener, nsISupports *aContext)
     354             : {
     355             :     return NS_ERROR_NOT_IMPLEMENTED;
     356             : }
     357             : 
     358             : /* [must_use] void close (in unsigned short aCode, in AUTF8String aReason); */
     359             : MOZ_MUST_USE NS_IMETHODIMP nsWebSocketChannel::Close(uint16_t aCode, const nsACString & aReason)
     360             : {
     361             :     return NS_ERROR_NOT_IMPLEMENTED;
     362             : }
     363             : 
     364             : /* [must_use] void sendMsg (in AUTF8String aMsg); */
     365             : MOZ_MUST_USE NS_IMETHODIMP nsWebSocketChannel::SendMsg(const nsACString & aMsg)
     366             : {
     367             :     return NS_ERROR_NOT_IMPLEMENTED;
     368             : }
     369             : 
     370             : /* [must_use] void sendBinaryMsg (in ACString aMsg); */
     371             : MOZ_MUST_USE NS_IMETHODIMP nsWebSocketChannel::SendBinaryMsg(const nsACString & aMsg)
     372             : {
     373             :     return NS_ERROR_NOT_IMPLEMENTED;
     374             : }
     375             : 
     376             : /* [must_use] void sendBinaryStream (in nsIInputStream aStream, in unsigned long length); */
     377             : MOZ_MUST_USE NS_IMETHODIMP nsWebSocketChannel::SendBinaryStream(nsIInputStream *aStream, uint32_t length)
     378             : {
     379             :     return NS_ERROR_NOT_IMPLEMENTED;
     380             : }
     381             : 
     382             : /* [must_use] attribute unsigned long pingInterval; */
     383             : MOZ_MUST_USE NS_IMETHODIMP nsWebSocketChannel::GetPingInterval(uint32_t *aPingInterval)
     384             : {
     385             :     return NS_ERROR_NOT_IMPLEMENTED;
     386             : }
     387             : MOZ_MUST_USE NS_IMETHODIMP nsWebSocketChannel::SetPingInterval(uint32_t aPingInterval)
     388             : {
     389             :     return NS_ERROR_NOT_IMPLEMENTED;
     390             : }
     391             : 
     392             : /* [must_use] attribute unsigned long pingTimeout; */
     393             : MOZ_MUST_USE NS_IMETHODIMP nsWebSocketChannel::GetPingTimeout(uint32_t *aPingTimeout)
     394             : {
     395             :     return NS_ERROR_NOT_IMPLEMENTED;
     396             : }
     397             : MOZ_MUST_USE NS_IMETHODIMP nsWebSocketChannel::SetPingTimeout(uint32_t aPingTimeout)
     398             : {
     399             :     return NS_ERROR_NOT_IMPLEMENTED;
     400             : }
     401             : 
     402             : /* [must_use] attribute unsigned long serial; */
     403             : MOZ_MUST_USE NS_IMETHODIMP nsWebSocketChannel::GetSerial(uint32_t *aSerial)
     404             : {
     405             :     return NS_ERROR_NOT_IMPLEMENTED;
     406             : }
     407             : MOZ_MUST_USE NS_IMETHODIMP nsWebSocketChannel::SetSerial(uint32_t aSerial)
     408             : {
     409             :     return NS_ERROR_NOT_IMPLEMENTED;
     410             : }
     411             : 
     412             : /* [must_use] void setServerParameters (in nsITransportProvider aProvider, in ACString aNegotiatedExtensions); */
     413             : MOZ_MUST_USE NS_IMETHODIMP nsWebSocketChannel::SetServerParameters(nsITransportProvider *aProvider, const nsACString & aNegotiatedExtensions)
     414             : {
     415             :     return NS_ERROR_NOT_IMPLEMENTED;
     416             : }
     417             : 
     418             : /* End of implementation class template. */
     419             : #endif
     420             : 
     421             : 
     422             : #endif /* __gen_nsIWebSocketChannel_h__ */

Generated by: LCOV version 1.13