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

#ifndef __gen_nsISyncLoader_h__
#define __gen_nsISyncLoader_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif

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

class nsIDocument; /* forward declaration */

class nsIDOMDocument; /* forward declaration */


/* starting interface:    nsISyncLoader */
#define NS_ISYNCLOADER_IID_STR "bb159fcc-1dd1-11b2-91ad-c71866a10fd4"

#define NS_ISYNCLOADER_IID \
  {0xbb159fcc, 0x1dd1, 0x11b2, \
    { 0x91, 0xad, 0xc7, 0x18, 0x66, 0xa1, 0x0f, 0xd4 }}

/**
 * The nsISyncLoader interface can be used to synchronously load
 * a document.
 */
class NS_NO_VTABLE nsISyncLoader : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISYNCLOADER_IID)

  /**
     * Synchronously load the document specified in documentURI.
     *
     * @param documentURI The URI of the document to load.
     * @param aLoader The document that is trying to load this document.
     *
     * @returns The document loaded from the URI.
     */
  /* nsIDOMDocument loadDocument (in nsIURI aDocumentURI, in nsIDocument aLoader); */
  NS_IMETHOD LoadDocument(nsIURI *aDocumentURI, nsIDocument *aLoader, nsIDOMDocument **_retval) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSISYNCLOADER \
  NS_IMETHOD LoadDocument(nsIURI *aDocumentURI, nsIDocument *aLoader, nsIDOMDocument **_retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSISYNCLOADER(_to) \
  NS_IMETHOD LoadDocument(nsIURI *aDocumentURI, nsIDocument *aLoader, nsIDOMDocument **_retval) { return _to LoadDocument(aDocumentURI, aLoader, _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_NSISYNCLOADER(_to) \
  NS_IMETHOD LoadDocument(nsIURI *aDocumentURI, nsIDocument *aLoader, nsIDOMDocument **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->LoadDocument(aDocumentURI, aLoader, _retval); } 

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

/* Header file */
class nsSyncLoader : public nsISyncLoader
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSISYNCLOADER

  nsSyncLoader();
  virtual ~nsSyncLoader();
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsSyncLoader, nsISyncLoader)

nsSyncLoader::nsSyncLoader()
{
  NS_INIT_ISUPPORTS();
  /* member initializers and constructor code */
}

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

/* nsIDOMDocument loadDocument (in nsIURI aDocumentURI, in nsIDocument aLoader); */
NS_IMETHODIMP nsSyncLoader::LoadDocument(nsIURI *aDocumentURI, nsIDocument *aLoader, nsIDOMDocument **_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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

#define TRANSFORMIIX_SYNCLOADER_CID                 \
 { /* b63a5d90-1dd1-11b2-bbac-d87f512d79c9 */       \
  0xb63a5d90, 0x1dd1, 0x11b2,                       \
 {0xbb, 0xac, 0xd8, 0x7f, 0x51, 0x2d, 0x79, 0xc9} }
#define TRANSFORMIIX_SYNCLOADER_CONTRACTID          \
"@mozilla.org/transformiix/syncloader;1"

#endif /* __gen_nsISyncLoader_h__ */
