LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsIStructuredCloneContainer.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/nsIStructuredCloneContainer.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIStructuredCloneContainer_h__
       6             : #define __gen_nsIStructuredCloneContainer_h__
       7             : 
       8             : 
       9             : #ifndef __gen_nsISupports_h__
      10             : #include "nsISupports.h"
      11             : #endif
      12             : 
      13             : #include "js/Value.h"
      14             : 
      15             : /* For IDL files that don't want to include root IDL files. */
      16             : #ifndef NS_NO_VTABLE
      17             : #define NS_NO_VTABLE
      18             : #endif
      19             : class nsIVariant; /* forward declaration */
      20             : 
      21             : class nsIDocument; /* forward declaration */
      22             : 
      23             : #include "js/TypeDecls.h"
      24             : 
      25             : /* starting interface:    nsIStructuredCloneContainer */
      26             : #define NS_ISTRUCTUREDCLONECONTAINER_IID_STR "c664aae7-0d67-4155-a2dd-a3861778626f"
      27             : 
      28             : #define NS_ISTRUCTUREDCLONECONTAINER_IID \
      29             :   {0xc664aae7, 0x0d67, 0x4155, \
      30             :     { 0xa2, 0xdd, 0xa3, 0x86, 0x17, 0x78, 0x62, 0x6f }}
      31             : 
      32           0 : class NS_NO_VTABLE nsIStructuredCloneContainer : public nsISupports {
      33             :  public:
      34             : 
      35             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISTRUCTUREDCLONECONTAINER_IID)
      36             : 
      37             :   /* [implicit_jscontext,noscript] void initFromJSVal (in jsval aData); */
      38             :   NS_IMETHOD InitFromJSVal(JS::HandleValue aData, JSContext* cx) = 0;
      39             : 
      40             :   /* void initFromBase64 (in AString aData, in unsigned long aFormatVersion); */
      41             :   NS_IMETHOD InitFromBase64(const nsAString & aData, uint32_t aFormatVersion) = 0;
      42             : 
      43             :   /* [implicit_jscontext] jsval deserializeToJsval (); */
      44             :   NS_IMETHOD DeserializeToJsval(JSContext* cx, JS::MutableHandleValue _retval) = 0;
      45             : 
      46             :   /* [implicit_jscontext] nsIVariant deserializeToVariant (); */
      47             :   NS_IMETHOD DeserializeToVariant(JSContext* cx, nsIVariant * *_retval) = 0;
      48             : 
      49             :   /* AString getDataAsBase64 (); */
      50             :   NS_IMETHOD GetDataAsBase64(nsAString & _retval) = 0;
      51             : 
      52             :   /* readonly attribute unsigned long long serializedNBytes; */
      53             :   NS_IMETHOD GetSerializedNBytes(uint64_t *aSerializedNBytes) = 0;
      54             : 
      55             :   /* readonly attribute unsigned long formatVersion; */
      56             :   NS_IMETHOD GetFormatVersion(uint32_t *aFormatVersion) = 0;
      57             : 
      58             : };
      59             : 
      60             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIStructuredCloneContainer, NS_ISTRUCTUREDCLONECONTAINER_IID)
      61             : 
      62             : /* Use this macro when declaring classes that implement this interface. */
      63             : #define NS_DECL_NSISTRUCTUREDCLONECONTAINER \
      64             :   NS_IMETHOD InitFromJSVal(JS::HandleValue aData, JSContext* cx) override; \
      65             :   NS_IMETHOD InitFromBase64(const nsAString & aData, uint32_t aFormatVersion) override; \
      66             :   NS_IMETHOD DeserializeToJsval(JSContext* cx, JS::MutableHandleValue _retval) override; \
      67             :   NS_IMETHOD DeserializeToVariant(JSContext* cx, nsIVariant * *_retval) override; \
      68             :   NS_IMETHOD GetDataAsBase64(nsAString & _retval) override; \
      69             :   NS_IMETHOD GetSerializedNBytes(uint64_t *aSerializedNBytes) override; \
      70             :   NS_IMETHOD GetFormatVersion(uint32_t *aFormatVersion) override; 
      71             : 
      72             : /* Use this macro when declaring the members of this interface when the
      73             :    class doesn't implement the interface. This is useful for forwarding. */
      74             : #define NS_DECL_NON_VIRTUAL_NSISTRUCTUREDCLONECONTAINER \
      75             :   nsresult InitFromJSVal(JS::HandleValue aData, JSContext* cx); \
      76             :   nsresult InitFromBase64(const nsAString & aData, uint32_t aFormatVersion); \
      77             :   nsresult DeserializeToJsval(JSContext* cx, JS::MutableHandleValue _retval); \
      78             :   nsresult DeserializeToVariant(JSContext* cx, nsIVariant * *_retval); \
      79             :   nsresult GetDataAsBase64(nsAString & _retval); \
      80             :   nsresult GetSerializedNBytes(uint64_t *aSerializedNBytes); \
      81             :   nsresult GetFormatVersion(uint32_t *aFormatVersion); 
      82             : 
      83             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      84             : #define NS_FORWARD_NSISTRUCTUREDCLONECONTAINER(_to) \
      85             :   NS_IMETHOD InitFromJSVal(JS::HandleValue aData, JSContext* cx) override { return _to InitFromJSVal(aData, cx); } \
      86             :   NS_IMETHOD InitFromBase64(const nsAString & aData, uint32_t aFormatVersion) override { return _to InitFromBase64(aData, aFormatVersion); } \
      87             :   NS_IMETHOD DeserializeToJsval(JSContext* cx, JS::MutableHandleValue _retval) override { return _to DeserializeToJsval(cx, _retval); } \
      88             :   NS_IMETHOD DeserializeToVariant(JSContext* cx, nsIVariant * *_retval) override { return _to DeserializeToVariant(cx, _retval); } \
      89             :   NS_IMETHOD GetDataAsBase64(nsAString & _retval) override { return _to GetDataAsBase64(_retval); } \
      90             :   NS_IMETHOD GetSerializedNBytes(uint64_t *aSerializedNBytes) override { return _to GetSerializedNBytes(aSerializedNBytes); } \
      91             :   NS_IMETHOD GetFormatVersion(uint32_t *aFormatVersion) override { return _to GetFormatVersion(aFormatVersion); } 
      92             : 
      93             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      94             : #define NS_FORWARD_SAFE_NSISTRUCTUREDCLONECONTAINER(_to) \
      95             :   NS_IMETHOD InitFromJSVal(JS::HandleValue aData, JSContext* cx) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InitFromJSVal(aData, cx); } \
      96             :   NS_IMETHOD InitFromBase64(const nsAString & aData, uint32_t aFormatVersion) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InitFromBase64(aData, aFormatVersion); } \
      97             :   NS_IMETHOD DeserializeToJsval(JSContext* cx, JS::MutableHandleValue _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DeserializeToJsval(cx, _retval); } \
      98             :   NS_IMETHOD DeserializeToVariant(JSContext* cx, nsIVariant * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DeserializeToVariant(cx, _retval); } \
      99             :   NS_IMETHOD GetDataAsBase64(nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDataAsBase64(_retval); } \
     100             :   NS_IMETHOD GetSerializedNBytes(uint64_t *aSerializedNBytes) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSerializedNBytes(aSerializedNBytes); } \
     101             :   NS_IMETHOD GetFormatVersion(uint32_t *aFormatVersion) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFormatVersion(aFormatVersion); } 
     102             : 
     103             : #if 0
     104             : /* Use the code below as a template for the implementation class for this interface. */
     105             : 
     106             : /* Header file */
     107             : class nsStructuredCloneContainer : public nsIStructuredCloneContainer
     108             : {
     109             : public:
     110             :   NS_DECL_ISUPPORTS
     111             :   NS_DECL_NSISTRUCTUREDCLONECONTAINER
     112             : 
     113             :   nsStructuredCloneContainer();
     114             : 
     115             : private:
     116             :   ~nsStructuredCloneContainer();
     117             : 
     118             : protected:
     119             :   /* additional members */
     120             : };
     121             : 
     122             : /* Implementation file */
     123             : NS_IMPL_ISUPPORTS(nsStructuredCloneContainer, nsIStructuredCloneContainer)
     124             : 
     125             : nsStructuredCloneContainer::nsStructuredCloneContainer()
     126             : {
     127             :   /* member initializers and constructor code */
     128             : }
     129             : 
     130             : nsStructuredCloneContainer::~nsStructuredCloneContainer()
     131             : {
     132             :   /* destructor code */
     133             : }
     134             : 
     135             : /* [implicit_jscontext,noscript] void initFromJSVal (in jsval aData); */
     136             : NS_IMETHODIMP nsStructuredCloneContainer::InitFromJSVal(JS::HandleValue aData, JSContext* cx)
     137             : {
     138             :     return NS_ERROR_NOT_IMPLEMENTED;
     139             : }
     140             : 
     141             : /* void initFromBase64 (in AString aData, in unsigned long aFormatVersion); */
     142             : NS_IMETHODIMP nsStructuredCloneContainer::InitFromBase64(const nsAString & aData, uint32_t aFormatVersion)
     143             : {
     144             :     return NS_ERROR_NOT_IMPLEMENTED;
     145             : }
     146             : 
     147             : /* [implicit_jscontext] jsval deserializeToJsval (); */
     148             : NS_IMETHODIMP nsStructuredCloneContainer::DeserializeToJsval(JSContext* cx, JS::MutableHandleValue _retval)
     149             : {
     150             :     return NS_ERROR_NOT_IMPLEMENTED;
     151             : }
     152             : 
     153             : /* [implicit_jscontext] nsIVariant deserializeToVariant (); */
     154             : NS_IMETHODIMP nsStructuredCloneContainer::DeserializeToVariant(JSContext* cx, nsIVariant * *_retval)
     155             : {
     156             :     return NS_ERROR_NOT_IMPLEMENTED;
     157             : }
     158             : 
     159             : /* AString getDataAsBase64 (); */
     160             : NS_IMETHODIMP nsStructuredCloneContainer::GetDataAsBase64(nsAString & _retval)
     161             : {
     162             :     return NS_ERROR_NOT_IMPLEMENTED;
     163             : }
     164             : 
     165             : /* readonly attribute unsigned long long serializedNBytes; */
     166             : NS_IMETHODIMP nsStructuredCloneContainer::GetSerializedNBytes(uint64_t *aSerializedNBytes)
     167             : {
     168             :     return NS_ERROR_NOT_IMPLEMENTED;
     169             : }
     170             : 
     171             : /* readonly attribute unsigned long formatVersion; */
     172             : NS_IMETHODIMP nsStructuredCloneContainer::GetFormatVersion(uint32_t *aFormatVersion)
     173             : {
     174             :     return NS_ERROR_NOT_IMPLEMENTED;
     175             : }
     176             : 
     177             : /* End of implementation class template. */
     178             : #endif
     179             : 
     180             : 
     181             : #endif /* __gen_nsIStructuredCloneContainer_h__ */

Generated by: LCOV version 1.13