LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsIMemoryProfiler.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/nsIMemoryProfiler.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIMemoryProfiler_h__
       6             : #define __gen_nsIMemoryProfiler_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             : 
      20             : /* starting interface:    nsIMemoryProfiler */
      21             : #define NS_IMEMORYPROFILER_IID_STR "1e10e7a9-bc05-4878-a687-36c9ea4428b1"
      22             : 
      23             : #define NS_IMEMORYPROFILER_IID \
      24             :   {0x1e10e7a9, 0xbc05, 0x4878, \
      25             :     { 0xa6, 0x87, 0x36, 0xc9, 0xea, 0x44, 0x28, 0xb1 }}
      26             : 
      27           0 : class NS_NO_VTABLE nsIMemoryProfiler : public nsISupports {
      28             :  public:
      29             : 
      30             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMEMORYPROFILER_IID)
      31             : 
      32             :   /* void startProfiler (); */
      33             :   NS_IMETHOD StartProfiler(void) = 0;
      34             : 
      35             :   /* void stopProfiler (); */
      36             :   NS_IMETHOD StopProfiler(void) = 0;
      37             : 
      38             :   /* void resetProfiler (); */
      39             :   NS_IMETHOD ResetProfiler(void) = 0;
      40             : 
      41             :   /* [implicit_jscontext] jsval getResults (); */
      42             :   NS_IMETHOD GetResults(JSContext* cx, JS::MutableHandleValue _retval) = 0;
      43             : 
      44             : };
      45             : 
      46             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIMemoryProfiler, NS_IMEMORYPROFILER_IID)
      47             : 
      48             : /* Use this macro when declaring classes that implement this interface. */
      49             : #define NS_DECL_NSIMEMORYPROFILER \
      50             :   NS_IMETHOD StartProfiler(void) override; \
      51             :   NS_IMETHOD StopProfiler(void) override; \
      52             :   NS_IMETHOD ResetProfiler(void) override; \
      53             :   NS_IMETHOD GetResults(JSContext* cx, JS::MutableHandleValue _retval) override; 
      54             : 
      55             : /* Use this macro when declaring the members of this interface when the
      56             :    class doesn't implement the interface. This is useful for forwarding. */
      57             : #define NS_DECL_NON_VIRTUAL_NSIMEMORYPROFILER \
      58             :   nsresult StartProfiler(void); \
      59             :   nsresult StopProfiler(void); \
      60             :   nsresult ResetProfiler(void); \
      61             :   nsresult GetResults(JSContext* cx, JS::MutableHandleValue _retval); 
      62             : 
      63             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      64             : #define NS_FORWARD_NSIMEMORYPROFILER(_to) \
      65             :   NS_IMETHOD StartProfiler(void) override { return _to StartProfiler(); } \
      66             :   NS_IMETHOD StopProfiler(void) override { return _to StopProfiler(); } \
      67             :   NS_IMETHOD ResetProfiler(void) override { return _to ResetProfiler(); } \
      68             :   NS_IMETHOD GetResults(JSContext* cx, JS::MutableHandleValue _retval) override { return _to GetResults(cx, _retval); } 
      69             : 
      70             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      71             : #define NS_FORWARD_SAFE_NSIMEMORYPROFILER(_to) \
      72             :   NS_IMETHOD StartProfiler(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->StartProfiler(); } \
      73             :   NS_IMETHOD StopProfiler(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->StopProfiler(); } \
      74             :   NS_IMETHOD ResetProfiler(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ResetProfiler(); } \
      75             :   NS_IMETHOD GetResults(JSContext* cx, JS::MutableHandleValue _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResults(cx, _retval); } 
      76             : 
      77             : #if 0
      78             : /* Use the code below as a template for the implementation class for this interface. */
      79             : 
      80             : /* Header file */
      81             : class nsMemoryProfiler : public nsIMemoryProfiler
      82             : {
      83             : public:
      84             :   NS_DECL_ISUPPORTS
      85             :   NS_DECL_NSIMEMORYPROFILER
      86             : 
      87             :   nsMemoryProfiler();
      88             : 
      89             : private:
      90             :   ~nsMemoryProfiler();
      91             : 
      92             : protected:
      93             :   /* additional members */
      94             : };
      95             : 
      96             : /* Implementation file */
      97             : NS_IMPL_ISUPPORTS(nsMemoryProfiler, nsIMemoryProfiler)
      98             : 
      99             : nsMemoryProfiler::nsMemoryProfiler()
     100             : {
     101             :   /* member initializers and constructor code */
     102             : }
     103             : 
     104             : nsMemoryProfiler::~nsMemoryProfiler()
     105             : {
     106             :   /* destructor code */
     107             : }
     108             : 
     109             : /* void startProfiler (); */
     110             : NS_IMETHODIMP nsMemoryProfiler::StartProfiler()
     111             : {
     112             :     return NS_ERROR_NOT_IMPLEMENTED;
     113             : }
     114             : 
     115             : /* void stopProfiler (); */
     116             : NS_IMETHODIMP nsMemoryProfiler::StopProfiler()
     117             : {
     118             :     return NS_ERROR_NOT_IMPLEMENTED;
     119             : }
     120             : 
     121             : /* void resetProfiler (); */
     122             : NS_IMETHODIMP nsMemoryProfiler::ResetProfiler()
     123             : {
     124             :     return NS_ERROR_NOT_IMPLEMENTED;
     125             : }
     126             : 
     127             : /* [implicit_jscontext] jsval getResults (); */
     128             : NS_IMETHODIMP nsMemoryProfiler::GetResults(JSContext* cx, JS::MutableHandleValue _retval)
     129             : {
     130             :     return NS_ERROR_NOT_IMPLEMENTED;
     131             : }
     132             : 
     133             : /* End of implementation class template. */
     134             : #endif
     135             : 
     136             : 
     137             : #endif /* __gen_nsIMemoryProfiler_h__ */

Generated by: LCOV version 1.13