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

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIWebBrowserStream.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIWebBrowserStream_h__
       6             : #define __gen_nsIWebBrowserStream_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             : 
      20             : /* starting interface:    nsIWebBrowserStream */
      21             : #define NS_IWEBBROWSERSTREAM_IID_STR "86d02f0e-219b-4cfc-9c88-bd98d2cce0b8"
      22             : 
      23             : #define NS_IWEBBROWSERSTREAM_IID \
      24             :   {0x86d02f0e, 0x219b, 0x4cfc, \
      25             :     { 0x9c, 0x88, 0xbd, 0x98, 0xd2, 0xcc, 0xe0, 0xb8 }}
      26             : 
      27           1 : class NS_NO_VTABLE nsIWebBrowserStream : public nsISupports {
      28             :  public:
      29             : 
      30             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IWEBBROWSERSTREAM_IID)
      31             : 
      32             :   /* void openStream (in nsIURI aBaseURI, in ACString aContentType); */
      33             :   NS_IMETHOD OpenStream(nsIURI *aBaseURI, const nsACString & aContentType) = 0;
      34             : 
      35             :   /* void appendToStream ([array, size_is (aLen), const] in octet aData, in unsigned long aLen); */
      36             :   NS_IMETHOD AppendToStream(const uint8_t *aData, uint32_t aLen) = 0;
      37             : 
      38             :   /* void closeStream (); */
      39             :   NS_IMETHOD CloseStream(void) = 0;
      40             : 
      41             : };
      42             : 
      43             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIWebBrowserStream, NS_IWEBBROWSERSTREAM_IID)
      44             : 
      45             : /* Use this macro when declaring classes that implement this interface. */
      46             : #define NS_DECL_NSIWEBBROWSERSTREAM \
      47             :   NS_IMETHOD OpenStream(nsIURI *aBaseURI, const nsACString & aContentType) override; \
      48             :   NS_IMETHOD AppendToStream(const uint8_t *aData, uint32_t aLen) override; \
      49             :   NS_IMETHOD CloseStream(void) override; 
      50             : 
      51             : /* Use this macro when declaring the members of this interface when the
      52             :    class doesn't implement the interface. This is useful for forwarding. */
      53             : #define NS_DECL_NON_VIRTUAL_NSIWEBBROWSERSTREAM \
      54             :   nsresult OpenStream(nsIURI *aBaseURI, const nsACString & aContentType); \
      55             :   nsresult AppendToStream(const uint8_t *aData, uint32_t aLen); \
      56             :   nsresult CloseStream(void); 
      57             : 
      58             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      59             : #define NS_FORWARD_NSIWEBBROWSERSTREAM(_to) \
      60             :   NS_IMETHOD OpenStream(nsIURI *aBaseURI, const nsACString & aContentType) override { return _to OpenStream(aBaseURI, aContentType); } \
      61             :   NS_IMETHOD AppendToStream(const uint8_t *aData, uint32_t aLen) override { return _to AppendToStream(aData, aLen); } \
      62             :   NS_IMETHOD CloseStream(void) override { return _to CloseStream(); } 
      63             : 
      64             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      65             : #define NS_FORWARD_SAFE_NSIWEBBROWSERSTREAM(_to) \
      66             :   NS_IMETHOD OpenStream(nsIURI *aBaseURI, const nsACString & aContentType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OpenStream(aBaseURI, aContentType); } \
      67             :   NS_IMETHOD AppendToStream(const uint8_t *aData, uint32_t aLen) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AppendToStream(aData, aLen); } \
      68             :   NS_IMETHOD CloseStream(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CloseStream(); } 
      69             : 
      70             : #if 0
      71             : /* Use the code below as a template for the implementation class for this interface. */
      72             : 
      73             : /* Header file */
      74             : class nsWebBrowserStream : public nsIWebBrowserStream
      75             : {
      76             : public:
      77             :   NS_DECL_ISUPPORTS
      78             :   NS_DECL_NSIWEBBROWSERSTREAM
      79             : 
      80             :   nsWebBrowserStream();
      81             : 
      82             : private:
      83             :   ~nsWebBrowserStream();
      84             : 
      85             : protected:
      86             :   /* additional members */
      87             : };
      88             : 
      89             : /* Implementation file */
      90             : NS_IMPL_ISUPPORTS(nsWebBrowserStream, nsIWebBrowserStream)
      91             : 
      92             : nsWebBrowserStream::nsWebBrowserStream()
      93             : {
      94             :   /* member initializers and constructor code */
      95             : }
      96             : 
      97             : nsWebBrowserStream::~nsWebBrowserStream()
      98             : {
      99             :   /* destructor code */
     100             : }
     101             : 
     102             : /* void openStream (in nsIURI aBaseURI, in ACString aContentType); */
     103             : NS_IMETHODIMP nsWebBrowserStream::OpenStream(nsIURI *aBaseURI, const nsACString & aContentType)
     104             : {
     105             :     return NS_ERROR_NOT_IMPLEMENTED;
     106             : }
     107             : 
     108             : /* void appendToStream ([array, size_is (aLen), const] in octet aData, in unsigned long aLen); */
     109             : NS_IMETHODIMP nsWebBrowserStream::AppendToStream(const uint8_t *aData, uint32_t aLen)
     110             : {
     111             :     return NS_ERROR_NOT_IMPLEMENTED;
     112             : }
     113             : 
     114             : /* void closeStream (); */
     115             : NS_IMETHODIMP nsWebBrowserStream::CloseStream()
     116             : {
     117             :     return NS_ERROR_NOT_IMPLEMENTED;
     118             : }
     119             : 
     120             : /* End of implementation class template. */
     121             : #endif
     122             : 
     123             : 
     124             : #endif /* __gen_nsIWebBrowserStream_h__ */

Generated by: LCOV version 1.13