/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIDOMWorkers.idl
 */

#ifndef __gen_nsIDOMWorkers_h__
#define __gen_nsIDOMWorkers_h__


#ifndef __gen_nsIDOMEvent_h__
#include "nsIDOMEvent.h"
#endif

#ifndef __gen_nsIDOMEventTarget_h__
#include "nsIDOMEventTarget.h"
#endif

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


/* starting interface:    nsIWorkerMessagePort */
#define NS_IWORKERMESSAGEPORT_IID_STR "ab3725b8-3fca-40cc-a42c-92fb154ef01d"

#define NS_IWORKERMESSAGEPORT_IID \
  {0xab3725b8, 0x3fca, 0x40cc, \
    { 0xa4, 0x2c, 0x92, 0xfb, 0x15, 0x4e, 0xf0, 0x1d }}

class NS_NO_VTABLE NS_SCRIPTABLE nsIWorkerMessagePort : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IWORKERMESSAGEPORT_IID)

  /* void postMessage (); */
  NS_SCRIPTABLE NS_IMETHOD PostMessage(void) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIWorkerMessagePort, NS_IWORKERMESSAGEPORT_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIWORKERMESSAGEPORT \
  NS_SCRIPTABLE NS_IMETHOD PostMessage(void); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIWORKERMESSAGEPORT(_to) \
  NS_SCRIPTABLE NS_IMETHOD PostMessage(void) { return _to PostMessage(); } 

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

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsWorkerMessagePort : public nsIWorkerMessagePort
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIWORKERMESSAGEPORT

  nsWorkerMessagePort();

private:
  ~nsWorkerMessagePort();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsWorkerMessagePort, nsIWorkerMessagePort)

nsWorkerMessagePort::nsWorkerMessagePort()
{
  /* member initializers and constructor code */
}

nsWorkerMessagePort::~nsWorkerMessagePort()
{
  /* destructor code */
}

/* void postMessage (); */
NS_IMETHODIMP nsWorkerMessagePort::PostMessage()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif


/* starting interface:    nsIWorkerMessageEvent */
#define NS_IWORKERMESSAGEEVENT_IID_STR "508f2d49-e9a0-4fe8-bd33-321820173b4a"

#define NS_IWORKERMESSAGEEVENT_IID \
  {0x508f2d49, 0xe9a0, 0x4fe8, \
    { 0xbd, 0x33, 0x32, 0x18, 0x20, 0x17, 0x3b, 0x4a }}

class NS_NO_VTABLE NS_SCRIPTABLE nsIWorkerMessageEvent : public nsIDOMEvent {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IWORKERMESSAGEEVENT_IID)

  /* readonly attribute DOMString data; */
  NS_SCRIPTABLE NS_IMETHOD GetData(nsAString & aData) = 0;

  /* readonly attribute DOMString origin; */
  NS_SCRIPTABLE NS_IMETHOD GetOrigin(nsAString & aOrigin) = 0;

  /* readonly attribute nsISupports source; */
  NS_SCRIPTABLE NS_IMETHOD GetSource(nsISupports * *aSource) = 0;

  /* void initMessageEvent (in DOMString aTypeArg, in boolean aCanBubbleArg, in boolean aCancelableArg, in DOMString aDataArg, in DOMString aOriginArg, in nsISupports aSourceArg); */
  NS_SCRIPTABLE NS_IMETHOD InitMessageEvent(const nsAString & aTypeArg, PRBool aCanBubbleArg, PRBool aCancelableArg, const nsAString & aDataArg, const nsAString & aOriginArg, nsISupports *aSourceArg) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIWorkerMessageEvent, NS_IWORKERMESSAGEEVENT_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIWORKERMESSAGEEVENT \
  NS_SCRIPTABLE NS_IMETHOD GetData(nsAString & aData); \
  NS_SCRIPTABLE NS_IMETHOD GetOrigin(nsAString & aOrigin); \
  NS_SCRIPTABLE NS_IMETHOD GetSource(nsISupports * *aSource); \
  NS_SCRIPTABLE NS_IMETHOD InitMessageEvent(const nsAString & aTypeArg, PRBool aCanBubbleArg, PRBool aCancelableArg, const nsAString & aDataArg, const nsAString & aOriginArg, nsISupports *aSourceArg); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIWORKERMESSAGEEVENT(_to) \
  NS_SCRIPTABLE NS_IMETHOD GetData(nsAString & aData) { return _to GetData(aData); } \
  NS_SCRIPTABLE NS_IMETHOD GetOrigin(nsAString & aOrigin) { return _to GetOrigin(aOrigin); } \
  NS_SCRIPTABLE NS_IMETHOD GetSource(nsISupports * *aSource) { return _to GetSource(aSource); } \
  NS_SCRIPTABLE NS_IMETHOD InitMessageEvent(const nsAString & aTypeArg, PRBool aCanBubbleArg, PRBool aCancelableArg, const nsAString & aDataArg, const nsAString & aOriginArg, nsISupports *aSourceArg) { return _to InitMessageEvent(aTypeArg, aCanBubbleArg, aCancelableArg, aDataArg, aOriginArg, aSourceArg); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIWORKERMESSAGEEVENT(_to) \
  NS_SCRIPTABLE NS_IMETHOD GetData(nsAString & aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \
  NS_SCRIPTABLE NS_IMETHOD GetOrigin(nsAString & aOrigin) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOrigin(aOrigin); } \
  NS_SCRIPTABLE NS_IMETHOD GetSource(nsISupports * *aSource) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSource(aSource); } \
  NS_SCRIPTABLE NS_IMETHOD InitMessageEvent(const nsAString & aTypeArg, PRBool aCanBubbleArg, PRBool aCancelableArg, const nsAString & aDataArg, const nsAString & aOriginArg, nsISupports *aSourceArg) { return !_to ? NS_ERROR_NULL_POINTER : _to->InitMessageEvent(aTypeArg, aCanBubbleArg, aCancelableArg, aDataArg, aOriginArg, aSourceArg); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsWorkerMessageEvent : public nsIWorkerMessageEvent
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIWORKERMESSAGEEVENT

  nsWorkerMessageEvent();

private:
  ~nsWorkerMessageEvent();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsWorkerMessageEvent, nsIWorkerMessageEvent)

nsWorkerMessageEvent::nsWorkerMessageEvent()
{
  /* member initializers and constructor code */
}

nsWorkerMessageEvent::~nsWorkerMessageEvent()
{
  /* destructor code */
}

/* readonly attribute DOMString data; */
NS_IMETHODIMP nsWorkerMessageEvent::GetData(nsAString & aData)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute DOMString origin; */
NS_IMETHODIMP nsWorkerMessageEvent::GetOrigin(nsAString & aOrigin)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsISupports source; */
NS_IMETHODIMP nsWorkerMessageEvent::GetSource(nsISupports * *aSource)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void initMessageEvent (in DOMString aTypeArg, in boolean aCanBubbleArg, in boolean aCancelableArg, in DOMString aDataArg, in DOMString aOriginArg, in nsISupports aSourceArg); */
NS_IMETHODIMP nsWorkerMessageEvent::InitMessageEvent(const nsAString & aTypeArg, PRBool aCanBubbleArg, PRBool aCancelableArg, const nsAString & aDataArg, const nsAString & aOriginArg, nsISupports *aSourceArg)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif


/* starting interface:    nsIWorkerErrorEvent */
#define NS_IWORKERERROREVENT_IID_STR "73d82c1d-05de-49c9-a23b-7121ff09a67a"

#define NS_IWORKERERROREVENT_IID \
  {0x73d82c1d, 0x05de, 0x49c9, \
    { 0xa2, 0x3b, 0x71, 0x21, 0xff, 0x09, 0xa6, 0x7a }}

class NS_NO_VTABLE NS_SCRIPTABLE nsIWorkerErrorEvent : public nsIDOMEvent {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IWORKERERROREVENT_IID)

  /* readonly attribute DOMString message; */
  NS_SCRIPTABLE NS_IMETHOD GetMessage(nsAString & aMessage) = 0;

  /* readonly attribute DOMString filename; */
  NS_SCRIPTABLE NS_IMETHOD GetFilename(nsAString & aFilename) = 0;

  /* readonly attribute unsigned long lineno; */
  NS_SCRIPTABLE NS_IMETHOD GetLineno(PRUint32 *aLineno) = 0;

  /* void initErrorEvent (in DOMString aTypeArg, in boolean aCanBubbleArg, in boolean aCancelableArg, in DOMString aMessageArg, in DOMString aFilenameArg, in unsigned long aLinenoArg); */
  NS_SCRIPTABLE NS_IMETHOD InitErrorEvent(const nsAString & aTypeArg, PRBool aCanBubbleArg, PRBool aCancelableArg, const nsAString & aMessageArg, const nsAString & aFilenameArg, PRUint32 aLinenoArg) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIWorkerErrorEvent, NS_IWORKERERROREVENT_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIWORKERERROREVENT \
  NS_SCRIPTABLE NS_IMETHOD GetMessage(nsAString & aMessage); \
  NS_SCRIPTABLE NS_IMETHOD GetFilename(nsAString & aFilename); \
  NS_SCRIPTABLE NS_IMETHOD GetLineno(PRUint32 *aLineno); \
  NS_SCRIPTABLE NS_IMETHOD InitErrorEvent(const nsAString & aTypeArg, PRBool aCanBubbleArg, PRBool aCancelableArg, const nsAString & aMessageArg, const nsAString & aFilenameArg, PRUint32 aLinenoArg); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIWORKERERROREVENT(_to) \
  NS_SCRIPTABLE NS_IMETHOD GetMessage(nsAString & aMessage) { return _to GetMessage(aMessage); } \
  NS_SCRIPTABLE NS_IMETHOD GetFilename(nsAString & aFilename) { return _to GetFilename(aFilename); } \
  NS_SCRIPTABLE NS_IMETHOD GetLineno(PRUint32 *aLineno) { return _to GetLineno(aLineno); } \
  NS_SCRIPTABLE NS_IMETHOD InitErrorEvent(const nsAString & aTypeArg, PRBool aCanBubbleArg, PRBool aCancelableArg, const nsAString & aMessageArg, const nsAString & aFilenameArg, PRUint32 aLinenoArg) { return _to InitErrorEvent(aTypeArg, aCanBubbleArg, aCancelableArg, aMessageArg, aFilenameArg, aLinenoArg); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIWORKERERROREVENT(_to) \
  NS_SCRIPTABLE NS_IMETHOD GetMessage(nsAString & aMessage) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMessage(aMessage); } \
  NS_SCRIPTABLE NS_IMETHOD GetFilename(nsAString & aFilename) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFilename(aFilename); } \
  NS_SCRIPTABLE NS_IMETHOD GetLineno(PRUint32 *aLineno) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLineno(aLineno); } \
  NS_SCRIPTABLE NS_IMETHOD InitErrorEvent(const nsAString & aTypeArg, PRBool aCanBubbleArg, PRBool aCancelableArg, const nsAString & aMessageArg, const nsAString & aFilenameArg, PRUint32 aLinenoArg) { return !_to ? NS_ERROR_NULL_POINTER : _to->InitErrorEvent(aTypeArg, aCanBubbleArg, aCancelableArg, aMessageArg, aFilenameArg, aLinenoArg); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsWorkerErrorEvent : public nsIWorkerErrorEvent
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIWORKERERROREVENT

  nsWorkerErrorEvent();

private:
  ~nsWorkerErrorEvent();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsWorkerErrorEvent, nsIWorkerErrorEvent)

nsWorkerErrorEvent::nsWorkerErrorEvent()
{
  /* member initializers and constructor code */
}

nsWorkerErrorEvent::~nsWorkerErrorEvent()
{
  /* destructor code */
}

/* readonly attribute DOMString message; */
NS_IMETHODIMP nsWorkerErrorEvent::GetMessage(nsAString & aMessage)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute DOMString filename; */
NS_IMETHODIMP nsWorkerErrorEvent::GetFilename(nsAString & aFilename)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute unsigned long lineno; */
NS_IMETHODIMP nsWorkerErrorEvent::GetLineno(PRUint32 *aLineno)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void initErrorEvent (in DOMString aTypeArg, in boolean aCanBubbleArg, in boolean aCancelableArg, in DOMString aMessageArg, in DOMString aFilenameArg, in unsigned long aLinenoArg); */
NS_IMETHODIMP nsWorkerErrorEvent::InitErrorEvent(const nsAString & aTypeArg, PRBool aCanBubbleArg, PRBool aCancelableArg, const nsAString & aMessageArg, const nsAString & aFilenameArg, PRUint32 aLinenoArg)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif


/* starting interface:    nsIWorkerNavigator */
#define NS_IWORKERNAVIGATOR_IID_STR "74fb665a-e477-4ce2-b3c6-c58b1b28b6c3"

#define NS_IWORKERNAVIGATOR_IID \
  {0x74fb665a, 0xe477, 0x4ce2, \
    { 0xb3, 0xc6, 0xc5, 0x8b, 0x1b, 0x28, 0xb6, 0xc3 }}

class NS_NO_VTABLE NS_SCRIPTABLE nsIWorkerNavigator : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IWORKERNAVIGATOR_IID)

  /* readonly attribute DOMString appName; */
  NS_SCRIPTABLE NS_IMETHOD GetAppName(nsAString & aAppName) = 0;

  /* readonly attribute DOMString appVersion; */
  NS_SCRIPTABLE NS_IMETHOD GetAppVersion(nsAString & aAppVersion) = 0;

  /* readonly attribute DOMString platform; */
  NS_SCRIPTABLE NS_IMETHOD GetPlatform(nsAString & aPlatform) = 0;

  /* readonly attribute DOMString userAgent; */
  NS_SCRIPTABLE NS_IMETHOD GetUserAgent(nsAString & aUserAgent) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIWorkerNavigator, NS_IWORKERNAVIGATOR_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIWORKERNAVIGATOR \
  NS_SCRIPTABLE NS_IMETHOD GetAppName(nsAString & aAppName); \
  NS_SCRIPTABLE NS_IMETHOD GetAppVersion(nsAString & aAppVersion); \
  NS_SCRIPTABLE NS_IMETHOD GetPlatform(nsAString & aPlatform); \
  NS_SCRIPTABLE NS_IMETHOD GetUserAgent(nsAString & aUserAgent); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIWORKERNAVIGATOR(_to) \
  NS_SCRIPTABLE NS_IMETHOD GetAppName(nsAString & aAppName) { return _to GetAppName(aAppName); } \
  NS_SCRIPTABLE NS_IMETHOD GetAppVersion(nsAString & aAppVersion) { return _to GetAppVersion(aAppVersion); } \
  NS_SCRIPTABLE NS_IMETHOD GetPlatform(nsAString & aPlatform) { return _to GetPlatform(aPlatform); } \
  NS_SCRIPTABLE NS_IMETHOD GetUserAgent(nsAString & aUserAgent) { return _to GetUserAgent(aUserAgent); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIWORKERNAVIGATOR(_to) \
  NS_SCRIPTABLE NS_IMETHOD GetAppName(nsAString & aAppName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAppName(aAppName); } \
  NS_SCRIPTABLE NS_IMETHOD GetAppVersion(nsAString & aAppVersion) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAppVersion(aAppVersion); } \
  NS_SCRIPTABLE NS_IMETHOD GetPlatform(nsAString & aPlatform) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPlatform(aPlatform); } \
  NS_SCRIPTABLE NS_IMETHOD GetUserAgent(nsAString & aUserAgent) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUserAgent(aUserAgent); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsWorkerNavigator : public nsIWorkerNavigator
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIWORKERNAVIGATOR

  nsWorkerNavigator();

private:
  ~nsWorkerNavigator();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsWorkerNavigator, nsIWorkerNavigator)

nsWorkerNavigator::nsWorkerNavigator()
{
  /* member initializers and constructor code */
}

nsWorkerNavigator::~nsWorkerNavigator()
{
  /* destructor code */
}

/* readonly attribute DOMString appName; */
NS_IMETHODIMP nsWorkerNavigator::GetAppName(nsAString & aAppName)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute DOMString appVersion; */
NS_IMETHODIMP nsWorkerNavigator::GetAppVersion(nsAString & aAppVersion)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute DOMString platform; */
NS_IMETHODIMP nsWorkerNavigator::GetPlatform(nsAString & aPlatform)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute DOMString userAgent; */
NS_IMETHODIMP nsWorkerNavigator::GetUserAgent(nsAString & aUserAgent)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif


/* starting interface:    nsIWorkerGlobalScope */
#define NS_IWORKERGLOBALSCOPE_IID_STR "d7d7cf59-6c8a-4598-8753-630953ae7409"

#define NS_IWORKERGLOBALSCOPE_IID \
  {0xd7d7cf59, 0x6c8a, 0x4598, \
    { 0x87, 0x53, 0x63, 0x09, 0x53, 0xae, 0x74, 0x09 }}

class NS_NO_VTABLE NS_SCRIPTABLE nsIWorkerGlobalScope : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IWORKERGLOBALSCOPE_IID)

  /* readonly attribute nsIWorkerGlobalScope self; */
  NS_SCRIPTABLE NS_IMETHOD GetSelf(nsIWorkerGlobalScope * *aSelf) = 0;

  /* readonly attribute nsIWorkerNavigator navigator; */
  NS_SCRIPTABLE NS_IMETHOD GetNavigator(nsIWorkerNavigator * *aNavigator) = 0;

  /* attribute nsIDOMEventListener onerror; */
  NS_SCRIPTABLE NS_IMETHOD GetOnerror(nsIDOMEventListener * *aOnerror) = 0;
  NS_SCRIPTABLE NS_IMETHOD SetOnerror(nsIDOMEventListener * aOnerror) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIWorkerGlobalScope, NS_IWORKERGLOBALSCOPE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIWORKERGLOBALSCOPE \
  NS_SCRIPTABLE NS_IMETHOD GetSelf(nsIWorkerGlobalScope * *aSelf); \
  NS_SCRIPTABLE NS_IMETHOD GetNavigator(nsIWorkerNavigator * *aNavigator); \
  NS_SCRIPTABLE NS_IMETHOD GetOnerror(nsIDOMEventListener * *aOnerror); \
  NS_SCRIPTABLE NS_IMETHOD SetOnerror(nsIDOMEventListener * aOnerror); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIWORKERGLOBALSCOPE(_to) \
  NS_SCRIPTABLE NS_IMETHOD GetSelf(nsIWorkerGlobalScope * *aSelf) { return _to GetSelf(aSelf); } \
  NS_SCRIPTABLE NS_IMETHOD GetNavigator(nsIWorkerNavigator * *aNavigator) { return _to GetNavigator(aNavigator); } \
  NS_SCRIPTABLE NS_IMETHOD GetOnerror(nsIDOMEventListener * *aOnerror) { return _to GetOnerror(aOnerror); } \
  NS_SCRIPTABLE NS_IMETHOD SetOnerror(nsIDOMEventListener * aOnerror) { return _to SetOnerror(aOnerror); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIWORKERGLOBALSCOPE(_to) \
  NS_SCRIPTABLE NS_IMETHOD GetSelf(nsIWorkerGlobalScope * *aSelf) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelf(aSelf); } \
  NS_SCRIPTABLE NS_IMETHOD GetNavigator(nsIWorkerNavigator * *aNavigator) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNavigator(aNavigator); } \
  NS_SCRIPTABLE NS_IMETHOD GetOnerror(nsIDOMEventListener * *aOnerror) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOnerror(aOnerror); } \
  NS_SCRIPTABLE NS_IMETHOD SetOnerror(nsIDOMEventListener * aOnerror) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOnerror(aOnerror); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsWorkerGlobalScope : public nsIWorkerGlobalScope
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIWORKERGLOBALSCOPE

  nsWorkerGlobalScope();

private:
  ~nsWorkerGlobalScope();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsWorkerGlobalScope, nsIWorkerGlobalScope)

nsWorkerGlobalScope::nsWorkerGlobalScope()
{
  /* member initializers and constructor code */
}

nsWorkerGlobalScope::~nsWorkerGlobalScope()
{
  /* destructor code */
}

/* readonly attribute nsIWorkerGlobalScope self; */
NS_IMETHODIMP nsWorkerGlobalScope::GetSelf(nsIWorkerGlobalScope * *aSelf)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsIWorkerNavigator navigator; */
NS_IMETHODIMP nsWorkerGlobalScope::GetNavigator(nsIWorkerNavigator * *aNavigator)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute nsIDOMEventListener onerror; */
NS_IMETHODIMP nsWorkerGlobalScope::GetOnerror(nsIDOMEventListener * *aOnerror)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsWorkerGlobalScope::SetOnerror(nsIDOMEventListener * aOnerror)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif


/* starting interface:    nsIWorkerScope */
#define NS_IWORKERSCOPE_IID_STR "d30a2f61-86e2-434e-837f-4f1985efa865"

#define NS_IWORKERSCOPE_IID \
  {0xd30a2f61, 0x86e2, 0x434e, \
    { 0x83, 0x7f, 0x4f, 0x19, 0x85, 0xef, 0xa8, 0x65 }}

class NS_NO_VTABLE NS_SCRIPTABLE nsIWorkerScope : public nsIWorkerGlobalScope {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IWORKERSCOPE_IID)

  /* void postMessage (); */
  NS_SCRIPTABLE NS_IMETHOD PostMessage(void) = 0;

  /* attribute nsIDOMEventListener onmessage; */
  NS_SCRIPTABLE NS_IMETHOD GetOnmessage(nsIDOMEventListener * *aOnmessage) = 0;
  NS_SCRIPTABLE NS_IMETHOD SetOnmessage(nsIDOMEventListener * aOnmessage) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIWorkerScope, NS_IWORKERSCOPE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIWORKERSCOPE \
  NS_SCRIPTABLE NS_IMETHOD PostMessage(void); \
  NS_SCRIPTABLE NS_IMETHOD GetOnmessage(nsIDOMEventListener * *aOnmessage); \
  NS_SCRIPTABLE NS_IMETHOD SetOnmessage(nsIDOMEventListener * aOnmessage); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIWORKERSCOPE(_to) \
  NS_SCRIPTABLE NS_IMETHOD PostMessage(void) { return _to PostMessage(); } \
  NS_SCRIPTABLE NS_IMETHOD GetOnmessage(nsIDOMEventListener * *aOnmessage) { return _to GetOnmessage(aOnmessage); } \
  NS_SCRIPTABLE NS_IMETHOD SetOnmessage(nsIDOMEventListener * aOnmessage) { return _to SetOnmessage(aOnmessage); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIWORKERSCOPE(_to) \
  NS_SCRIPTABLE NS_IMETHOD PostMessage(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->PostMessage(); } \
  NS_SCRIPTABLE NS_IMETHOD GetOnmessage(nsIDOMEventListener * *aOnmessage) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOnmessage(aOnmessage); } \
  NS_SCRIPTABLE NS_IMETHOD SetOnmessage(nsIDOMEventListener * aOnmessage) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOnmessage(aOnmessage); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsWorkerScope : public nsIWorkerScope
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIWORKERSCOPE

  nsWorkerScope();

private:
  ~nsWorkerScope();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsWorkerScope, nsIWorkerScope)

nsWorkerScope::nsWorkerScope()
{
  /* member initializers and constructor code */
}

nsWorkerScope::~nsWorkerScope()
{
  /* destructor code */
}

/* void postMessage (); */
NS_IMETHODIMP nsWorkerScope::PostMessage()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute nsIDOMEventListener onmessage; */
NS_IMETHODIMP nsWorkerScope::GetOnmessage(nsIDOMEventListener * *aOnmessage)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsWorkerScope::SetOnmessage(nsIDOMEventListener * aOnmessage)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif


/* starting interface:    nsIAbstractWorker */
#define NS_IABSTRACTWORKER_IID_STR "b90b7561-b5e2-4545-84b0-280dbaaa94ea"

#define NS_IABSTRACTWORKER_IID \
  {0xb90b7561, 0xb5e2, 0x4545, \
    { 0x84, 0xb0, 0x28, 0x0d, 0xba, 0xaa, 0x94, 0xea }}

class NS_NO_VTABLE NS_SCRIPTABLE nsIAbstractWorker : public nsIDOMEventTarget {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IABSTRACTWORKER_IID)

  /* attribute nsIDOMEventListener onerror; */
  NS_SCRIPTABLE NS_IMETHOD GetOnerror(nsIDOMEventListener * *aOnerror) = 0;
  NS_SCRIPTABLE NS_IMETHOD SetOnerror(nsIDOMEventListener * aOnerror) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIAbstractWorker, NS_IABSTRACTWORKER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIABSTRACTWORKER \
  NS_SCRIPTABLE NS_IMETHOD GetOnerror(nsIDOMEventListener * *aOnerror); \
  NS_SCRIPTABLE NS_IMETHOD SetOnerror(nsIDOMEventListener * aOnerror); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIABSTRACTWORKER(_to) \
  NS_SCRIPTABLE NS_IMETHOD GetOnerror(nsIDOMEventListener * *aOnerror) { return _to GetOnerror(aOnerror); } \
  NS_SCRIPTABLE NS_IMETHOD SetOnerror(nsIDOMEventListener * aOnerror) { return _to SetOnerror(aOnerror); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIABSTRACTWORKER(_to) \
  NS_SCRIPTABLE NS_IMETHOD GetOnerror(nsIDOMEventListener * *aOnerror) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOnerror(aOnerror); } \
  NS_SCRIPTABLE NS_IMETHOD SetOnerror(nsIDOMEventListener * aOnerror) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOnerror(aOnerror); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsAbstractWorker : public nsIAbstractWorker
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIABSTRACTWORKER

  nsAbstractWorker();

private:
  ~nsAbstractWorker();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsAbstractWorker, nsIAbstractWorker)

nsAbstractWorker::nsAbstractWorker()
{
  /* member initializers and constructor code */
}

nsAbstractWorker::~nsAbstractWorker()
{
  /* destructor code */
}

/* attribute nsIDOMEventListener onerror; */
NS_IMETHODIMP nsAbstractWorker::GetOnerror(nsIDOMEventListener * *aOnerror)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsAbstractWorker::SetOnerror(nsIDOMEventListener * aOnerror)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif


/* starting interface:    nsIWorker */
#define NS_IWORKER_IID_STR "daf945c3-8d29-4724-8939-dd383f7d27a7"

#define NS_IWORKER_IID \
  {0xdaf945c3, 0x8d29, 0x4724, \
    { 0x89, 0x39, 0xdd, 0x38, 0x3f, 0x7d, 0x27, 0xa7 }}

class NS_NO_VTABLE NS_SCRIPTABLE nsIWorker : public nsIAbstractWorker {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IWORKER_IID)

  /* void postMessage (); */
  NS_SCRIPTABLE NS_IMETHOD PostMessage(void) = 0;

  /* attribute nsIDOMEventListener onmessage; */
  NS_SCRIPTABLE NS_IMETHOD GetOnmessage(nsIDOMEventListener * *aOnmessage) = 0;
  NS_SCRIPTABLE NS_IMETHOD SetOnmessage(nsIDOMEventListener * aOnmessage) = 0;

  /* void terminate (); */
  NS_SCRIPTABLE NS_IMETHOD Terminate(void) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIWorker, NS_IWORKER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIWORKER \
  NS_SCRIPTABLE NS_IMETHOD PostMessage(void); \
  NS_SCRIPTABLE NS_IMETHOD GetOnmessage(nsIDOMEventListener * *aOnmessage); \
  NS_SCRIPTABLE NS_IMETHOD SetOnmessage(nsIDOMEventListener * aOnmessage); \
  NS_SCRIPTABLE NS_IMETHOD Terminate(void); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIWORKER(_to) \
  NS_SCRIPTABLE NS_IMETHOD PostMessage(void) { return _to PostMessage(); } \
  NS_SCRIPTABLE NS_IMETHOD GetOnmessage(nsIDOMEventListener * *aOnmessage) { return _to GetOnmessage(aOnmessage); } \
  NS_SCRIPTABLE NS_IMETHOD SetOnmessage(nsIDOMEventListener * aOnmessage) { return _to SetOnmessage(aOnmessage); } \
  NS_SCRIPTABLE NS_IMETHOD Terminate(void) { return _to Terminate(); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIWORKER(_to) \
  NS_SCRIPTABLE NS_IMETHOD PostMessage(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->PostMessage(); } \
  NS_SCRIPTABLE NS_IMETHOD GetOnmessage(nsIDOMEventListener * *aOnmessage) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOnmessage(aOnmessage); } \
  NS_SCRIPTABLE NS_IMETHOD SetOnmessage(nsIDOMEventListener * aOnmessage) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOnmessage(aOnmessage); } \
  NS_SCRIPTABLE NS_IMETHOD Terminate(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Terminate(); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsWorker : public nsIWorker
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIWORKER

  nsWorker();

private:
  ~nsWorker();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsWorker, nsIWorker)

nsWorker::nsWorker()
{
  /* member initializers and constructor code */
}

nsWorker::~nsWorker()
{
  /* destructor code */
}

/* void postMessage (); */
NS_IMETHODIMP nsWorker::PostMessage()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute nsIDOMEventListener onmessage; */
NS_IMETHODIMP nsWorker::GetOnmessage(nsIDOMEventListener * *aOnmessage)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsWorker::SetOnmessage(nsIDOMEventListener * aOnmessage)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void terminate (); */
NS_IMETHODIMP nsWorker::Terminate()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif


#endif /* __gen_nsIDOMWorkers_h__ */
