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

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

           1                 : /*
           2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-rel-lnx-codecoverage/build/netwerk/base/public/nsIIPCSerializable.idl
           3                 :  */
           4                 :
           5                 : #ifndef __gen_nsIIPCSerializable_h__
           6                 : #define __gen_nsIIPCSerializable_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                 : namespace IPC {
          18                 : class Message;
          19                 : }
          20                 :
          21                 : /* starting interface:    nsIIPCSerializable */
          22                 : #define NS_IIPCSERIALIZABLE_IID_STR "1f605ac7-666b-471f-9864-1a21a95f11c4"
          23                 :
          24                 : #define NS_IIPCSERIALIZABLE_IID \
          25                 :   {0x1f605ac7, 0x666b, 0x471f, \
          26                 :     { 0x98, 0x64, 0x1a, 0x21, 0xa9, 0x5f, 0x11, 0xc4 }}
          27                 :
          28          512587 : class NS_NO_VTABLE nsIIPCSerializable : public nsISupports {
          29                 :  public:
          30                 :
          31                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IIPCSERIALIZABLE_IID)
          32                 :
          33                 :   /* [notxpcom] boolean read (in ConstMessage msg, in Iterator iter); */
          34                 :   NS_IMETHOD_(bool) Read(const IPC::Message *msg, void* *iter) = 0;
          35                 :
          36                 :   /* [notxpcom] void write (in Message msg); */
          37                 :   NS_IMETHOD_(void) Write(IPC::Message *msg) = 0;
          38                 :
          39                 : };
          40                 :
          41                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIIPCSerializable, NS_IIPCSERIALIZABLE_IID)
          42                 :
          43                 : /* Use this macro when declaring classes that implement this interface. */
          44                 : #define NS_DECL_NSIIPCSERIALIZABLE \
          45                 :   NS_IMETHOD_(bool) Read(const IPC::Message *msg, void* *iter); \
          46                 :   NS_IMETHOD_(void) Write(IPC::Message *msg);
          47                 :
          48                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
          49                 : #define NS_FORWARD_NSIIPCSERIALIZABLE(_to) \
          50                 :   NS_IMETHOD_(bool) Read(const IPC::Message *msg, void* *iter) { return _to Read(msg, iter); } \
          51                 :   NS_IMETHOD_(void) Write(IPC::Message *msg) { return _to Write(msg); }
          52                 :
          53                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
          54                 : #define NS_FORWARD_SAFE_NSIIPCSERIALIZABLE(_to) \
          55                 :   NS_IMETHOD_(bool) Read(const IPC::Message *msg, void* *iter) { return !_to ? NS_ERROR_NULL_POINTER : _to->Read(msg, iter); } \
          56                 :   NS_IMETHOD_(void) Write(IPC::Message *msg) { return !_to ? NS_ERROR_NULL_POINTER : _to->Write(msg); }
          57                 :
          58                 : #if 0
          59                 : /* Use the code below as a template for the implementation class for this interface. */
          60                 :
          61                 : /* Header file */
          62                 : class nsIPCSerializable : public nsIIPCSerializable
          63                 : {
          64                 : public:
          65                 :   NS_DECL_ISUPPORTS
          66                 :   NS_DECL_NSIIPCSERIALIZABLE
          67                 :
          68                 :   nsIPCSerializable();
          69                 :
          70                 : private:
          71                 :   ~nsIPCSerializable();
          72                 :
          73                 : protected:
          74                 :   /* additional members */
          75                 : };
          76                 :
          77                 : /* Implementation file */
          78                 : NS_IMPL_ISUPPORTS1(nsIPCSerializable, nsIIPCSerializable)
          79                 :
          80                 : nsIPCSerializable::nsIPCSerializable()
          81                 : {
          82                 :   /* member initializers and constructor code */
          83                 : }
          84                 :
          85                 : nsIPCSerializable::~nsIPCSerializable()
          86                 : {
          87                 :   /* destructor code */
          88                 : }
          89                 :
          90                 : /* [notxpcom] boolean read (in ConstMessage msg, in Iterator iter); */
          91                 : NS_IMETHODIMP_(bool) nsIPCSerializable::Read(const IPC::Message *msg, void* *iter)
          92                 : {
          93                 :     return NS_ERROR_NOT_IMPLEMENTED;
          94                 : }
          95                 :
          96                 : /* [notxpcom] void write (in Message msg); */
          97                 : NS_IMETHODIMP_(void) nsIPCSerializable::Write(IPC::Message *msg)
          98                 : {
          99                 :     return NS_ERROR_NOT_IMPLEMENTED;
         100                 : }
         101                 :
         102                 : /* End of implementation class template. */
         103                 : #endif
         104                 :
         105                 :
         106                 : #endif /* __gen_nsIIPCSerializable_h__ */

Generated by: LCOV version 1.7