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

       1                 : /*
       2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/uriloader/base/nsIWebProgressListener.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIWebProgressListener_h__
       6                 : #define __gen_nsIWebProgressListener_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 nsIWebProgress; /* forward declaration */
      18                 : 
      19                 : class nsIRequest; /* forward declaration */
      20                 : 
      21                 : class nsIURI; /* forward declaration */
      22                 : 
      23                 : 
      24                 : /* starting interface:    nsIWebProgressListener */
      25                 : #define NS_IWEBPROGRESSLISTENER_IID_STR "a0cda7e4-c6ca-11e0-b6a5-001320257da5"
      26                 : 
      27                 : #define NS_IWEBPROGRESSLISTENER_IID \
      28                 :   {0xa0cda7e4, 0xc6ca, 0x11e0, \
      29                 :     { 0xb6, 0xa5, 0x00, 0x13, 0x20, 0x25, 0x7d, 0xa5 }}
      30                 : 
      31            1446 : class NS_NO_VTABLE NS_SCRIPTABLE nsIWebProgressListener : public nsISupports {
      32                 :  public: 
      33                 : 
      34                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IWEBPROGRESSLISTENER_IID)
      35                 : 
      36                 :   enum {
      37                 :     STATE_START = 1U,
      38                 :     STATE_REDIRECTING = 2U,
      39                 :     STATE_TRANSFERRING = 4U,
      40                 :     STATE_NEGOTIATING = 8U,
      41                 :     STATE_STOP = 16U,
      42                 :     STATE_IS_REQUEST = 65536U,
      43                 :     STATE_IS_DOCUMENT = 131072U,
      44                 :     STATE_IS_NETWORK = 262144U,
      45                 :     STATE_IS_WINDOW = 524288U,
      46                 :     STATE_RESTORING = 16777216U,
      47                 :     STATE_IS_INSECURE = 4U,
      48                 :     STATE_IS_BROKEN = 1U,
      49                 :     STATE_IS_SECURE = 2U,
      50                 :     STATE_SECURE_HIGH = 262144U,
      51                 :     STATE_SECURE_MED = 65536U,
      52                 :     STATE_SECURE_LOW = 131072U,
      53                 :     STATE_IDENTITY_EV_TOPLEVEL = 1048576U
      54                 :   };
      55                 : 
      56                 :   /* void onStateChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in unsigned long aStateFlags, in nsresult aStatus); */
      57                 :   NS_SCRIPTABLE NS_IMETHOD OnStateChange(nsIWebProgress *aWebProgress, nsIRequest *aRequest, PRUint32 aStateFlags, nsresult aStatus) = 0;
      58                 : 
      59                 :   /* void onProgressChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in long aCurSelfProgress, in long aMaxSelfProgress, in long aCurTotalProgress, in long aMaxTotalProgress); */
      60                 :   NS_SCRIPTABLE NS_IMETHOD OnProgressChange(nsIWebProgress *aWebProgress, nsIRequest *aRequest, PRInt32 aCurSelfProgress, PRInt32 aMaxSelfProgress, PRInt32 aCurTotalProgress, PRInt32 aMaxTotalProgress) = 0;
      61                 : 
      62                 :   enum {
      63                 :     LOCATION_CHANGE_SAME_DOCUMENT = 1U
      64                 :   };
      65                 : 
      66                 :   /* void onLocationChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in nsIURI aLocation, [optional] in unsigned long aFlags); */
      67                 :   NS_SCRIPTABLE NS_IMETHOD OnLocationChange(nsIWebProgress *aWebProgress, nsIRequest *aRequest, nsIURI *aLocation, PRUint32 aFlags) = 0;
      68                 : 
      69                 :   /* void onStatusChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in nsresult aStatus, in wstring aMessage); */
      70                 :   NS_SCRIPTABLE NS_IMETHOD OnStatusChange(nsIWebProgress *aWebProgress, nsIRequest *aRequest, nsresult aStatus, const PRUnichar * aMessage) = 0;
      71                 : 
      72                 :   /* void onSecurityChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in unsigned long aState); */
      73                 :   NS_SCRIPTABLE NS_IMETHOD OnSecurityChange(nsIWebProgress *aWebProgress, nsIRequest *aRequest, PRUint32 aState) = 0;
      74                 : 
      75                 : };
      76                 : 
      77                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIWebProgressListener, NS_IWEBPROGRESSLISTENER_IID)
      78                 : 
      79                 : /* Use this macro when declaring classes that implement this interface. */
      80                 : #define NS_DECL_NSIWEBPROGRESSLISTENER \
      81                 :   NS_SCRIPTABLE NS_IMETHOD OnStateChange(nsIWebProgress *aWebProgress, nsIRequest *aRequest, PRUint32 aStateFlags, nsresult aStatus); \
      82                 :   NS_SCRIPTABLE NS_IMETHOD OnProgressChange(nsIWebProgress *aWebProgress, nsIRequest *aRequest, PRInt32 aCurSelfProgress, PRInt32 aMaxSelfProgress, PRInt32 aCurTotalProgress, PRInt32 aMaxTotalProgress); \
      83                 :   NS_SCRIPTABLE NS_IMETHOD OnLocationChange(nsIWebProgress *aWebProgress, nsIRequest *aRequest, nsIURI *aLocation, PRUint32 aFlags); \
      84                 :   NS_SCRIPTABLE NS_IMETHOD OnStatusChange(nsIWebProgress *aWebProgress, nsIRequest *aRequest, nsresult aStatus, const PRUnichar * aMessage); \
      85                 :   NS_SCRIPTABLE NS_IMETHOD OnSecurityChange(nsIWebProgress *aWebProgress, nsIRequest *aRequest, PRUint32 aState); 
      86                 : 
      87                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      88                 : #define NS_FORWARD_NSIWEBPROGRESSLISTENER(_to) \
      89                 :   NS_SCRIPTABLE NS_IMETHOD OnStateChange(nsIWebProgress *aWebProgress, nsIRequest *aRequest, PRUint32 aStateFlags, nsresult aStatus) { return _to OnStateChange(aWebProgress, aRequest, aStateFlags, aStatus); } \
      90                 :   NS_SCRIPTABLE NS_IMETHOD OnProgressChange(nsIWebProgress *aWebProgress, nsIRequest *aRequest, PRInt32 aCurSelfProgress, PRInt32 aMaxSelfProgress, PRInt32 aCurTotalProgress, PRInt32 aMaxTotalProgress) { return _to OnProgressChange(aWebProgress, aRequest, aCurSelfProgress, aMaxSelfProgress, aCurTotalProgress, aMaxTotalProgress); } \
      91                 :   NS_SCRIPTABLE NS_IMETHOD OnLocationChange(nsIWebProgress *aWebProgress, nsIRequest *aRequest, nsIURI *aLocation, PRUint32 aFlags) { return _to OnLocationChange(aWebProgress, aRequest, aLocation, aFlags); } \
      92                 :   NS_SCRIPTABLE NS_IMETHOD OnStatusChange(nsIWebProgress *aWebProgress, nsIRequest *aRequest, nsresult aStatus, const PRUnichar * aMessage) { return _to OnStatusChange(aWebProgress, aRequest, aStatus, aMessage); } \
      93                 :   NS_SCRIPTABLE NS_IMETHOD OnSecurityChange(nsIWebProgress *aWebProgress, nsIRequest *aRequest, PRUint32 aState) { return _to OnSecurityChange(aWebProgress, aRequest, aState); } 
      94                 : 
      95                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      96                 : #define NS_FORWARD_SAFE_NSIWEBPROGRESSLISTENER(_to) \
      97                 :   NS_SCRIPTABLE NS_IMETHOD OnStateChange(nsIWebProgress *aWebProgress, nsIRequest *aRequest, PRUint32 aStateFlags, nsresult aStatus) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnStateChange(aWebProgress, aRequest, aStateFlags, aStatus); } \
      98                 :   NS_SCRIPTABLE NS_IMETHOD OnProgressChange(nsIWebProgress *aWebProgress, nsIRequest *aRequest, PRInt32 aCurSelfProgress, PRInt32 aMaxSelfProgress, PRInt32 aCurTotalProgress, PRInt32 aMaxTotalProgress) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnProgressChange(aWebProgress, aRequest, aCurSelfProgress, aMaxSelfProgress, aCurTotalProgress, aMaxTotalProgress); } \
      99                 :   NS_SCRIPTABLE NS_IMETHOD OnLocationChange(nsIWebProgress *aWebProgress, nsIRequest *aRequest, nsIURI *aLocation, PRUint32 aFlags) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnLocationChange(aWebProgress, aRequest, aLocation, aFlags); } \
     100                 :   NS_SCRIPTABLE NS_IMETHOD OnStatusChange(nsIWebProgress *aWebProgress, nsIRequest *aRequest, nsresult aStatus, const PRUnichar * aMessage) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnStatusChange(aWebProgress, aRequest, aStatus, aMessage); } \
     101                 :   NS_SCRIPTABLE NS_IMETHOD OnSecurityChange(nsIWebProgress *aWebProgress, nsIRequest *aRequest, PRUint32 aState) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnSecurityChange(aWebProgress, aRequest, aState); } 
     102                 : 
     103                 : #if 0
     104                 : /* Use the code below as a template for the implementation class for this interface. */
     105                 : 
     106                 : /* Header file */
     107                 : class nsWebProgressListener : public nsIWebProgressListener
     108                 : {
     109                 : public:
     110                 :   NS_DECL_ISUPPORTS
     111                 :   NS_DECL_NSIWEBPROGRESSLISTENER
     112                 : 
     113                 :   nsWebProgressListener();
     114                 : 
     115                 : private:
     116                 :   ~nsWebProgressListener();
     117                 : 
     118                 : protected:
     119                 :   /* additional members */
     120                 : };
     121                 : 
     122                 : /* Implementation file */
     123                 : NS_IMPL_ISUPPORTS1(nsWebProgressListener, nsIWebProgressListener)
     124                 : 
     125                 : nsWebProgressListener::nsWebProgressListener()
     126                 : {
     127                 :   /* member initializers and constructor code */
     128                 : }
     129                 : 
     130                 : nsWebProgressListener::~nsWebProgressListener()
     131                 : {
     132                 :   /* destructor code */
     133                 : }
     134                 : 
     135                 : /* void onStateChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in unsigned long aStateFlags, in nsresult aStatus); */
     136                 : NS_IMETHODIMP nsWebProgressListener::OnStateChange(nsIWebProgress *aWebProgress, nsIRequest *aRequest, PRUint32 aStateFlags, nsresult aStatus)
     137                 : {
     138                 :     return NS_ERROR_NOT_IMPLEMENTED;
     139                 : }
     140                 : 
     141                 : /* void onProgressChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in long aCurSelfProgress, in long aMaxSelfProgress, in long aCurTotalProgress, in long aMaxTotalProgress); */
     142                 : NS_IMETHODIMP nsWebProgressListener::OnProgressChange(nsIWebProgress *aWebProgress, nsIRequest *aRequest, PRInt32 aCurSelfProgress, PRInt32 aMaxSelfProgress, PRInt32 aCurTotalProgress, PRInt32 aMaxTotalProgress)
     143                 : {
     144                 :     return NS_ERROR_NOT_IMPLEMENTED;
     145                 : }
     146                 : 
     147                 : /* void onLocationChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in nsIURI aLocation, [optional] in unsigned long aFlags); */
     148                 : NS_IMETHODIMP nsWebProgressListener::OnLocationChange(nsIWebProgress *aWebProgress, nsIRequest *aRequest, nsIURI *aLocation, PRUint32 aFlags)
     149                 : {
     150                 :     return NS_ERROR_NOT_IMPLEMENTED;
     151                 : }
     152                 : 
     153                 : /* void onStatusChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in nsresult aStatus, in wstring aMessage); */
     154                 : NS_IMETHODIMP nsWebProgressListener::OnStatusChange(nsIWebProgress *aWebProgress, nsIRequest *aRequest, nsresult aStatus, const PRUnichar * aMessage)
     155                 : {
     156                 :     return NS_ERROR_NOT_IMPLEMENTED;
     157                 : }
     158                 : 
     159                 : /* void onSecurityChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in unsigned long aState); */
     160                 : NS_IMETHODIMP nsWebProgressListener::OnSecurityChange(nsIWebProgress *aWebProgress, nsIRequest *aRequest, PRUint32 aState)
     161                 : {
     162                 :     return NS_ERROR_NOT_IMPLEMENTED;
     163                 : }
     164                 : 
     165                 : /* End of implementation class template. */
     166                 : #endif
     167                 : 
     168                 : 
     169                 : #endif /* __gen_nsIWebProgressListener_h__ */

Generated by: LCOV version 1.7