LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsIDOMParser.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 1 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 1 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/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 nsIGlobalObject; /* forward declaration */
      26             : 
      27             : 
      28             : /* starting interface:    nsIDOMParser */
      29             : #define NS_IDOMPARSER_IID_STR "70b9600e-8622-4c93-9ad8-22c28058dc44"
      30             : 
      31             : #define NS_IDOMPARSER_IID \
      32             :   {0x70b9600e, 0x8622, 0x4c93, \
      33             :     { 0x9a, 0xd8, 0x22, 0xc2, 0x80, 0x58, 0xdc, 0x44 }}
      34             : 
      35           0 : class NS_NO_VTABLE 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_IMETHOD ParseFromString(const char16_t * str, const char * contentType, nsIDOMDocument * *_retval) = 0;
      42             : 
      43             :   /* nsIDOMDocument parseFromBuffer ([array, size_is (bufLen), const] in octet buf, in uint32_t bufLen, in string contentType); */
      44             :   NS_IMETHOD ParseFromBuffer(const uint8_t *buf, uint32_t bufLen, const char * contentType, nsIDOMDocument * *_retval) = 0;
      45             : 
      46             :   /* nsIDOMDocument parseFromStream (in nsIInputStream stream, in string charset, in long contentLength, in string contentType); */
      47             :   NS_IMETHOD ParseFromStream(nsIInputStream *stream, const char * charset, int32_t contentLength, const char * contentType, nsIDOMDocument * *_retval) = 0;
      48             : 
      49             :   /* [noscript] void init (in nsIPrincipal principal, in nsIURI documentURI, in nsIURI baseURI, in nsIGlobalObject scriptObject); */
      50             :   NS_IMETHOD Init(nsIPrincipal *principal, nsIURI *documentURI, nsIURI *baseURI, nsIGlobalObject *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_IMETHOD ParseFromString(const char16_t * str, const char * contentType, nsIDOMDocument * *_retval) override; \
      59             :   NS_IMETHOD ParseFromBuffer(const uint8_t *buf, uint32_t bufLen, const char * contentType, nsIDOMDocument * *_retval) override; \
      60             :   NS_IMETHOD ParseFromStream(nsIInputStream *stream, const char * charset, int32_t contentLength, const char * contentType, nsIDOMDocument * *_retval) override; \
      61             :   NS_IMETHOD Init(nsIPrincipal *principal, nsIURI *documentURI, nsIURI *baseURI, nsIGlobalObject *scriptObject) override; 
      62             : 
      63             : /* Use this macro when declaring the members of this interface when the
      64             :    class doesn't implement the interface. This is useful for forwarding. */
      65             : #define NS_DECL_NON_VIRTUAL_NSIDOMPARSER \
      66             :   nsresult ParseFromString(const char16_t * str, const char * contentType, nsIDOMDocument * *_retval); \
      67             :   nsresult ParseFromBuffer(const uint8_t *buf, uint32_t bufLen, const char * contentType, nsIDOMDocument * *_retval); \
      68             :   nsresult ParseFromStream(nsIInputStream *stream, const char * charset, int32_t contentLength, const char * contentType, nsIDOMDocument * *_retval); \
      69             :   nsresult Init(nsIPrincipal *principal, nsIURI *documentURI, nsIURI *baseURI, nsIGlobalObject *scriptObject); 
      70             : 
      71             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      72             : #define NS_FORWARD_NSIDOMPARSER(_to) \
      73             :   NS_IMETHOD ParseFromString(const char16_t * str, const char * contentType, nsIDOMDocument * *_retval) override { return _to ParseFromString(str, contentType, _retval); } \
      74             :   NS_IMETHOD ParseFromBuffer(const uint8_t *buf, uint32_t bufLen, const char * contentType, nsIDOMDocument * *_retval) override { return _to ParseFromBuffer(buf, bufLen, contentType, _retval); } \
      75             :   NS_IMETHOD ParseFromStream(nsIInputStream *stream, const char * charset, int32_t contentLength, const char * contentType, nsIDOMDocument * *_retval) override { return _to ParseFromStream(stream, charset, contentLength, contentType, _retval); } \
      76             :   NS_IMETHOD Init(nsIPrincipal *principal, nsIURI *documentURI, nsIURI *baseURI, nsIGlobalObject *scriptObject) override { return _to Init(principal, documentURI, baseURI, scriptObject); } 
      77             : 
      78             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      79             : #define NS_FORWARD_SAFE_NSIDOMPARSER(_to) \
      80             :   NS_IMETHOD ParseFromString(const char16_t * str, const char * contentType, nsIDOMDocument * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ParseFromString(str, contentType, _retval); } \
      81             :   NS_IMETHOD ParseFromBuffer(const uint8_t *buf, uint32_t bufLen, const char * contentType, nsIDOMDocument * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ParseFromBuffer(buf, bufLen, contentType, _retval); } \
      82             :   NS_IMETHOD ParseFromStream(nsIInputStream *stream, const char * charset, int32_t contentLength, const char * contentType, nsIDOMDocument * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ParseFromStream(stream, charset, contentLength, contentType, _retval); } \
      83             :   NS_IMETHOD Init(nsIPrincipal *principal, nsIURI *documentURI, nsIURI *baseURI, nsIGlobalObject *scriptObject) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(principal, documentURI, baseURI, scriptObject); } 
      84             : 
      85             : #if 0
      86             : /* Use the code below as a template for the implementation class for this interface. */
      87             : 
      88             : /* Header file */
      89             : class nsDOMParser : public nsIDOMParser
      90             : {
      91             : public:
      92             :   NS_DECL_ISUPPORTS
      93             :   NS_DECL_NSIDOMPARSER
      94             : 
      95             :   nsDOMParser();
      96             : 
      97             : private:
      98             :   ~nsDOMParser();
      99             : 
     100             : protected:
     101             :   /* additional members */
     102             : };
     103             : 
     104             : /* Implementation file */
     105             : NS_IMPL_ISUPPORTS(nsDOMParser, nsIDOMParser)
     106             : 
     107             : nsDOMParser::nsDOMParser()
     108             : {
     109             :   /* member initializers and constructor code */
     110             : }
     111             : 
     112             : nsDOMParser::~nsDOMParser()
     113             : {
     114             :   /* destructor code */
     115             : }
     116             : 
     117             : /* nsIDOMDocument parseFromString (in wstring str, in string contentType); */
     118             : NS_IMETHODIMP nsDOMParser::ParseFromString(const char16_t * str, const char * contentType, nsIDOMDocument * *_retval)
     119             : {
     120             :     return NS_ERROR_NOT_IMPLEMENTED;
     121             : }
     122             : 
     123             : /* nsIDOMDocument parseFromBuffer ([array, size_is (bufLen), const] in octet buf, in uint32_t bufLen, in string contentType); */
     124             : NS_IMETHODIMP nsDOMParser::ParseFromBuffer(const uint8_t *buf, uint32_t bufLen, const char * contentType, nsIDOMDocument * *_retval)
     125             : {
     126             :     return NS_ERROR_NOT_IMPLEMENTED;
     127             : }
     128             : 
     129             : /* nsIDOMDocument parseFromStream (in nsIInputStream stream, in string charset, in long contentLength, in string contentType); */
     130             : NS_IMETHODIMP nsDOMParser::ParseFromStream(nsIInputStream *stream, const char * charset, int32_t contentLength, const char * contentType, nsIDOMDocument * *_retval)
     131             : {
     132             :     return NS_ERROR_NOT_IMPLEMENTED;
     133             : }
     134             : 
     135             : /* [noscript] void init (in nsIPrincipal principal, in nsIURI documentURI, in nsIURI baseURI, in nsIGlobalObject scriptObject); */
     136             : NS_IMETHODIMP nsDOMParser::Init(nsIPrincipal *principal, nsIURI *documentURI, nsIURI *baseURI, nsIGlobalObject *scriptObject)
     137             : {
     138             :     return NS_ERROR_NOT_IMPLEMENTED;
     139             : }
     140             : 
     141             : /* End of implementation class template. */
     142             : #endif
     143             : 
     144             : #define NS_DOMPARSER_CID                            \
     145             :  { /* 3a8a3a50-512c-11d4-9a54-000064657374 */       \
     146             :    0x3a8a3a50, 0x512c, 0x11d4,                      \
     147             :   {0x9a, 0x54, 0x00, 0x00, 0x64, 0x65, 0x73, 0x74} }
     148             : #define NS_DOMPARSER_CONTRACTID \
     149             : "@mozilla.org/xmlextras/domparser;1"
     150             : 
     151             : #endif /* __gen_nsIDOMParser_h__ */

Generated by: LCOV version 1.13