LCOV - code coverage report
Current view: directory - objdir/dist/include - nsIHttpProtocolHandler.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/netwerk/protocol/http/nsIHttpProtocolHandler.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIHttpProtocolHandler_h__
       6                 : #define __gen_nsIHttpProtocolHandler_h__
       7                 : 
       8                 : 
       9                 : #ifndef __gen_nsIProxiedProtocolHandler_h__
      10                 : #include "nsIProxiedProtocolHandler.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                 : 
      18                 : /* starting interface:    nsIHttpProtocolHandler */
      19                 : #define NS_IHTTPPROTOCOLHANDLER_IID_STR "9814fdf0-5ac3-11e0-80e3-0800200c9a66"
      20                 : 
      21                 : #define NS_IHTTPPROTOCOLHANDLER_IID \
      22                 :   {0x9814fdf0, 0x5ac3, 0x11e0, \
      23                 :     { 0x80, 0xe3, 0x08, 0x00, 0x20, 0x0c, 0x9a, 0x66 }}
      24                 : 
      25             718 : class NS_NO_VTABLE NS_SCRIPTABLE nsIHttpProtocolHandler : public nsIProxiedProtocolHandler {
      26                 :  public: 
      27                 : 
      28                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IHTTPPROTOCOLHANDLER_IID)
      29                 : 
      30                 :   /* readonly attribute ACString userAgent; */
      31                 :   NS_SCRIPTABLE NS_IMETHOD GetUserAgent(nsACString & aUserAgent) = 0;
      32                 : 
      33                 :   /* readonly attribute ACString appName; */
      34                 :   NS_SCRIPTABLE NS_IMETHOD GetAppName(nsACString & aAppName) = 0;
      35                 : 
      36                 :   /* readonly attribute ACString appVersion; */
      37                 :   NS_SCRIPTABLE NS_IMETHOD GetAppVersion(nsACString & aAppVersion) = 0;
      38                 : 
      39                 :   /* readonly attribute ACString product; */
      40                 :   NS_SCRIPTABLE NS_IMETHOD GetProduct(nsACString & aProduct) = 0;
      41                 : 
      42                 :   /* readonly attribute ACString productSub; */
      43                 :   NS_SCRIPTABLE NS_IMETHOD GetProductSub(nsACString & aProductSub) = 0;
      44                 : 
      45                 :   /* readonly attribute ACString platform; */
      46                 :   NS_SCRIPTABLE NS_IMETHOD GetPlatform(nsACString & aPlatform) = 0;
      47                 : 
      48                 :   /* readonly attribute ACString oscpu; */
      49                 :   NS_SCRIPTABLE NS_IMETHOD GetOscpu(nsACString & aOscpu) = 0;
      50                 : 
      51                 :   /* readonly attribute ACString misc; */
      52                 :   NS_SCRIPTABLE NS_IMETHOD GetMisc(nsACString & aMisc) = 0;
      53                 : 
      54                 : };
      55                 : 
      56                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIHttpProtocolHandler, NS_IHTTPPROTOCOLHANDLER_IID)
      57                 : 
      58                 : /* Use this macro when declaring classes that implement this interface. */
      59                 : #define NS_DECL_NSIHTTPPROTOCOLHANDLER \
      60                 :   NS_SCRIPTABLE NS_IMETHOD GetUserAgent(nsACString & aUserAgent); \
      61                 :   NS_SCRIPTABLE NS_IMETHOD GetAppName(nsACString & aAppName); \
      62                 :   NS_SCRIPTABLE NS_IMETHOD GetAppVersion(nsACString & aAppVersion); \
      63                 :   NS_SCRIPTABLE NS_IMETHOD GetProduct(nsACString & aProduct); \
      64                 :   NS_SCRIPTABLE NS_IMETHOD GetProductSub(nsACString & aProductSub); \
      65                 :   NS_SCRIPTABLE NS_IMETHOD GetPlatform(nsACString & aPlatform); \
      66                 :   NS_SCRIPTABLE NS_IMETHOD GetOscpu(nsACString & aOscpu); \
      67                 :   NS_SCRIPTABLE NS_IMETHOD GetMisc(nsACString & aMisc); 
      68                 : 
      69                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      70                 : #define NS_FORWARD_NSIHTTPPROTOCOLHANDLER(_to) \
      71                 :   NS_SCRIPTABLE NS_IMETHOD GetUserAgent(nsACString & aUserAgent) { return _to GetUserAgent(aUserAgent); } \
      72                 :   NS_SCRIPTABLE NS_IMETHOD GetAppName(nsACString & aAppName) { return _to GetAppName(aAppName); } \
      73                 :   NS_SCRIPTABLE NS_IMETHOD GetAppVersion(nsACString & aAppVersion) { return _to GetAppVersion(aAppVersion); } \
      74                 :   NS_SCRIPTABLE NS_IMETHOD GetProduct(nsACString & aProduct) { return _to GetProduct(aProduct); } \
      75                 :   NS_SCRIPTABLE NS_IMETHOD GetProductSub(nsACString & aProductSub) { return _to GetProductSub(aProductSub); } \
      76                 :   NS_SCRIPTABLE NS_IMETHOD GetPlatform(nsACString & aPlatform) { return _to GetPlatform(aPlatform); } \
      77                 :   NS_SCRIPTABLE NS_IMETHOD GetOscpu(nsACString & aOscpu) { return _to GetOscpu(aOscpu); } \
      78                 :   NS_SCRIPTABLE NS_IMETHOD GetMisc(nsACString & aMisc) { return _to GetMisc(aMisc); } 
      79                 : 
      80                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      81                 : #define NS_FORWARD_SAFE_NSIHTTPPROTOCOLHANDLER(_to) \
      82                 :   NS_SCRIPTABLE NS_IMETHOD GetUserAgent(nsACString & aUserAgent) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUserAgent(aUserAgent); } \
      83                 :   NS_SCRIPTABLE NS_IMETHOD GetAppName(nsACString & aAppName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAppName(aAppName); } \
      84                 :   NS_SCRIPTABLE NS_IMETHOD GetAppVersion(nsACString & aAppVersion) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAppVersion(aAppVersion); } \
      85                 :   NS_SCRIPTABLE NS_IMETHOD GetProduct(nsACString & aProduct) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProduct(aProduct); } \
      86                 :   NS_SCRIPTABLE NS_IMETHOD GetProductSub(nsACString & aProductSub) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProductSub(aProductSub); } \
      87                 :   NS_SCRIPTABLE NS_IMETHOD GetPlatform(nsACString & aPlatform) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPlatform(aPlatform); } \
      88                 :   NS_SCRIPTABLE NS_IMETHOD GetOscpu(nsACString & aOscpu) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOscpu(aOscpu); } \
      89                 :   NS_SCRIPTABLE NS_IMETHOD GetMisc(nsACString & aMisc) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMisc(aMisc); } 
      90                 : 
      91                 : #if 0
      92                 : /* Use the code below as a template for the implementation class for this interface. */
      93                 : 
      94                 : /* Header file */
      95                 : class nsHttpProtocolHandler : public nsIHttpProtocolHandler
      96                 : {
      97                 : public:
      98                 :   NS_DECL_ISUPPORTS
      99                 :   NS_DECL_NSIHTTPPROTOCOLHANDLER
     100                 : 
     101                 :   nsHttpProtocolHandler();
     102                 : 
     103                 : private:
     104                 :   ~nsHttpProtocolHandler();
     105                 : 
     106                 : protected:
     107                 :   /* additional members */
     108                 : };
     109                 : 
     110                 : /* Implementation file */
     111                 : NS_IMPL_ISUPPORTS1(nsHttpProtocolHandler, nsIHttpProtocolHandler)
     112                 : 
     113                 : nsHttpProtocolHandler::nsHttpProtocolHandler()
     114                 : {
     115                 :   /* member initializers and constructor code */
     116                 : }
     117                 : 
     118                 : nsHttpProtocolHandler::~nsHttpProtocolHandler()
     119                 : {
     120                 :   /* destructor code */
     121                 : }
     122                 : 
     123                 : /* readonly attribute ACString userAgent; */
     124                 : NS_IMETHODIMP nsHttpProtocolHandler::GetUserAgent(nsACString & aUserAgent)
     125                 : {
     126                 :     return NS_ERROR_NOT_IMPLEMENTED;
     127                 : }
     128                 : 
     129                 : /* readonly attribute ACString appName; */
     130                 : NS_IMETHODIMP nsHttpProtocolHandler::GetAppName(nsACString & aAppName)
     131                 : {
     132                 :     return NS_ERROR_NOT_IMPLEMENTED;
     133                 : }
     134                 : 
     135                 : /* readonly attribute ACString appVersion; */
     136                 : NS_IMETHODIMP nsHttpProtocolHandler::GetAppVersion(nsACString & aAppVersion)
     137                 : {
     138                 :     return NS_ERROR_NOT_IMPLEMENTED;
     139                 : }
     140                 : 
     141                 : /* readonly attribute ACString product; */
     142                 : NS_IMETHODIMP nsHttpProtocolHandler::GetProduct(nsACString & aProduct)
     143                 : {
     144                 :     return NS_ERROR_NOT_IMPLEMENTED;
     145                 : }
     146                 : 
     147                 : /* readonly attribute ACString productSub; */
     148                 : NS_IMETHODIMP nsHttpProtocolHandler::GetProductSub(nsACString & aProductSub)
     149                 : {
     150                 :     return NS_ERROR_NOT_IMPLEMENTED;
     151                 : }
     152                 : 
     153                 : /* readonly attribute ACString platform; */
     154                 : NS_IMETHODIMP nsHttpProtocolHandler::GetPlatform(nsACString & aPlatform)
     155                 : {
     156                 :     return NS_ERROR_NOT_IMPLEMENTED;
     157                 : }
     158                 : 
     159                 : /* readonly attribute ACString oscpu; */
     160                 : NS_IMETHODIMP nsHttpProtocolHandler::GetOscpu(nsACString & aOscpu)
     161                 : {
     162                 :     return NS_ERROR_NOT_IMPLEMENTED;
     163                 : }
     164                 : 
     165                 : /* readonly attribute ACString misc; */
     166                 : NS_IMETHODIMP nsHttpProtocolHandler::GetMisc(nsACString & aMisc)
     167                 : {
     168                 :     return NS_ERROR_NOT_IMPLEMENTED;
     169                 : }
     170                 : 
     171                 : /* End of implementation class template. */
     172                 : #endif
     173                 : 
     174                 : // ----------- Categories ----------- 
     175                 : /**
     176                 :  * At initialization time, the HTTP handler will initialize each service
     177                 :  * registered under this category:
     178                 :  */
     179                 : #define NS_HTTP_STARTUP_CATEGORY "http-startup-category"
     180                 : // ----------- Observer topics ----------- 
     181                 : /**
     182                 :  * nsIObserver notification corresponding to startup category.  Services
     183                 :  * registered under the startup category will receive this observer topic at
     184                 :  * startup if they implement nsIObserver.  The "subject" of the notification
     185                 :  * is the nsIHttpProtocolHandler instance.
     186                 :  */
     187                 : #define NS_HTTP_STARTUP_TOPIC "http-startup"
     188                 : /**
     189                 :  * Before an HTTP request is sent to the server, this observer topic is
     190                 :  * notified.  The observer of this topic can then choose to set any additional
     191                 :  * headers for this request before the request is actually sent to the server.
     192                 :  * The "subject" of the notification is the nsIHttpChannel instance.
     193                 :  */
     194                 : #define NS_HTTP_ON_MODIFY_REQUEST_TOPIC "http-on-modify-request"
     195                 : /**
     196                 :  * After an HTTP server response is received, this observer topic is notified.
     197                 :  * The observer of this topic can interrogate the response.  The "subject" of
     198                 :  * the notification is the nsIHttpChannel instance.
     199                 :  */
     200                 : #define NS_HTTP_ON_EXAMINE_RESPONSE_TOPIC "http-on-examine-response"
     201                 : /**
     202                 :  * The observer of this topic is notified after the received HTTP response
     203                 :  * is merged with data from the browser cache.  This means that, among other
     204                 :  * things, the Content-Type header will be set correctly.
     205                 :  */
     206                 : #define NS_HTTP_ON_EXAMINE_MERGED_RESPONSE_TOPIC "http-on-examine-merged-response"
     207                 : /**
     208                 :  * The observer of this topic is notified before data is read from the cache.
     209                 :  * The notification is sent if and only if there is no network communication
     210                 :  * at all.
     211                 :  */
     212                 : #define NS_HTTP_ON_EXAMINE_CACHED_RESPONSE_TOPIC "http-on-examine-cached-response"
     213                 : 
     214                 : #endif /* __gen_nsIHttpProtocolHandler_h__ */

Generated by: LCOV version 1.7