/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM $SRCDIR/netwerk/protocol/websocket/nsIWebSocketProtocolHandler.idl
 */

#ifndef __gen_nsIWebSocketProtocolHandler_h__
#define __gen_nsIWebSocketProtocolHandler_h__


#include "nsIProtocolHandler.h"

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIWebSocketChannel; /* forward declaration */


/* starting interface:    nsIWebSocketProtocolHandler */
#define NS_IWEBSOCKETPROTOCOLHANDLER_IID_STR "35683115-5964-42aa-a02f-b82852452cdc"

#define NS_IWEBSOCKETPROTOCOLHANDLER_IID \
  {0x35683115, 0x5964, 0x42aa, \
    { 0xa0, 0x2f, 0xb8, 0x28, 0x52, 0x45, 0x2c, 0xdc }}

class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsIWebSocketProtocolHandler) nsIWebSocketProtocolHandler : public nsIProtocolHandler {
 public:

  NS_INLINE_DECL_STATIC_IID(NS_IWEBSOCKETPROTOCOLHANDLER_IID)

  /* Used by ToJSValue to check which scriptable interface is implemented. */
  using ScriptableInterfaceType = nsIWebSocketProtocolHandler;

  /* nsIWebSocketChannel newWebSocketChannel (); */
  MOZ_BINDING(binding_to, idl, method, XPIDL_nsIWebSocketProtocolHandler_newWebSocketChannel)
  NS_IMETHOD NewWebSocketChannel(nsIWebSocketChannel **_retval) = 0;

};


/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIWEBSOCKETPROTOCOLHANDLER \
  NS_IMETHOD NewWebSocketChannel(nsIWebSocketChannel **_retval) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSIWEBSOCKETPROTOCOLHANDLER \
  MOZ_BINDING(binding_to, idl, method, XPIDL_nsIWebSocketProtocolHandler_newWebSocketChannel)\
  nsresult NewWebSocketChannel(nsIWebSocketChannel **_retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIWEBSOCKETPROTOCOLHANDLER(_to) \
  NS_IMETHOD NewWebSocketChannel(nsIWebSocketChannel **_retval) override { return _to NewWebSocketChannel(_retval); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIWEBSOCKETPROTOCOLHANDLER(_to) \
  NS_IMETHOD NewWebSocketChannel(nsIWebSocketChannel **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NewWebSocketChannel(_retval); } 


#endif /* __gen_nsIWebSocketProtocolHandler_h__ */
