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

#ifndef __gen_flockIDocShellBridge_h__
#define __gen_flockIDocShellBridge_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 */


/* starting interface:    flockIDocShellBridge */
#define FLOCKIDOCSHELLBRIDGE_IID_STR "c86d26ce-0a83-4601-8435-ae582982af74"

#define FLOCKIDOCSHELLBRIDGE_IID \
  {0xc86d26ce, 0x0a83, 0x4601, \
    { 0x84, 0x35, 0xae, 0x58, 0x29, 0x82, 0xaf, 0x74 }}

class NS_NO_VTABLE NS_SCRIPTABLE flockIDocShellBridge : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(FLOCKIDOCSHELLBRIDGE_IID)

  /* nsIURI getURLFromKeywordProvider (in AUTF8String aKeyword); */
  NS_SCRIPTABLE NS_IMETHOD GetURLFromKeywordProvider(const nsACString & aKeyword, nsIURI **_retval) = 0;

  /* AUTF8String getErrorPageSearchURL (in string aErrorPage, in wstring aErrorType, in nsIURI aURI); */
  NS_SCRIPTABLE NS_IMETHOD GetErrorPageSearchURL(const char *aErrorPage, const PRUnichar *aErrorType, nsIURI *aURI, nsACString & _retval) = 0;

  /* AUTF8String getDNSNotFoundURL (in nsIURI aNotFoundURI); */
  NS_SCRIPTABLE NS_IMETHOD GetDNSNotFoundURL(nsIURI *aNotFoundURI, nsACString & _retval) = 0;

  /* void reportErrorPageMetrics (in string aErrorPage, in wstring aErrorType); */
  NS_SCRIPTABLE NS_IMETHOD ReportErrorPageMetrics(const char *aErrorPage, const PRUnichar *aErrorType) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(flockIDocShellBridge, FLOCKIDOCSHELLBRIDGE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_FLOCKIDOCSHELLBRIDGE \
  NS_SCRIPTABLE NS_IMETHOD GetURLFromKeywordProvider(const nsACString & aKeyword, nsIURI **_retval); \
  NS_SCRIPTABLE NS_IMETHOD GetErrorPageSearchURL(const char *aErrorPage, const PRUnichar *aErrorType, nsIURI *aURI, nsACString & _retval); \
  NS_SCRIPTABLE NS_IMETHOD GetDNSNotFoundURL(nsIURI *aNotFoundURI, nsACString & _retval); \
  NS_SCRIPTABLE NS_IMETHOD ReportErrorPageMetrics(const char *aErrorPage, const PRUnichar *aErrorType); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_FLOCKIDOCSHELLBRIDGE(_to) \
  NS_SCRIPTABLE NS_IMETHOD GetURLFromKeywordProvider(const nsACString & aKeyword, nsIURI **_retval) { return _to GetURLFromKeywordProvider(aKeyword, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD GetErrorPageSearchURL(const char *aErrorPage, const PRUnichar *aErrorType, nsIURI *aURI, nsACString & _retval) { return _to GetErrorPageSearchURL(aErrorPage, aErrorType, aURI, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD GetDNSNotFoundURL(nsIURI *aNotFoundURI, nsACString & _retval) { return _to GetDNSNotFoundURL(aNotFoundURI, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD ReportErrorPageMetrics(const char *aErrorPage, const PRUnichar *aErrorType) { return _to ReportErrorPageMetrics(aErrorPage, aErrorType); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_FLOCKIDOCSHELLBRIDGE(_to) \
  NS_SCRIPTABLE NS_IMETHOD GetURLFromKeywordProvider(const nsACString & aKeyword, nsIURI **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetURLFromKeywordProvider(aKeyword, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD GetErrorPageSearchURL(const char *aErrorPage, const PRUnichar *aErrorType, nsIURI *aURI, nsACString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetErrorPageSearchURL(aErrorPage, aErrorType, aURI, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD GetDNSNotFoundURL(nsIURI *aNotFoundURI, nsACString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDNSNotFoundURL(aNotFoundURI, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD ReportErrorPageMetrics(const char *aErrorPage, const PRUnichar *aErrorType) { return !_to ? NS_ERROR_NULL_POINTER : _to->ReportErrorPageMetrics(aErrorPage, aErrorType); } 

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

/* Header file */
class _MYCLASS_ : public flockIDocShellBridge
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_FLOCKIDOCSHELLBRIDGE

  _MYCLASS_();

private:
  ~_MYCLASS_();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(_MYCLASS_, flockIDocShellBridge)

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

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

/* nsIURI getURLFromKeywordProvider (in AUTF8String aKeyword); */
NS_IMETHODIMP _MYCLASS_::GetURLFromKeywordProvider(const nsACString & aKeyword, nsIURI **_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* AUTF8String getErrorPageSearchURL (in string aErrorPage, in wstring aErrorType, in nsIURI aURI); */
NS_IMETHODIMP _MYCLASS_::GetErrorPageSearchURL(const char *aErrorPage, const PRUnichar *aErrorType, nsIURI *aURI, nsACString & _retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* AUTF8String getDNSNotFoundURL (in nsIURI aNotFoundURI); */
NS_IMETHODIMP _MYCLASS_::GetDNSNotFoundURL(nsIURI *aNotFoundURI, nsACString & _retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void reportErrorPageMetrics (in string aErrorPage, in wstring aErrorType); */
NS_IMETHODIMP _MYCLASS_::ReportErrorPageMetrics(const char *aErrorPage, const PRUnichar *aErrorType)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_flockIDocShellBridge_h__ */
