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

       1                 : /*
       2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/embedding/browser/webBrowser/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               0 : class NS_NO_VTABLE NS_SCRIPTABLE 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_SCRIPTABLE 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_SCRIPTABLE NS_IMETHOD AppendToStream(const PRUint8 *aData, PRUint32 aLen) = 0;
      37                 : 
      38                 :   /* void closeStream (); */
      39                 :   NS_SCRIPTABLE 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_SCRIPTABLE NS_IMETHOD OpenStream(nsIURI *aBaseURI, const nsACString & aContentType); \
      48                 :   NS_SCRIPTABLE NS_IMETHOD AppendToStream(const PRUint8 *aData, PRUint32 aLen); \
      49                 :   NS_SCRIPTABLE NS_IMETHOD CloseStream(void); 
      50                 : 
      51                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      52                 : #define NS_FORWARD_NSIWEBBROWSERSTREAM(_to) \
      53                 :   NS_SCRIPTABLE NS_IMETHOD OpenStream(nsIURI *aBaseURI, const nsACString & aContentType) { return _to OpenStream(aBaseURI, aContentType); } \
      54                 :   NS_SCRIPTABLE NS_IMETHOD AppendToStream(const PRUint8 *aData, PRUint32 aLen) { return _to AppendToStream(aData, aLen); } \
      55                 :   NS_SCRIPTABLE NS_IMETHOD CloseStream(void) { return _to CloseStream(); } 
      56                 : 
      57                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      58                 : #define NS_FORWARD_SAFE_NSIWEBBROWSERSTREAM(_to) \
      59                 :   NS_SCRIPTABLE NS_IMETHOD OpenStream(nsIURI *aBaseURI, const nsACString & aContentType) { return !_to ? NS_ERROR_NULL_POINTER : _to->OpenStream(aBaseURI, aContentType); } \
      60                 :   NS_SCRIPTABLE NS_IMETHOD AppendToStream(const PRUint8 *aData, PRUint32 aLen) { return !_to ? NS_ERROR_NULL_POINTER : _to->AppendToStream(aData, aLen); } \
      61                 :   NS_SCRIPTABLE NS_IMETHOD CloseStream(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->CloseStream(); } 
      62                 : 
      63                 : #if 0
      64                 : /* Use the code below as a template for the implementation class for this interface. */
      65                 : 
      66                 : /* Header file */
      67                 : class nsWebBrowserStream : public nsIWebBrowserStream
      68                 : {
      69                 : public:
      70                 :   NS_DECL_ISUPPORTS
      71                 :   NS_DECL_NSIWEBBROWSERSTREAM
      72                 : 
      73                 :   nsWebBrowserStream();
      74                 : 
      75                 : private:
      76                 :   ~nsWebBrowserStream();
      77                 : 
      78                 : protected:
      79                 :   /* additional members */
      80                 : };
      81                 : 
      82                 : /* Implementation file */
      83                 : NS_IMPL_ISUPPORTS1(nsWebBrowserStream, nsIWebBrowserStream)
      84                 : 
      85                 : nsWebBrowserStream::nsWebBrowserStream()
      86                 : {
      87                 :   /* member initializers and constructor code */
      88                 : }
      89                 : 
      90                 : nsWebBrowserStream::~nsWebBrowserStream()
      91                 : {
      92                 :   /* destructor code */
      93                 : }
      94                 : 
      95                 : /* void openStream (in nsIURI aBaseURI, in ACString aContentType); */
      96                 : NS_IMETHODIMP nsWebBrowserStream::OpenStream(nsIURI *aBaseURI, const nsACString & aContentType)
      97                 : {
      98                 :     return NS_ERROR_NOT_IMPLEMENTED;
      99                 : }
     100                 : 
     101                 : /* void appendToStream ([array, size_is (aLen), const] in octet aData, in unsigned long aLen); */
     102                 : NS_IMETHODIMP nsWebBrowserStream::AppendToStream(const PRUint8 *aData, PRUint32 aLen)
     103                 : {
     104                 :     return NS_ERROR_NOT_IMPLEMENTED;
     105                 : }
     106                 : 
     107                 : /* void closeStream (); */
     108                 : NS_IMETHODIMP nsWebBrowserStream::CloseStream()
     109                 : {
     110                 :     return NS_ERROR_NOT_IMPLEMENTED;
     111                 : }
     112                 : 
     113                 : /* End of implementation class template. */
     114                 : #endif
     115                 : 
     116                 : 
     117                 : #endif /* __gen_nsIWebBrowserStream_h__ */

Generated by: LCOV version 1.7