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

#ifndef __gen_nsIBrowserInstance_h__
#define __gen_nsIBrowserInstance_h__

#include "nsISupports.h"
#include "domstubs.h"

class nsIDocShell; /* forward declaration */

class nsIUrlbarHistory; /* forward declaration */

class nsIInputStream; /* forward declaration */


/* starting interface:    nsIBrowserInstance */
#define NS_IBROWSERINSTANCE_IID_STR "8af0fa40-598d-11d3-806a-00600811a9c3"

#define NS_IBROWSERINSTANCE_IID \
  {0x8af0fa40, 0x598d, 0x11d3, \
    { 0x80, 0x6a, 0x00, 0x60, 0x08, 0x11, 0xa9, 0xc3 }}

class NS_NO_VTABLE nsIBrowserInstance : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(NS_IBROWSERINSTANCE_IID)

  /* void back (); */
  NS_IMETHOD Back(void) = 0;

  /* void forward (); */
  NS_IMETHOD Forward(void) = 0;

  /* readonly attribute boolean canGoBack; */
  NS_IMETHOD GetCanGoBack(PRBool *aCanGoBack) = 0;

  /* readonly attribute boolean canGoForward; */
  NS_IMETHOD GetCanGoForward(PRBool *aCanGoForward) = 0;

  /* void reload (in PRUint32 reloadType); */
  NS_IMETHOD Reload(PRUint32 reloadType) = 0;

  /* void stop (); */
  NS_IMETHOD Stop(void) = 0;

  /* void loadUrl (in wstring url); */
  NS_IMETHOD LoadUrl(const PRUnichar *url) = 0;

  /* void loadInitialPage (); */
  NS_IMETHOD LoadInitialPage(void) = 0;

  /* void backButtonPopup (in nsIDOMNode backMenu); */
  NS_IMETHOD BackButtonPopup(nsIDOMNode *backMenu) = 0;

  /* void forwardButtonPopup (in nsIDOMNode forwardMenu); */
  NS_IMETHOD ForwardButtonPopup(nsIDOMNode *forwardMenu) = 0;

  /* void gotoHistoryIndex (in PRInt32 index); */
  NS_IMETHOD GotoHistoryIndex(PRInt32 index) = 0;

  /* void updateGoMenu (in nsIDOMNode goMenu); */
  NS_IMETHOD UpdateGoMenu(nsIDOMNode *goMenu) = 0;

  /* boolean walletPreview (in nsIDOMWindowInternal win, in nsIDOMWindowInternal form); */
  NS_IMETHOD WalletPreview(nsIDOMWindowInternal *win, nsIDOMWindowInternal *form, PRBool *_retval) = 0;

  /* boolean walletChangePassword (); */
  NS_IMETHOD WalletChangePassword(PRBool *_retval) = 0;

  /* boolean walletQuickFillin (in nsIDOMWindowInternal win); */
  NS_IMETHOD WalletQuickFillin(nsIDOMWindowInternal *win, PRBool *_retval) = 0;

  /* PRUint32 walletRequestToCapture (in nsIDOMWindowInternal win); */
  NS_IMETHOD WalletRequestToCapture(nsIDOMWindowInternal *win, PRUint32 *_retval) = 0;

  /* void init (); */
  NS_IMETHOD Init(void) = 0;

  /* void setContentWindow (in nsIDOMWindowInternal aWindow); */
  NS_IMETHOD SetContentWindow(nsIDOMWindowInternal *aWindow) = 0;

  /* void getContentDocShell (out nsIDocShell aDocShell); */
  NS_IMETHOD GetContentDocShell(nsIDocShell **aDocShell) = 0;

  /* void setWebShellWindow (in nsIDOMWindowInternal aWindow); */
  NS_IMETHOD SetWebShellWindow(nsIDOMWindowInternal *aWindow) = 0;

  /* void setTextZoom (in float aTextZoom); */
  NS_IMETHOD SetTextZoom(float aTextZoom) = 0;

  /* void SetDocumentCharset (in wstring charset); */
  NS_IMETHOD SetDocumentCharset(const PRUnichar *charset) = 0;

  /* wstring GetDocumentCharset (); */
  NS_IMETHOD GetDocumentCharset(PRUnichar **_retval) = 0;

  /* void SetForcedCharset (in wstring charset); */
  NS_IMETHOD SetForcedCharset(const PRUnichar *charset) = 0;

  /* void SetForcedDetector (); */
  NS_IMETHOD SetForcedDetector(void) = 0;

  /* attribute nsIUrlbarHistory urlbarHistory; */
  NS_IMETHOD GetUrlbarHistory(nsIUrlbarHistory * *aUrlbarHistory) = 0;
  NS_IMETHOD SetUrlbarHistory(nsIUrlbarHistory * aUrlbarHistory) = 0;

  /* attribute nsIInputStream postData; */
  NS_IMETHOD GetPostData(nsIInputStream * *aPostData) = 0;
  NS_IMETHOD SetPostData(nsIInputStream * aPostData) = 0;

  /* void printPreview (); */
  NS_IMETHOD PrintPreview(void) = 0;

  /* void print (); */
  NS_IMETHOD Print(void) = 0;

  /* void close (); */
  NS_IMETHOD Close(void) = 0;

  /* void copy (); */
  NS_IMETHOD Copy(void) = 0;

  /* void selectAll (); */
  NS_IMETHOD SelectAll(void) = 0;

  /* void find (); */
  NS_IMETHOD Find(void) = 0;

  /* void findNext (); */
  NS_IMETHOD FindNext(void) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIBROWSERINSTANCE \
  NS_IMETHOD Back(void); \
  NS_IMETHOD Forward(void); \
  NS_IMETHOD GetCanGoBack(PRBool *aCanGoBack); \
  NS_IMETHOD GetCanGoForward(PRBool *aCanGoForward); \
  NS_IMETHOD Reload(PRUint32 reloadType); \
  NS_IMETHOD Stop(void); \
  NS_IMETHOD LoadUrl(const PRUnichar *url); \
  NS_IMETHOD LoadInitialPage(void); \
  NS_IMETHOD BackButtonPopup(nsIDOMNode *backMenu); \
  NS_IMETHOD ForwardButtonPopup(nsIDOMNode *forwardMenu); \
  NS_IMETHOD GotoHistoryIndex(PRInt32 index); \
  NS_IMETHOD UpdateGoMenu(nsIDOMNode *goMenu); \
  NS_IMETHOD WalletPreview(nsIDOMWindowInternal *win, nsIDOMWindowInternal *form, PRBool *_retval); \
  NS_IMETHOD WalletChangePassword(PRBool *_retval); \
  NS_IMETHOD WalletQuickFillin(nsIDOMWindowInternal *win, PRBool *_retval); \
  NS_IMETHOD WalletRequestToCapture(nsIDOMWindowInternal *win, PRUint32 *_retval); \
  NS_IMETHOD Init(void); \
  NS_IMETHOD SetContentWindow(nsIDOMWindowInternal *aWindow); \
  NS_IMETHOD GetContentDocShell(nsIDocShell **aDocShell); \
  NS_IMETHOD SetWebShellWindow(nsIDOMWindowInternal *aWindow); \
  NS_IMETHOD SetTextZoom(float aTextZoom); \
  NS_IMETHOD SetDocumentCharset(const PRUnichar *charset); \
  NS_IMETHOD GetDocumentCharset(PRUnichar **_retval); \
  NS_IMETHOD SetForcedCharset(const PRUnichar *charset); \
  NS_IMETHOD SetForcedDetector(void); \
  NS_IMETHOD GetUrlbarHistory(nsIUrlbarHistory * *aUrlbarHistory); \
  NS_IMETHOD SetUrlbarHistory(nsIUrlbarHistory * aUrlbarHistory); \
  NS_IMETHOD GetPostData(nsIInputStream * *aPostData); \
  NS_IMETHOD SetPostData(nsIInputStream * aPostData); \
  NS_IMETHOD PrintPreview(void); \
  NS_IMETHOD Print(void); \
  NS_IMETHOD Close(void); \
  NS_IMETHOD Copy(void); \
  NS_IMETHOD SelectAll(void); \
  NS_IMETHOD Find(void); \
  NS_IMETHOD FindNext(void); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIBROWSERINSTANCE(_to) \
  NS_IMETHOD Back(void) { return _to ## Back(); } \
  NS_IMETHOD Forward(void) { return _to ## Forward(); } \
  NS_IMETHOD GetCanGoBack(PRBool *aCanGoBack) { return _to ## GetCanGoBack(aCanGoBack); } \
  NS_IMETHOD GetCanGoForward(PRBool *aCanGoForward) { return _to ## GetCanGoForward(aCanGoForward); } \
  NS_IMETHOD Reload(PRUint32 reloadType) { return _to ## Reload(reloadType); } \
  NS_IMETHOD Stop(void) { return _to ## Stop(); } \
  NS_IMETHOD LoadUrl(const PRUnichar *url) { return _to ## LoadUrl(url); } \
  NS_IMETHOD LoadInitialPage(void) { return _to ## LoadInitialPage(); } \
  NS_IMETHOD BackButtonPopup(nsIDOMNode *backMenu) { return _to ## BackButtonPopup(backMenu); } \
  NS_IMETHOD ForwardButtonPopup(nsIDOMNode *forwardMenu) { return _to ## ForwardButtonPopup(forwardMenu); } \
  NS_IMETHOD GotoHistoryIndex(PRInt32 index) { return _to ## GotoHistoryIndex(index); } \
  NS_IMETHOD UpdateGoMenu(nsIDOMNode *goMenu) { return _to ## UpdateGoMenu(goMenu); } \
  NS_IMETHOD WalletPreview(nsIDOMWindowInternal *win, nsIDOMWindowInternal *form, PRBool *_retval) { return _to ## WalletPreview(win, form, _retval); } \
  NS_IMETHOD WalletChangePassword(PRBool *_retval) { return _to ## WalletChangePassword(_retval); } \
  NS_IMETHOD WalletQuickFillin(nsIDOMWindowInternal *win, PRBool *_retval) { return _to ## WalletQuickFillin(win, _retval); } \
  NS_IMETHOD WalletRequestToCapture(nsIDOMWindowInternal *win, PRUint32 *_retval) { return _to ## WalletRequestToCapture(win, _retval); } \
  NS_IMETHOD Init(void) { return _to ## Init(); } \
  NS_IMETHOD SetContentWindow(nsIDOMWindowInternal *aWindow) { return _to ## SetContentWindow(aWindow); } \
  NS_IMETHOD GetContentDocShell(nsIDocShell **aDocShell) { return _to ## GetContentDocShell(aDocShell); } \
  NS_IMETHOD SetWebShellWindow(nsIDOMWindowInternal *aWindow) { return _to ## SetWebShellWindow(aWindow); } \
  NS_IMETHOD SetTextZoom(float aTextZoom) { return _to ## SetTextZoom(aTextZoom); } \
  NS_IMETHOD SetDocumentCharset(const PRUnichar *charset) { return _to ## SetDocumentCharset(charset); } \
  NS_IMETHOD GetDocumentCharset(PRUnichar **_retval) { return _to ## GetDocumentCharset(_retval); } \
  NS_IMETHOD SetForcedCharset(const PRUnichar *charset) { return _to ## SetForcedCharset(charset); } \
  NS_IMETHOD SetForcedDetector(void) { return _to ## SetForcedDetector(); } \
  NS_IMETHOD GetUrlbarHistory(nsIUrlbarHistory * *aUrlbarHistory) { return _to ## GetUrlbarHistory(aUrlbarHistory); } \
  NS_IMETHOD SetUrlbarHistory(nsIUrlbarHistory * aUrlbarHistory) { return _to ## SetUrlbarHistory(aUrlbarHistory); } \
  NS_IMETHOD GetPostData(nsIInputStream * *aPostData) { return _to ## GetPostData(aPostData); } \
  NS_IMETHOD SetPostData(nsIInputStream * aPostData) { return _to ## SetPostData(aPostData); } \
  NS_IMETHOD PrintPreview(void) { return _to ## PrintPreview(); } \
  NS_IMETHOD Print(void) { return _to ## Print(); } \
  NS_IMETHOD Close(void) { return _to ## Close(); } \
  NS_IMETHOD Copy(void) { return _to ## Copy(); } \
  NS_IMETHOD SelectAll(void) { return _to ## SelectAll(); } \
  NS_IMETHOD Find(void) { return _to ## Find(); } \
  NS_IMETHOD FindNext(void) { return _to ## FindNext(); } 

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

/* Header file */
class nsBrowserInstance : public nsIBrowserInstance
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIBROWSERINSTANCE

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

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsBrowserInstance, nsIBrowserInstance)

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

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

/* void back (); */
NS_IMETHODIMP nsBrowserInstance::Back()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void forward (); */
NS_IMETHODIMP nsBrowserInstance::Forward()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute boolean canGoBack; */
NS_IMETHODIMP nsBrowserInstance::GetCanGoBack(PRBool *aCanGoBack)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute boolean canGoForward; */
NS_IMETHODIMP nsBrowserInstance::GetCanGoForward(PRBool *aCanGoForward)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void reload (in PRUint32 reloadType); */
NS_IMETHODIMP nsBrowserInstance::Reload(PRUint32 reloadType)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void stop (); */
NS_IMETHODIMP nsBrowserInstance::Stop()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void loadUrl (in wstring url); */
NS_IMETHODIMP nsBrowserInstance::LoadUrl(const PRUnichar *url)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void loadInitialPage (); */
NS_IMETHODIMP nsBrowserInstance::LoadInitialPage()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void backButtonPopup (in nsIDOMNode backMenu); */
NS_IMETHODIMP nsBrowserInstance::BackButtonPopup(nsIDOMNode *backMenu)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void forwardButtonPopup (in nsIDOMNode forwardMenu); */
NS_IMETHODIMP nsBrowserInstance::ForwardButtonPopup(nsIDOMNode *forwardMenu)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void gotoHistoryIndex (in PRInt32 index); */
NS_IMETHODIMP nsBrowserInstance::GotoHistoryIndex(PRInt32 index)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void updateGoMenu (in nsIDOMNode goMenu); */
NS_IMETHODIMP nsBrowserInstance::UpdateGoMenu(nsIDOMNode *goMenu)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean walletPreview (in nsIDOMWindowInternal win, in nsIDOMWindowInternal form); */
NS_IMETHODIMP nsBrowserInstance::WalletPreview(nsIDOMWindowInternal *win, nsIDOMWindowInternal *form, PRBool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean walletChangePassword (); */
NS_IMETHODIMP nsBrowserInstance::WalletChangePassword(PRBool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean walletQuickFillin (in nsIDOMWindowInternal win); */
NS_IMETHODIMP nsBrowserInstance::WalletQuickFillin(nsIDOMWindowInternal *win, PRBool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* PRUint32 walletRequestToCapture (in nsIDOMWindowInternal win); */
NS_IMETHODIMP nsBrowserInstance::WalletRequestToCapture(nsIDOMWindowInternal *win, PRUint32 *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void init (); */
NS_IMETHODIMP nsBrowserInstance::Init()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void setContentWindow (in nsIDOMWindowInternal aWindow); */
NS_IMETHODIMP nsBrowserInstance::SetContentWindow(nsIDOMWindowInternal *aWindow)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void getContentDocShell (out nsIDocShell aDocShell); */
NS_IMETHODIMP nsBrowserInstance::GetContentDocShell(nsIDocShell **aDocShell)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void setWebShellWindow (in nsIDOMWindowInternal aWindow); */
NS_IMETHODIMP nsBrowserInstance::SetWebShellWindow(nsIDOMWindowInternal *aWindow)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void setTextZoom (in float aTextZoom); */
NS_IMETHODIMP nsBrowserInstance::SetTextZoom(float aTextZoom)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void SetDocumentCharset (in wstring charset); */
NS_IMETHODIMP nsBrowserInstance::SetDocumentCharset(const PRUnichar *charset)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* wstring GetDocumentCharset (); */
NS_IMETHODIMP nsBrowserInstance::GetDocumentCharset(PRUnichar **_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void SetForcedCharset (in wstring charset); */
NS_IMETHODIMP nsBrowserInstance::SetForcedCharset(const PRUnichar *charset)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void SetForcedDetector (); */
NS_IMETHODIMP nsBrowserInstance::SetForcedDetector()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute nsIUrlbarHistory urlbarHistory; */
NS_IMETHODIMP nsBrowserInstance::GetUrlbarHistory(nsIUrlbarHistory * *aUrlbarHistory)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsBrowserInstance::SetUrlbarHistory(nsIUrlbarHistory * aUrlbarHistory)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute nsIInputStream postData; */
NS_IMETHODIMP nsBrowserInstance::GetPostData(nsIInputStream * *aPostData)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsBrowserInstance::SetPostData(nsIInputStream * aPostData)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void printPreview (); */
NS_IMETHODIMP nsBrowserInstance::PrintPreview()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void print (); */
NS_IMETHODIMP nsBrowserInstance::Print()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void close (); */
NS_IMETHODIMP nsBrowserInstance::Close()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void copy (); */
NS_IMETHODIMP nsBrowserInstance::Copy()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void selectAll (); */
NS_IMETHODIMP nsBrowserInstance::SelectAll()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void find (); */
NS_IMETHODIMP nsBrowserInstance::Find()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void findNext (); */
NS_IMETHODIMP nsBrowserInstance::FindNext()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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

#define NS_BROWSERINSTANCE_CONTRACTID "@mozilla.org/appshell/component/browser/instance;1"
#define NS_BROWSERSTARTUPHANDLER_CONTRACTID "@mozilla.org/commandlinehandler/general-startup;1?type=browser"
// {c7bee75a-1dd1-11b2-9333-a38e085287cf}
#define NS_BROWSERCONTROLLER_CID { 0xc7bee75a, 0x1dd1, 0x11b2, { 0x93, 0x33, 0xa3, 0x8e, 0x08, 0x52, 0x87, 0xcf } } 
// {5551A1E0-5A66-11d3-806A-00600811A9C3}
#define NS_BROWSERINSTANCE_CID {   0x5551a1e0, 0x5a66, 0x11d3, { 0x80, 0x6a, 0x0, 0x60, 0x08, 0x11, 0xa9, 0xc3 } }
// {C2343730-DC2C-11d3-98B3-001083010E9B}
#define NS_BROWSERCONTENTHANDLER_CID { 0xc2343730, 0xdc2c, 0x11d3, { 0x98, 0xb3, 0x0, 0x10, 0x83, 0x1, 0xe, 0x9b } }

#endif /* __gen_nsIBrowserInstance_h__ */
