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

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIWebSocketListener.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIWebSocketListener_h__
       6             : #define __gen_nsIWebSocketListener_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             : 
      18             : /* starting interface:    nsIWebSocketListener */
      19             : #define NS_IWEBSOCKETLISTENER_IID_STR "d74c96b2-65b3-4e39-9e39-c577de5d7a73"
      20             : 
      21             : #define NS_IWEBSOCKETLISTENER_IID \
      22             :   {0xd74c96b2, 0x65b3, 0x4e39, \
      23             :     { 0x9e, 0x39, 0xc5, 0x77, 0xde, 0x5d, 0x7a, 0x73 }}
      24             : 
      25           0 : class NS_NO_VTABLE nsIWebSocketListener : public nsISupports {
      26             :  public:
      27             : 
      28             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IWEBSOCKETLISTENER_IID)
      29             : 
      30             :   /* [must_use] void onStart (in nsISupports aContext); */
      31             :   MOZ_MUST_USE NS_IMETHOD OnStart(nsISupports *aContext) = 0;
      32             : 
      33             :   /* [must_use] void onStop (in nsISupports aContext, in nsresult aStatusCode); */
      34             :   MOZ_MUST_USE NS_IMETHOD OnStop(nsISupports *aContext, nsresult aStatusCode) = 0;
      35             : 
      36             :   /* [must_use] void onMessageAvailable (in nsISupports aContext, in AUTF8String aMsg); */
      37             :   MOZ_MUST_USE NS_IMETHOD OnMessageAvailable(nsISupports *aContext, const nsACString & aMsg) = 0;
      38             : 
      39             :   /* [must_use] void onBinaryMessageAvailable (in nsISupports aContext, in ACString aMsg); */
      40             :   MOZ_MUST_USE NS_IMETHOD OnBinaryMessageAvailable(nsISupports *aContext, const nsACString & aMsg) = 0;
      41             : 
      42             :   /* [must_use] void onAcknowledge (in nsISupports aContext, in uint32_t aSize); */
      43             :   MOZ_MUST_USE NS_IMETHOD OnAcknowledge(nsISupports *aContext, uint32_t aSize) = 0;
      44             : 
      45             :   /* [must_use] void onServerClose (in nsISupports aContext, in unsigned short aCode, in AUTF8String aReason); */
      46             :   MOZ_MUST_USE NS_IMETHOD OnServerClose(nsISupports *aContext, uint16_t aCode, const nsACString & aReason) = 0;
      47             : 
      48             : };
      49             : 
      50             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIWebSocketListener, NS_IWEBSOCKETLISTENER_IID)
      51             : 
      52             : /* Use this macro when declaring classes that implement this interface. */
      53             : #define NS_DECL_NSIWEBSOCKETLISTENER \
      54             :   MOZ_MUST_USE NS_IMETHOD OnStart(nsISupports *aContext) override; \
      55             :   MOZ_MUST_USE NS_IMETHOD OnStop(nsISupports *aContext, nsresult aStatusCode) override; \
      56             :   MOZ_MUST_USE NS_IMETHOD OnMessageAvailable(nsISupports *aContext, const nsACString & aMsg) override; \
      57             :   MOZ_MUST_USE NS_IMETHOD OnBinaryMessageAvailable(nsISupports *aContext, const nsACString & aMsg) override; \
      58             :   MOZ_MUST_USE NS_IMETHOD OnAcknowledge(nsISupports *aContext, uint32_t aSize) override; \
      59             :   MOZ_MUST_USE NS_IMETHOD OnServerClose(nsISupports *aContext, uint16_t aCode, const nsACString & aReason) override; 
      60             : 
      61             : /* Use this macro when declaring the members of this interface when the
      62             :    class doesn't implement the interface. This is useful for forwarding. */
      63             : #define NS_DECL_NON_VIRTUAL_NSIWEBSOCKETLISTENER \
      64             :   MOZ_MUST_USE nsresult OnStart(nsISupports *aContext); \
      65             :   MOZ_MUST_USE nsresult OnStop(nsISupports *aContext, nsresult aStatusCode); \
      66             :   MOZ_MUST_USE nsresult OnMessageAvailable(nsISupports *aContext, const nsACString & aMsg); \
      67             :   MOZ_MUST_USE nsresult OnBinaryMessageAvailable(nsISupports *aContext, const nsACString & aMsg); \
      68             :   MOZ_MUST_USE nsresult OnAcknowledge(nsISupports *aContext, uint32_t aSize); \
      69             :   MOZ_MUST_USE nsresult OnServerClose(nsISupports *aContext, uint16_t aCode, const nsACString & aReason); 
      70             : 
      71             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      72             : #define NS_FORWARD_NSIWEBSOCKETLISTENER(_to) \
      73             :   MOZ_MUST_USE NS_IMETHOD OnStart(nsISupports *aContext) override { return _to OnStart(aContext); } \
      74             :   MOZ_MUST_USE NS_IMETHOD OnStop(nsISupports *aContext, nsresult aStatusCode) override { return _to OnStop(aContext, aStatusCode); } \
      75             :   MOZ_MUST_USE NS_IMETHOD OnMessageAvailable(nsISupports *aContext, const nsACString & aMsg) override { return _to OnMessageAvailable(aContext, aMsg); } \
      76             :   MOZ_MUST_USE NS_IMETHOD OnBinaryMessageAvailable(nsISupports *aContext, const nsACString & aMsg) override { return _to OnBinaryMessageAvailable(aContext, aMsg); } \
      77             :   MOZ_MUST_USE NS_IMETHOD OnAcknowledge(nsISupports *aContext, uint32_t aSize) override { return _to OnAcknowledge(aContext, aSize); } \
      78             :   MOZ_MUST_USE NS_IMETHOD OnServerClose(nsISupports *aContext, uint16_t aCode, const nsACString & aReason) override { return _to OnServerClose(aContext, aCode, aReason); } 
      79             : 
      80             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      81             : #define NS_FORWARD_SAFE_NSIWEBSOCKETLISTENER(_to) \
      82             :   MOZ_MUST_USE NS_IMETHOD OnStart(nsISupports *aContext) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnStart(aContext); } \
      83             :   MOZ_MUST_USE NS_IMETHOD OnStop(nsISupports *aContext, nsresult aStatusCode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnStop(aContext, aStatusCode); } \
      84             :   MOZ_MUST_USE NS_IMETHOD OnMessageAvailable(nsISupports *aContext, const nsACString & aMsg) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnMessageAvailable(aContext, aMsg); } \
      85             :   MOZ_MUST_USE NS_IMETHOD OnBinaryMessageAvailable(nsISupports *aContext, const nsACString & aMsg) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnBinaryMessageAvailable(aContext, aMsg); } \
      86             :   MOZ_MUST_USE NS_IMETHOD OnAcknowledge(nsISupports *aContext, uint32_t aSize) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnAcknowledge(aContext, aSize); } \
      87             :   MOZ_MUST_USE NS_IMETHOD OnServerClose(nsISupports *aContext, uint16_t aCode, const nsACString & aReason) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnServerClose(aContext, aCode, aReason); } 
      88             : 
      89             : #if 0
      90             : /* Use the code below as a template for the implementation class for this interface. */
      91             : 
      92             : /* Header file */
      93             : class nsWebSocketListener : public nsIWebSocketListener
      94             : {
      95             : public:
      96             :   NS_DECL_ISUPPORTS
      97             :   NS_DECL_NSIWEBSOCKETLISTENER
      98             : 
      99             :   nsWebSocketListener();
     100             : 
     101             : private:
     102             :   ~nsWebSocketListener();
     103             : 
     104             : protected:
     105             :   /* additional members */
     106             : };
     107             : 
     108             : /* Implementation file */
     109             : NS_IMPL_ISUPPORTS(nsWebSocketListener, nsIWebSocketListener)
     110             : 
     111             : nsWebSocketListener::nsWebSocketListener()
     112             : {
     113             :   /* member initializers and constructor code */
     114             : }
     115             : 
     116             : nsWebSocketListener::~nsWebSocketListener()
     117             : {
     118             :   /* destructor code */
     119             : }
     120             : 
     121             : /* [must_use] void onStart (in nsISupports aContext); */
     122             : MOZ_MUST_USE NS_IMETHODIMP nsWebSocketListener::OnStart(nsISupports *aContext)
     123             : {
     124             :     return NS_ERROR_NOT_IMPLEMENTED;
     125             : }
     126             : 
     127             : /* [must_use] void onStop (in nsISupports aContext, in nsresult aStatusCode); */
     128             : MOZ_MUST_USE NS_IMETHODIMP nsWebSocketListener::OnStop(nsISupports *aContext, nsresult aStatusCode)
     129             : {
     130             :     return NS_ERROR_NOT_IMPLEMENTED;
     131             : }
     132             : 
     133             : /* [must_use] void onMessageAvailable (in nsISupports aContext, in AUTF8String aMsg); */
     134             : MOZ_MUST_USE NS_IMETHODIMP nsWebSocketListener::OnMessageAvailable(nsISupports *aContext, const nsACString & aMsg)
     135             : {
     136             :     return NS_ERROR_NOT_IMPLEMENTED;
     137             : }
     138             : 
     139             : /* [must_use] void onBinaryMessageAvailable (in nsISupports aContext, in ACString aMsg); */
     140             : MOZ_MUST_USE NS_IMETHODIMP nsWebSocketListener::OnBinaryMessageAvailable(nsISupports *aContext, const nsACString & aMsg)
     141             : {
     142             :     return NS_ERROR_NOT_IMPLEMENTED;
     143             : }
     144             : 
     145             : /* [must_use] void onAcknowledge (in nsISupports aContext, in uint32_t aSize); */
     146             : MOZ_MUST_USE NS_IMETHODIMP nsWebSocketListener::OnAcknowledge(nsISupports *aContext, uint32_t aSize)
     147             : {
     148             :     return NS_ERROR_NOT_IMPLEMENTED;
     149             : }
     150             : 
     151             : /* [must_use] void onServerClose (in nsISupports aContext, in unsigned short aCode, in AUTF8String aReason); */
     152             : MOZ_MUST_USE NS_IMETHODIMP nsWebSocketListener::OnServerClose(nsISupports *aContext, uint16_t aCode, const nsACString & aReason)
     153             : {
     154             :     return NS_ERROR_NOT_IMPLEMENTED;
     155             : }
     156             : 
     157             : /* End of implementation class template. */
     158             : #endif
     159             : 
     160             : 
     161             : #endif /* __gen_nsIWebSocketListener_h__ */

Generated by: LCOV version 1.13