LCOV - app.info - objdir/dist/include/nsIDOMParser.h

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

           1                 : /*
           2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/content/base/public/nsIDOMParser.idl
           3                 :  */
           4                 :
           5                 : #ifndef __gen_nsIDOMParser_h__
           6                 : #define __gen_nsIDOMParser_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 nsIInputStream; /* forward declaration */
          18                 :
          19                 : class nsIDOMDocument; /* forward declaration */
          20                 :
          21                 : class nsIURI; /* forward declaration */
          22                 :
          23                 : class nsIPrincipal; /* forward declaration */
          24                 :
          25                 : class nsIScriptGlobalObject; /* forward declaration */
          26                 :
          27                 :
          28                 : /* starting interface:    nsIDOMParser */
          29                 : #define NS_IDOMPARSER_IID_STR "5677f36e-1842-4c6f-a39c-2e5576ab8b40"
          30                 :
          31                 : #define NS_IDOMPARSER_IID \
          32                 :   {0x5677f36e, 0x1842, 0x4c6f, \
          33                 :     { 0xa3, 0x9c, 0x2e, 0x55, 0x76, 0xab, 0x8b, 0x40 }}
          34                 :
          35             569 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMParser : public nsISupports {
          36                 :  public:
          37                 :
          38                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMPARSER_IID)
          39                 :
          40                 :   /* nsIDOMDocument parseFromString (in wstring str, in string contentType); */
          41                 :   NS_SCRIPTABLE NS_IMETHOD ParseFromString(const PRUnichar * str, const char * contentType, nsIDOMDocument * *_retval NS_OUTPARAM) = 0;
          42                 :
          43                 :   /* nsIDOMDocument parseFromBuffer ([array, size_is (bufLen), const] in octet buf, in PRUint32 bufLen, in string contentType); */
          44                 :   NS_SCRIPTABLE NS_IMETHOD ParseFromBuffer(const PRUint8 *buf, PRUint32 bufLen, const char * contentType, nsIDOMDocument * *_retval NS_OUTPARAM) = 0;
          45                 :
          46                 :   /* nsIDOMDocument parseFromStream (in nsIInputStream stream, in string charset, in long contentLength, in string contentType); */
          47                 :   NS_SCRIPTABLE NS_IMETHOD ParseFromStream(nsIInputStream *stream, const char * charset, PRInt32 contentLength, const char * contentType, nsIDOMDocument * *_retval NS_OUTPARAM) = 0;
          48                 :
          49                 :   /* [noscript] void init (in nsIPrincipal principal, in nsIURI documentURI, in nsIURI baseURI, in nsIScriptGlobalObject scriptObject); */
          50                 :   NS_IMETHOD Init(nsIPrincipal *principal, nsIURI *documentURI, nsIURI *baseURI, nsIScriptGlobalObject *scriptObject) = 0;
          51                 :
          52                 : };
          53                 :
          54                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMParser, NS_IDOMPARSER_IID)
          55                 :
          56                 : /* Use this macro when declaring classes that implement this interface. */
          57                 : #define NS_DECL_NSIDOMPARSER \
          58                 :   NS_SCRIPTABLE NS_IMETHOD ParseFromString(const PRUnichar * str, const char * contentType, nsIDOMDocument * *_retval NS_OUTPARAM); \
          59                 :   NS_SCRIPTABLE NS_IMETHOD ParseFromBuffer(const PRUint8 *buf, PRUint32 bufLen, const char * contentType, nsIDOMDocument * *_retval NS_OUTPARAM); \
          60                 :   NS_SCRIPTABLE NS_IMETHOD ParseFromStream(nsIInputStream *stream, const char * charset, PRInt32 contentLength, const char * contentType, nsIDOMDocument * *_retval NS_OUTPARAM); \
          61                 :   NS_IMETHOD Init(nsIPrincipal *principal, nsIURI *documentURI, nsIURI *baseURI, nsIScriptGlobalObject *scriptObject);
          62                 :
          63                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
          64                 : #define NS_FORWARD_NSIDOMPARSER(_to) \
          65                 :   NS_SCRIPTABLE NS_IMETHOD ParseFromString(const PRUnichar * str, const char * contentType, nsIDOMDocument * *_retval NS_OUTPARAM) { return _to ParseFromString(str, contentType, _retval); } \
          66                 :   NS_SCRIPTABLE NS_IMETHOD ParseFromBuffer(const PRUint8 *buf, PRUint32 bufLen, const char * contentType, nsIDOMDocument * *_retval NS_OUTPARAM) { return _to ParseFromBuffer(buf, bufLen, contentType, _retval); } \
          67                 :   NS_SCRIPTABLE NS_IMETHOD ParseFromStream(nsIInputStream *stream, const char * charset, PRInt32 contentLength, const char * contentType, nsIDOMDocument * *_retval NS_OUTPARAM) { return _to ParseFromStream(stream, charset, contentLength, contentType, _retval); } \
          68                 :   NS_IMETHOD Init(nsIPrincipal *principal, nsIURI *documentURI, nsIURI *baseURI, nsIScriptGlobalObject *scriptObject) { return _to Init(principal, documentURI, baseURI, scriptObject); }
          69                 :
          70                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
          71                 : #define NS_FORWARD_SAFE_NSIDOMPARSER(_to) \
          72                 :   NS_SCRIPTABLE NS_IMETHOD ParseFromString(const PRUnichar * str, const char * contentType, nsIDOMDocument * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ParseFromString(str, contentType, _retval); } \
          73                 :   NS_SCRIPTABLE NS_IMETHOD ParseFromBuffer(const PRUint8 *buf, PRUint32 bufLen, const char * contentType, nsIDOMDocument * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ParseFromBuffer(buf, bufLen, contentType, _retval); } \
          74                 :   NS_SCRIPTABLE NS_IMETHOD ParseFromStream(nsIInputStream *stream, const char * charset, PRInt32 contentLength, const char * contentType, nsIDOMDocument * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ParseFromStream(stream, charset, contentLength, contentType, _retval); } \
          75                 :   NS_IMETHOD Init(nsIPrincipal *principal, nsIURI *documentURI, nsIURI *baseURI, nsIScriptGlobalObject *scriptObject) { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(principal, documentURI, baseURI, scriptObject); }
          76                 :
          77                 : #if 0
          78                 : /* Use the code below as a template for the implementation class for this interface. */
          79                 :
          80                 : /* Header file */
          81                 : class nsDOMParser : public nsIDOMParser
          82                 : {
          83                 : public:
          84                 :   NS_DECL_ISUPPORTS
          85                 :   NS_DECL_NSIDOMPARSER
          86                 :
          87                 :   nsDOMParser();
          88                 :
          89                 : private:
          90                 :   ~nsDOMParser();
          91                 :
          92                 : protected:
          93                 :   /* additional members */
          94                 : };
          95                 :
          96                 : /* Implementation file */
          97                 : NS_IMPL_ISUPPORTS1(nsDOMParser, nsIDOMParser)
          98                 :
          99                 : nsDOMParser::nsDOMParser()
         100                 : {
         101                 :   /* member initializers and constructor code */
         102                 : }
         103                 :
         104                 : nsDOMParser::~nsDOMParser()
         105                 : {
         106                 :   /* destructor code */
         107                 : }
         108                 :
         109                 : /* nsIDOMDocument parseFromString (in wstring str, in string contentType); */
         110                 : NS_IMETHODIMP nsDOMParser::ParseFromString(const PRUnichar * str, const char * contentType, nsIDOMDocument * *_retval NS_OUTPARAM)
         111                 : {
         112                 :     return NS_ERROR_NOT_IMPLEMENTED;
         113                 : }
         114                 :
         115                 : /* nsIDOMDocument parseFromBuffer ([array, size_is (bufLen), const] in octet buf, in PRUint32 bufLen, in string contentType); */
         116                 : NS_IMETHODIMP nsDOMParser::ParseFromBuffer(const PRUint8 *buf, PRUint32 bufLen, const char * contentType, nsIDOMDocument * *_retval NS_OUTPARAM)
         117                 : {
         118                 :     return NS_ERROR_NOT_IMPLEMENTED;
         119                 : }
         120                 :
         121                 : /* nsIDOMDocument parseFromStream (in nsIInputStream stream, in string charset, in long contentLength, in string contentType); */
         122                 : NS_IMETHODIMP nsDOMParser::ParseFromStream(nsIInputStream *stream, const char * charset, PRInt32 contentLength, const char * contentType, nsIDOMDocument * *_retval NS_OUTPARAM)
         123                 : {
         124                 :     return NS_ERROR_NOT_IMPLEMENTED;
         125                 : }
         126                 :
         127                 : /* [noscript] void init (in nsIPrincipal principal, in nsIURI documentURI, in nsIURI baseURI, in nsIScriptGlobalObject scriptObject); */
         128                 : NS_IMETHODIMP nsDOMParser::Init(nsIPrincipal *principal, nsIURI *documentURI, nsIURI *baseURI, nsIScriptGlobalObject *scriptObject)
         129                 : {
         130                 :     return NS_ERROR_NOT_IMPLEMENTED;
         131                 : }
         132                 :
         133                 : /* End of implementation class template. */
         134                 : #endif
         135                 :
         136                 :
         137                 : /* starting interface:    nsIDOMParserJS */
         138                 : #define NS_IDOMPARSERJS_IID_STR "ba6bcd6c-63d8-49b3-bc8a-1e5e895645bc"
         139                 :
         140                 : #define NS_IDOMPARSERJS_IID \
         141                 :   {0xba6bcd6c, 0x63d8, 0x49b3, \
         142                 :     { 0xbc, 0x8a, 0x1e, 0x5e, 0x89, 0x56, 0x45, 0xbc }}
         143                 :
         144             569 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMParserJS : public nsISupports {
         145                 :  public:
         146                 :
         147                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMPARSERJS_IID)
         148                 :
         149                 :   /* void init ([optional] in nsIPrincipal principal, [optional] in nsIURI documentURI, [optional] in nsIURI baseURI); */
         150                 :   NS_SCRIPTABLE NS_IMETHOD Init(nsIPrincipal *principal, nsIURI *documentURI, nsIURI *baseURI) = 0;
         151                 :
         152                 : };
         153                 :
         154                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMParserJS, NS_IDOMPARSERJS_IID)
         155                 :
         156                 : /* Use this macro when declaring classes that implement this interface. */
         157                 : #define NS_DECL_NSIDOMPARSERJS \
         158                 :   NS_SCRIPTABLE NS_IMETHOD Init(nsIPrincipal *principal, nsIURI *documentURI, nsIURI *baseURI);
         159                 :
         160                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
         161                 : #define NS_FORWARD_NSIDOMPARSERJS(_to) \
         162                 :   NS_SCRIPTABLE NS_IMETHOD Init(nsIPrincipal *principal, nsIURI *documentURI, nsIURI *baseURI) { return _to Init(principal, documentURI, baseURI); }
         163                 :
         164                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
         165                 : #define NS_FORWARD_SAFE_NSIDOMPARSERJS(_to) \
         166                 :   NS_SCRIPTABLE NS_IMETHOD Init(nsIPrincipal *principal, nsIURI *documentURI, nsIURI *baseURI) { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(principal, documentURI, baseURI); }
         167                 :
         168                 : #if 0
         169                 : /* Use the code below as a template for the implementation class for this interface. */
         170                 :
         171                 : /* Header file */
         172                 : class nsDOMParserJS : public nsIDOMParserJS
         173                 : {
         174                 : public:
         175                 :   NS_DECL_ISUPPORTS
         176                 :   NS_DECL_NSIDOMPARSERJS
         177                 :
         178                 :   nsDOMParserJS();
         179                 :
         180                 : private:
         181                 :   ~nsDOMParserJS();
         182                 :
         183                 : protected:
         184                 :   /* additional members */
         185                 : };
         186                 :
         187                 : /* Implementation file */
         188                 : NS_IMPL_ISUPPORTS1(nsDOMParserJS, nsIDOMParserJS)
         189                 :
         190                 : nsDOMParserJS::nsDOMParserJS()
         191                 : {
         192                 :   /* member initializers and constructor code */
         193                 : }
         194                 :
         195                 : nsDOMParserJS::~nsDOMParserJS()
         196                 : {
         197                 :   /* destructor code */
         198                 : }
         199                 :
         200                 : /* void init ([optional] in nsIPrincipal principal, [optional] in nsIURI documentURI, [optional] in nsIURI baseURI); */
         201                 : NS_IMETHODIMP nsDOMParserJS::Init(nsIPrincipal *principal, nsIURI *documentURI, nsIURI *baseURI)
         202                 : {
         203                 :     return NS_ERROR_NOT_IMPLEMENTED;
         204                 : }
         205                 :
         206                 : /* End of implementation class template. */
         207                 : #endif
         208                 :
         209                 : #define NS_DOMPARSER_CID                            \
         210                 :  { /* 3a8a3a50-512c-11d4-9a54-000064657374 */       \
         211                 :    0x3a8a3a50, 0x512c, 0x11d4,                      \
         212                 :   {0x9a, 0x54, 0x00, 0x00, 0x64, 0x65, 0x73, 0x74} }
         213                 : #define NS_DOMPARSER_CONTRACTID \
         214                 : "@mozilla.org/xmlextras/domparser;1"
         215                 :
         216                 : #endif /* __gen_nsIDOMParser_h__ */

Generated by: LCOV version 1.7