/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl\nsIServiceWorkerManager.idl
 */

#ifndef __gen_nsIServiceWorkerManager_h__
#define __gen_nsIServiceWorkerManager_h__


#ifndef __gen_domstubs_h__
#include "domstubs.h"
#endif

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

class nsIURI; /* forward declaration */


/* starting interface:    nsIServiceWorkerManager */
#define NS_ISERVICEWORKERMANAGER_IID_STR "cc539f1e-1ce6-4af5-bf94-195b30bde010"

#define NS_ISERVICEWORKERMANAGER_IID \
  {0xcc539f1e, 0x1ce6, 0x4af5, \
    { 0xbf, 0x94, 0x19, 0x5b, 0x30, 0xbd, 0xe0, 0x10 }}

class NS_NO_VTABLE nsIServiceWorkerManager : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISERVICEWORKERMANAGER_IID)

  /* nsISupports register (in nsIDOMWindow aWindow, in DOMString aScope, in DOMString aScriptURI); */
  NS_IMETHOD Register(nsIDOMWindow *aWindow, const nsAString & aScope, const nsAString & aScriptURI, nsISupports * *_retval) = 0;

  /* nsISupports unregister (in nsIDOMWindow aWindow, in DOMString aScope); */
  NS_IMETHOD Unregister(nsIDOMWindow *aWindow, const nsAString & aScope, nsISupports * *_retval) = 0;

  /* [noscript] void AddContainerEventListener (in nsIURI aPageURI, in nsIDOMEventTarget aTarget); */
  NS_IMETHOD AddContainerEventListener(nsIURI *aPageURI, nsIDOMEventTarget *aTarget) = 0;

  /* [noscript] void RemoveContainerEventListener (in nsIURI aPageURI, in nsIDOMEventTarget aTarget); */
  NS_IMETHOD RemoveContainerEventListener(nsIURI *aPageURI, nsIDOMEventTarget *aTarget) = 0;

  /* [nostdcall,notxpcom] void MaybeStartControlling (in nsIDocument aDoc); */
  virtual void MaybeStartControlling(nsIDocument *aDoc) = 0;

  /* [nostdcall,notxpcom] void MaybeStopControlling (in nsIDocument aDoc); */
  virtual void MaybeStopControlling(nsIDocument *aDoc) = 0;

  /* [noscript] nsISupports GetInstalling (in nsIDOMWindow aWindow); */
  NS_IMETHOD GetInstalling(nsIDOMWindow *aWindow, nsISupports * *_retval) = 0;

  /* [noscript] nsISupports GetWaiting (in nsIDOMWindow aWindow); */
  NS_IMETHOD GetWaiting(nsIDOMWindow *aWindow, nsISupports * *_retval) = 0;

  /* [noscript] nsISupports GetActive (in nsIDOMWindow aWindow); */
  NS_IMETHOD GetActive(nsIDOMWindow *aWindow, nsISupports * *_retval) = 0;

  /* [noscript] nsISupports GetDocumentController (in nsIDOMWindow aWindow); */
  NS_IMETHOD GetDocumentController(nsIDOMWindow *aWindow, nsISupports * *_retval) = 0;

  /* DOMString getScopeForUrl (in DOMString path); */
  NS_IMETHOD GetScopeForUrl(const nsAString & path, nsAString & _retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIServiceWorkerManager, NS_ISERVICEWORKERMANAGER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSISERVICEWORKERMANAGER \
  NS_IMETHOD Register(nsIDOMWindow *aWindow, const nsAString & aScope, const nsAString & aScriptURI, nsISupports * *_retval); \
  NS_IMETHOD Unregister(nsIDOMWindow *aWindow, const nsAString & aScope, nsISupports * *_retval); \
  NS_IMETHOD AddContainerEventListener(nsIURI *aPageURI, nsIDOMEventTarget *aTarget); \
  NS_IMETHOD RemoveContainerEventListener(nsIURI *aPageURI, nsIDOMEventTarget *aTarget); \
  virtual void MaybeStartControlling(nsIDocument *aDoc); \
  virtual void MaybeStopControlling(nsIDocument *aDoc); \
  NS_IMETHOD GetInstalling(nsIDOMWindow *aWindow, nsISupports * *_retval); \
  NS_IMETHOD GetWaiting(nsIDOMWindow *aWindow, nsISupports * *_retval); \
  NS_IMETHOD GetActive(nsIDOMWindow *aWindow, nsISupports * *_retval); \
  NS_IMETHOD GetDocumentController(nsIDOMWindow *aWindow, nsISupports * *_retval); \
  NS_IMETHOD GetScopeForUrl(const nsAString & path, nsAString & _retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSISERVICEWORKERMANAGER(_to) \
  NS_IMETHOD Register(nsIDOMWindow *aWindow, const nsAString & aScope, const nsAString & aScriptURI, nsISupports * *_retval) { return _to Register(aWindow, aScope, aScriptURI, _retval); } \
  NS_IMETHOD Unregister(nsIDOMWindow *aWindow, const nsAString & aScope, nsISupports * *_retval) { return _to Unregister(aWindow, aScope, _retval); } \
  NS_IMETHOD AddContainerEventListener(nsIURI *aPageURI, nsIDOMEventTarget *aTarget) { return _to AddContainerEventListener(aPageURI, aTarget); } \
  NS_IMETHOD RemoveContainerEventListener(nsIURI *aPageURI, nsIDOMEventTarget *aTarget) { return _to RemoveContainerEventListener(aPageURI, aTarget); } \
  virtual void MaybeStartControlling(nsIDocument *aDoc) { return _to MaybeStartControlling(aDoc); } \
  virtual void MaybeStopControlling(nsIDocument *aDoc) { return _to MaybeStopControlling(aDoc); } \
  NS_IMETHOD GetInstalling(nsIDOMWindow *aWindow, nsISupports * *_retval) { return _to GetInstalling(aWindow, _retval); } \
  NS_IMETHOD GetWaiting(nsIDOMWindow *aWindow, nsISupports * *_retval) { return _to GetWaiting(aWindow, _retval); } \
  NS_IMETHOD GetActive(nsIDOMWindow *aWindow, nsISupports * *_retval) { return _to GetActive(aWindow, _retval); } \
  NS_IMETHOD GetDocumentController(nsIDOMWindow *aWindow, nsISupports * *_retval) { return _to GetDocumentController(aWindow, _retval); } \
  NS_IMETHOD GetScopeForUrl(const nsAString & path, nsAString & _retval) { return _to GetScopeForUrl(path, _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_NSISERVICEWORKERMANAGER(_to) \
  NS_IMETHOD Register(nsIDOMWindow *aWindow, const nsAString & aScope, const nsAString & aScriptURI, nsISupports * *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Register(aWindow, aScope, aScriptURI, _retval); } \
  NS_IMETHOD Unregister(nsIDOMWindow *aWindow, const nsAString & aScope, nsISupports * *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Unregister(aWindow, aScope, _retval); } \
  NS_IMETHOD AddContainerEventListener(nsIURI *aPageURI, nsIDOMEventTarget *aTarget) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddContainerEventListener(aPageURI, aTarget); } \
  NS_IMETHOD RemoveContainerEventListener(nsIURI *aPageURI, nsIDOMEventTarget *aTarget) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveContainerEventListener(aPageURI, aTarget); } \
  virtual void MaybeStartControlling(nsIDocument *aDoc); \
  virtual void MaybeStopControlling(nsIDocument *aDoc); \
  NS_IMETHOD GetInstalling(nsIDOMWindow *aWindow, nsISupports * *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInstalling(aWindow, _retval); } \
  NS_IMETHOD GetWaiting(nsIDOMWindow *aWindow, nsISupports * *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWaiting(aWindow, _retval); } \
  NS_IMETHOD GetActive(nsIDOMWindow *aWindow, nsISupports * *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetActive(aWindow, _retval); } \
  NS_IMETHOD GetDocumentController(nsIDOMWindow *aWindow, nsISupports * *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDocumentController(aWindow, _retval); } \
  NS_IMETHOD GetScopeForUrl(const nsAString & path, nsAString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetScopeForUrl(path, _retval); } 

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

/* Header file */
class nsServiceWorkerManager : public nsIServiceWorkerManager
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSISERVICEWORKERMANAGER

  nsServiceWorkerManager();

private:
  ~nsServiceWorkerManager();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsServiceWorkerManager, nsIServiceWorkerManager)

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

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

/* nsISupports register (in nsIDOMWindow aWindow, in DOMString aScope, in DOMString aScriptURI); */
NS_IMETHODIMP nsServiceWorkerManager::Register(nsIDOMWindow *aWindow, const nsAString & aScope, const nsAString & aScriptURI, nsISupports * *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* nsISupports unregister (in nsIDOMWindow aWindow, in DOMString aScope); */
NS_IMETHODIMP nsServiceWorkerManager::Unregister(nsIDOMWindow *aWindow, const nsAString & aScope, nsISupports * *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [noscript] void AddContainerEventListener (in nsIURI aPageURI, in nsIDOMEventTarget aTarget); */
NS_IMETHODIMP nsServiceWorkerManager::AddContainerEventListener(nsIURI *aPageURI, nsIDOMEventTarget *aTarget)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [noscript] void RemoveContainerEventListener (in nsIURI aPageURI, in nsIDOMEventTarget aTarget); */
NS_IMETHODIMP nsServiceWorkerManager::RemoveContainerEventListener(nsIURI *aPageURI, nsIDOMEventTarget *aTarget)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [nostdcall,notxpcom] void MaybeStartControlling (in nsIDocument aDoc); */
void nsServiceWorkerManager::MaybeStartControlling(nsIDocument *aDoc)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [nostdcall,notxpcom] void MaybeStopControlling (in nsIDocument aDoc); */
void nsServiceWorkerManager::MaybeStopControlling(nsIDocument *aDoc)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [noscript] nsISupports GetInstalling (in nsIDOMWindow aWindow); */
NS_IMETHODIMP nsServiceWorkerManager::GetInstalling(nsIDOMWindow *aWindow, nsISupports * *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [noscript] nsISupports GetWaiting (in nsIDOMWindow aWindow); */
NS_IMETHODIMP nsServiceWorkerManager::GetWaiting(nsIDOMWindow *aWindow, nsISupports * *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [noscript] nsISupports GetActive (in nsIDOMWindow aWindow); */
NS_IMETHODIMP nsServiceWorkerManager::GetActive(nsIDOMWindow *aWindow, nsISupports * *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [noscript] nsISupports GetDocumentController (in nsIDOMWindow aWindow); */
NS_IMETHODIMP nsServiceWorkerManager::GetDocumentController(nsIDOMWindow *aWindow, nsISupports * *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* DOMString getScopeForUrl (in DOMString path); */
NS_IMETHODIMP nsServiceWorkerManager::GetScopeForUrl(const nsAString & path, nsAString & _retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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

#define SERVICEWORKERMANAGER_CONTRACTID "@mozilla.org/serviceworkers/manager;1"

#endif /* __gen_nsIServiceWorkerManager_h__ */
