LCOV - code coverage report
Current view: directory - objdir/dist/include - nsIDocShellLoadInfo.h (source / functions) Found Hit Coverage
Test: app.info Lines: 1 0 0.0 %
Date: 2012-06-02 Functions: 1 0 0.0 %

       1                 : /*
       2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/docshell/base/nsIDocShellLoadInfo.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIDocShellLoadInfo_h__
       6                 : #define __gen_nsIDocShellLoadInfo_h__
       7                 : 
       8                 : 
       9                 : #ifndef __gen_nsISupports_h__
      10                 : #include "nsISupports.h"
      11                 : #endif
      12                 : 
      13                 : /* For IDL files that don't want to include root IDL files. */
      14                 : #ifndef NS_NO_VTABLE
      15                 : #define NS_NO_VTABLE
      16                 : #endif
      17                 : class nsIURI; /* forward declaration */
      18                 : 
      19                 : class nsIInputStream; /* forward declaration */
      20                 : 
      21                 : class nsISHEntry; /* forward declaration */
      22                 : 
      23                 : typedef PRInt32  nsDocShellInfoLoadType;
      24                 : 
      25                 : 
      26                 : /* starting interface:    nsIDocShellLoadInfo */
      27                 : #define NS_IDOCSHELLLOADINFO_IID_STR "92a0a637-373e-4647-9476-ead11e005c75"
      28                 : 
      29                 : #define NS_IDOCSHELLLOADINFO_IID \
      30                 :   {0x92a0a637, 0x373e, 0x4647, \
      31                 :     { 0x94, 0x76, 0xea, 0xd1, 0x1e, 0x00, 0x5c, 0x75 }}
      32                 : 
      33               0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDocShellLoadInfo : public nsISupports {
      34                 :  public: 
      35                 : 
      36                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOCSHELLLOADINFO_IID)
      37                 : 
      38                 :   /* attribute nsIURI referrer; */
      39                 :   NS_SCRIPTABLE NS_IMETHOD GetReferrer(nsIURI * *aReferrer) = 0;
      40                 :   NS_SCRIPTABLE NS_IMETHOD SetReferrer(nsIURI *aReferrer) = 0;
      41                 : 
      42                 :   /* attribute nsISupports owner; */
      43                 :   NS_SCRIPTABLE NS_IMETHOD GetOwner(nsISupports * *aOwner) = 0;
      44                 :   NS_SCRIPTABLE NS_IMETHOD SetOwner(nsISupports *aOwner) = 0;
      45                 : 
      46                 :   /* attribute boolean inheritOwner; */
      47                 :   NS_SCRIPTABLE NS_IMETHOD GetInheritOwner(bool *aInheritOwner) = 0;
      48                 :   NS_SCRIPTABLE NS_IMETHOD SetInheritOwner(bool aInheritOwner) = 0;
      49                 : 
      50                 :   /* attribute boolean ownerIsExplicit; */
      51                 :   NS_SCRIPTABLE NS_IMETHOD GetOwnerIsExplicit(bool *aOwnerIsExplicit) = 0;
      52                 :   NS_SCRIPTABLE NS_IMETHOD SetOwnerIsExplicit(bool aOwnerIsExplicit) = 0;
      53                 : 
      54                 :   enum {
      55                 :     loadNormal = 0,
      56                 :     loadNormalReplace = 1,
      57                 :     loadHistory = 2,
      58                 :     loadReloadNormal = 3,
      59                 :     loadReloadBypassCache = 4,
      60                 :     loadReloadBypassProxy = 5,
      61                 :     loadReloadBypassProxyAndCache = 6,
      62                 :     loadLink = 7,
      63                 :     loadRefresh = 8,
      64                 :     loadReloadCharsetChange = 9,
      65                 :     loadBypassHistory = 10,
      66                 :     loadStopContent = 11,
      67                 :     loadStopContentAndReplace = 12,
      68                 :     loadNormalExternal = 13,
      69                 :     loadNormalBypassCache = 14,
      70                 :     loadNormalBypassProxy = 15,
      71                 :     loadNormalBypassProxyAndCache = 16,
      72                 :     loadPushState = 17
      73                 :   };
      74                 : 
      75                 :   /* attribute nsDocShellInfoLoadType loadType; */
      76                 :   NS_SCRIPTABLE NS_IMETHOD GetLoadType(nsDocShellInfoLoadType *aLoadType) = 0;
      77                 :   NS_SCRIPTABLE NS_IMETHOD SetLoadType(nsDocShellInfoLoadType aLoadType) = 0;
      78                 : 
      79                 :   /* attribute nsISHEntry SHEntry; */
      80                 :   NS_SCRIPTABLE NS_IMETHOD GetSHEntry(nsISHEntry * *aSHEntry) = 0;
      81                 :   NS_SCRIPTABLE NS_IMETHOD SetSHEntry(nsISHEntry *aSHEntry) = 0;
      82                 : 
      83                 :   /* attribute wstring target; */
      84                 :   NS_SCRIPTABLE NS_IMETHOD GetTarget(PRUnichar * *aTarget) = 0;
      85                 :   NS_SCRIPTABLE NS_IMETHOD SetTarget(const PRUnichar * aTarget) = 0;
      86                 : 
      87                 :   /* attribute nsIInputStream postDataStream; */
      88                 :   NS_SCRIPTABLE NS_IMETHOD GetPostDataStream(nsIInputStream * *aPostDataStream) = 0;
      89                 :   NS_SCRIPTABLE NS_IMETHOD SetPostDataStream(nsIInputStream *aPostDataStream) = 0;
      90                 : 
      91                 :   /* attribute nsIInputStream headersStream; */
      92                 :   NS_SCRIPTABLE NS_IMETHOD GetHeadersStream(nsIInputStream * *aHeadersStream) = 0;
      93                 :   NS_SCRIPTABLE NS_IMETHOD SetHeadersStream(nsIInputStream *aHeadersStream) = 0;
      94                 : 
      95                 :   /* attribute boolean sendReferrer; */
      96                 :   NS_SCRIPTABLE NS_IMETHOD GetSendReferrer(bool *aSendReferrer) = 0;
      97                 :   NS_SCRIPTABLE NS_IMETHOD SetSendReferrer(bool aSendReferrer) = 0;
      98                 : 
      99                 : };
     100                 : 
     101                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIDocShellLoadInfo, NS_IDOCSHELLLOADINFO_IID)
     102                 : 
     103                 : /* Use this macro when declaring classes that implement this interface. */
     104                 : #define NS_DECL_NSIDOCSHELLLOADINFO \
     105                 :   NS_SCRIPTABLE NS_IMETHOD GetReferrer(nsIURI * *aReferrer); \
     106                 :   NS_SCRIPTABLE NS_IMETHOD SetReferrer(nsIURI *aReferrer); \
     107                 :   NS_SCRIPTABLE NS_IMETHOD GetOwner(nsISupports * *aOwner); \
     108                 :   NS_SCRIPTABLE NS_IMETHOD SetOwner(nsISupports *aOwner); \
     109                 :   NS_SCRIPTABLE NS_IMETHOD GetInheritOwner(bool *aInheritOwner); \
     110                 :   NS_SCRIPTABLE NS_IMETHOD SetInheritOwner(bool aInheritOwner); \
     111                 :   NS_SCRIPTABLE NS_IMETHOD GetOwnerIsExplicit(bool *aOwnerIsExplicit); \
     112                 :   NS_SCRIPTABLE NS_IMETHOD SetOwnerIsExplicit(bool aOwnerIsExplicit); \
     113                 :   NS_SCRIPTABLE NS_IMETHOD GetLoadType(nsDocShellInfoLoadType *aLoadType); \
     114                 :   NS_SCRIPTABLE NS_IMETHOD SetLoadType(nsDocShellInfoLoadType aLoadType); \
     115                 :   NS_SCRIPTABLE NS_IMETHOD GetSHEntry(nsISHEntry * *aSHEntry); \
     116                 :   NS_SCRIPTABLE NS_IMETHOD SetSHEntry(nsISHEntry *aSHEntry); \
     117                 :   NS_SCRIPTABLE NS_IMETHOD GetTarget(PRUnichar * *aTarget); \
     118                 :   NS_SCRIPTABLE NS_IMETHOD SetTarget(const PRUnichar * aTarget); \
     119                 :   NS_SCRIPTABLE NS_IMETHOD GetPostDataStream(nsIInputStream * *aPostDataStream); \
     120                 :   NS_SCRIPTABLE NS_IMETHOD SetPostDataStream(nsIInputStream *aPostDataStream); \
     121                 :   NS_SCRIPTABLE NS_IMETHOD GetHeadersStream(nsIInputStream * *aHeadersStream); \
     122                 :   NS_SCRIPTABLE NS_IMETHOD SetHeadersStream(nsIInputStream *aHeadersStream); \
     123                 :   NS_SCRIPTABLE NS_IMETHOD GetSendReferrer(bool *aSendReferrer); \
     124                 :   NS_SCRIPTABLE NS_IMETHOD SetSendReferrer(bool aSendReferrer); 
     125                 : 
     126                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     127                 : #define NS_FORWARD_NSIDOCSHELLLOADINFO(_to) \
     128                 :   NS_SCRIPTABLE NS_IMETHOD GetReferrer(nsIURI * *aReferrer) { return _to GetReferrer(aReferrer); } \
     129                 :   NS_SCRIPTABLE NS_IMETHOD SetReferrer(nsIURI *aReferrer) { return _to SetReferrer(aReferrer); } \
     130                 :   NS_SCRIPTABLE NS_IMETHOD GetOwner(nsISupports * *aOwner) { return _to GetOwner(aOwner); } \
     131                 :   NS_SCRIPTABLE NS_IMETHOD SetOwner(nsISupports *aOwner) { return _to SetOwner(aOwner); } \
     132                 :   NS_SCRIPTABLE NS_IMETHOD GetInheritOwner(bool *aInheritOwner) { return _to GetInheritOwner(aInheritOwner); } \
     133                 :   NS_SCRIPTABLE NS_IMETHOD SetInheritOwner(bool aInheritOwner) { return _to SetInheritOwner(aInheritOwner); } \
     134                 :   NS_SCRIPTABLE NS_IMETHOD GetOwnerIsExplicit(bool *aOwnerIsExplicit) { return _to GetOwnerIsExplicit(aOwnerIsExplicit); } \
     135                 :   NS_SCRIPTABLE NS_IMETHOD SetOwnerIsExplicit(bool aOwnerIsExplicit) { return _to SetOwnerIsExplicit(aOwnerIsExplicit); } \
     136                 :   NS_SCRIPTABLE NS_IMETHOD GetLoadType(nsDocShellInfoLoadType *aLoadType) { return _to GetLoadType(aLoadType); } \
     137                 :   NS_SCRIPTABLE NS_IMETHOD SetLoadType(nsDocShellInfoLoadType aLoadType) { return _to SetLoadType(aLoadType); } \
     138                 :   NS_SCRIPTABLE NS_IMETHOD GetSHEntry(nsISHEntry * *aSHEntry) { return _to GetSHEntry(aSHEntry); } \
     139                 :   NS_SCRIPTABLE NS_IMETHOD SetSHEntry(nsISHEntry *aSHEntry) { return _to SetSHEntry(aSHEntry); } \
     140                 :   NS_SCRIPTABLE NS_IMETHOD GetTarget(PRUnichar * *aTarget) { return _to GetTarget(aTarget); } \
     141                 :   NS_SCRIPTABLE NS_IMETHOD SetTarget(const PRUnichar * aTarget) { return _to SetTarget(aTarget); } \
     142                 :   NS_SCRIPTABLE NS_IMETHOD GetPostDataStream(nsIInputStream * *aPostDataStream) { return _to GetPostDataStream(aPostDataStream); } \
     143                 :   NS_SCRIPTABLE NS_IMETHOD SetPostDataStream(nsIInputStream *aPostDataStream) { return _to SetPostDataStream(aPostDataStream); } \
     144                 :   NS_SCRIPTABLE NS_IMETHOD GetHeadersStream(nsIInputStream * *aHeadersStream) { return _to GetHeadersStream(aHeadersStream); } \
     145                 :   NS_SCRIPTABLE NS_IMETHOD SetHeadersStream(nsIInputStream *aHeadersStream) { return _to SetHeadersStream(aHeadersStream); } \
     146                 :   NS_SCRIPTABLE NS_IMETHOD GetSendReferrer(bool *aSendReferrer) { return _to GetSendReferrer(aSendReferrer); } \
     147                 :   NS_SCRIPTABLE NS_IMETHOD SetSendReferrer(bool aSendReferrer) { return _to SetSendReferrer(aSendReferrer); } 
     148                 : 
     149                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     150                 : #define NS_FORWARD_SAFE_NSIDOCSHELLLOADINFO(_to) \
     151                 :   NS_SCRIPTABLE NS_IMETHOD GetReferrer(nsIURI * *aReferrer) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetReferrer(aReferrer); } \
     152                 :   NS_SCRIPTABLE NS_IMETHOD SetReferrer(nsIURI *aReferrer) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetReferrer(aReferrer); } \
     153                 :   NS_SCRIPTABLE NS_IMETHOD GetOwner(nsISupports * *aOwner) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOwner(aOwner); } \
     154                 :   NS_SCRIPTABLE NS_IMETHOD SetOwner(nsISupports *aOwner) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOwner(aOwner); } \
     155                 :   NS_SCRIPTABLE NS_IMETHOD GetInheritOwner(bool *aInheritOwner) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInheritOwner(aInheritOwner); } \
     156                 :   NS_SCRIPTABLE NS_IMETHOD SetInheritOwner(bool aInheritOwner) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetInheritOwner(aInheritOwner); } \
     157                 :   NS_SCRIPTABLE NS_IMETHOD GetOwnerIsExplicit(bool *aOwnerIsExplicit) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOwnerIsExplicit(aOwnerIsExplicit); } \
     158                 :   NS_SCRIPTABLE NS_IMETHOD SetOwnerIsExplicit(bool aOwnerIsExplicit) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOwnerIsExplicit(aOwnerIsExplicit); } \
     159                 :   NS_SCRIPTABLE NS_IMETHOD GetLoadType(nsDocShellInfoLoadType *aLoadType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLoadType(aLoadType); } \
     160                 :   NS_SCRIPTABLE NS_IMETHOD SetLoadType(nsDocShellInfoLoadType aLoadType) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLoadType(aLoadType); } \
     161                 :   NS_SCRIPTABLE NS_IMETHOD GetSHEntry(nsISHEntry * *aSHEntry) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSHEntry(aSHEntry); } \
     162                 :   NS_SCRIPTABLE NS_IMETHOD SetSHEntry(nsISHEntry *aSHEntry) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSHEntry(aSHEntry); } \
     163                 :   NS_SCRIPTABLE NS_IMETHOD GetTarget(PRUnichar * *aTarget) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTarget(aTarget); } \
     164                 :   NS_SCRIPTABLE NS_IMETHOD SetTarget(const PRUnichar * aTarget) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTarget(aTarget); } \
     165                 :   NS_SCRIPTABLE NS_IMETHOD GetPostDataStream(nsIInputStream * *aPostDataStream) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPostDataStream(aPostDataStream); } \
     166                 :   NS_SCRIPTABLE NS_IMETHOD SetPostDataStream(nsIInputStream *aPostDataStream) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPostDataStream(aPostDataStream); } \
     167                 :   NS_SCRIPTABLE NS_IMETHOD GetHeadersStream(nsIInputStream * *aHeadersStream) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHeadersStream(aHeadersStream); } \
     168                 :   NS_SCRIPTABLE NS_IMETHOD SetHeadersStream(nsIInputStream *aHeadersStream) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetHeadersStream(aHeadersStream); } \
     169                 :   NS_SCRIPTABLE NS_IMETHOD GetSendReferrer(bool *aSendReferrer) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSendReferrer(aSendReferrer); } \
     170                 :   NS_SCRIPTABLE NS_IMETHOD SetSendReferrer(bool aSendReferrer) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSendReferrer(aSendReferrer); } 
     171                 : 
     172                 : #if 0
     173                 : /* Use the code below as a template for the implementation class for this interface. */
     174                 : 
     175                 : /* Header file */
     176                 : class nsDocShellLoadInfo : public nsIDocShellLoadInfo
     177                 : {
     178                 : public:
     179                 :   NS_DECL_ISUPPORTS
     180                 :   NS_DECL_NSIDOCSHELLLOADINFO
     181                 : 
     182                 :   nsDocShellLoadInfo();
     183                 : 
     184                 : private:
     185                 :   ~nsDocShellLoadInfo();
     186                 : 
     187                 : protected:
     188                 :   /* additional members */
     189                 : };
     190                 : 
     191                 : /* Implementation file */
     192                 : NS_IMPL_ISUPPORTS1(nsDocShellLoadInfo, nsIDocShellLoadInfo)
     193                 : 
     194                 : nsDocShellLoadInfo::nsDocShellLoadInfo()
     195                 : {
     196                 :   /* member initializers and constructor code */
     197                 : }
     198                 : 
     199                 : nsDocShellLoadInfo::~nsDocShellLoadInfo()
     200                 : {
     201                 :   /* destructor code */
     202                 : }
     203                 : 
     204                 : /* attribute nsIURI referrer; */
     205                 : NS_IMETHODIMP nsDocShellLoadInfo::GetReferrer(nsIURI * *aReferrer)
     206                 : {
     207                 :     return NS_ERROR_NOT_IMPLEMENTED;
     208                 : }
     209                 : NS_IMETHODIMP nsDocShellLoadInfo::SetReferrer(nsIURI *aReferrer)
     210                 : {
     211                 :     return NS_ERROR_NOT_IMPLEMENTED;
     212                 : }
     213                 : 
     214                 : /* attribute nsISupports owner; */
     215                 : NS_IMETHODIMP nsDocShellLoadInfo::GetOwner(nsISupports * *aOwner)
     216                 : {
     217                 :     return NS_ERROR_NOT_IMPLEMENTED;
     218                 : }
     219                 : NS_IMETHODIMP nsDocShellLoadInfo::SetOwner(nsISupports *aOwner)
     220                 : {
     221                 :     return NS_ERROR_NOT_IMPLEMENTED;
     222                 : }
     223                 : 
     224                 : /* attribute boolean inheritOwner; */
     225                 : NS_IMETHODIMP nsDocShellLoadInfo::GetInheritOwner(bool *aInheritOwner)
     226                 : {
     227                 :     return NS_ERROR_NOT_IMPLEMENTED;
     228                 : }
     229                 : NS_IMETHODIMP nsDocShellLoadInfo::SetInheritOwner(bool aInheritOwner)
     230                 : {
     231                 :     return NS_ERROR_NOT_IMPLEMENTED;
     232                 : }
     233                 : 
     234                 : /* attribute boolean ownerIsExplicit; */
     235                 : NS_IMETHODIMP nsDocShellLoadInfo::GetOwnerIsExplicit(bool *aOwnerIsExplicit)
     236                 : {
     237                 :     return NS_ERROR_NOT_IMPLEMENTED;
     238                 : }
     239                 : NS_IMETHODIMP nsDocShellLoadInfo::SetOwnerIsExplicit(bool aOwnerIsExplicit)
     240                 : {
     241                 :     return NS_ERROR_NOT_IMPLEMENTED;
     242                 : }
     243                 : 
     244                 : /* attribute nsDocShellInfoLoadType loadType; */
     245                 : NS_IMETHODIMP nsDocShellLoadInfo::GetLoadType(nsDocShellInfoLoadType *aLoadType)
     246                 : {
     247                 :     return NS_ERROR_NOT_IMPLEMENTED;
     248                 : }
     249                 : NS_IMETHODIMP nsDocShellLoadInfo::SetLoadType(nsDocShellInfoLoadType aLoadType)
     250                 : {
     251                 :     return NS_ERROR_NOT_IMPLEMENTED;
     252                 : }
     253                 : 
     254                 : /* attribute nsISHEntry SHEntry; */
     255                 : NS_IMETHODIMP nsDocShellLoadInfo::GetSHEntry(nsISHEntry * *aSHEntry)
     256                 : {
     257                 :     return NS_ERROR_NOT_IMPLEMENTED;
     258                 : }
     259                 : NS_IMETHODIMP nsDocShellLoadInfo::SetSHEntry(nsISHEntry *aSHEntry)
     260                 : {
     261                 :     return NS_ERROR_NOT_IMPLEMENTED;
     262                 : }
     263                 : 
     264                 : /* attribute wstring target; */
     265                 : NS_IMETHODIMP nsDocShellLoadInfo::GetTarget(PRUnichar * *aTarget)
     266                 : {
     267                 :     return NS_ERROR_NOT_IMPLEMENTED;
     268                 : }
     269                 : NS_IMETHODIMP nsDocShellLoadInfo::SetTarget(const PRUnichar * aTarget)
     270                 : {
     271                 :     return NS_ERROR_NOT_IMPLEMENTED;
     272                 : }
     273                 : 
     274                 : /* attribute nsIInputStream postDataStream; */
     275                 : NS_IMETHODIMP nsDocShellLoadInfo::GetPostDataStream(nsIInputStream * *aPostDataStream)
     276                 : {
     277                 :     return NS_ERROR_NOT_IMPLEMENTED;
     278                 : }
     279                 : NS_IMETHODIMP nsDocShellLoadInfo::SetPostDataStream(nsIInputStream *aPostDataStream)
     280                 : {
     281                 :     return NS_ERROR_NOT_IMPLEMENTED;
     282                 : }
     283                 : 
     284                 : /* attribute nsIInputStream headersStream; */
     285                 : NS_IMETHODIMP nsDocShellLoadInfo::GetHeadersStream(nsIInputStream * *aHeadersStream)
     286                 : {
     287                 :     return NS_ERROR_NOT_IMPLEMENTED;
     288                 : }
     289                 : NS_IMETHODIMP nsDocShellLoadInfo::SetHeadersStream(nsIInputStream *aHeadersStream)
     290                 : {
     291                 :     return NS_ERROR_NOT_IMPLEMENTED;
     292                 : }
     293                 : 
     294                 : /* attribute boolean sendReferrer; */
     295                 : NS_IMETHODIMP nsDocShellLoadInfo::GetSendReferrer(bool *aSendReferrer)
     296                 : {
     297                 :     return NS_ERROR_NOT_IMPLEMENTED;
     298                 : }
     299                 : NS_IMETHODIMP nsDocShellLoadInfo::SetSendReferrer(bool aSendReferrer)
     300                 : {
     301                 :     return NS_ERROR_NOT_IMPLEMENTED;
     302                 : }
     303                 : 
     304                 : /* End of implementation class template. */
     305                 : #endif
     306                 : 
     307                 : 
     308                 : #endif /* __gen_nsIDocShellLoadInfo_h__ */

Generated by: LCOV version 1.7