LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsIBrowserHistory.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/nsIBrowserHistory.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIBrowserHistory_h__
       6             : #define __gen_nsIBrowserHistory_h__
       7             : 
       8             : 
       9             : #ifndef __gen_nsISupports_h__
      10             : #include "nsISupports.h"
      11             : #endif
      12             : 
      13             : #ifndef __gen_nsIGlobalHistory2_h__
      14             : #include "nsIGlobalHistory2.h"
      15             : #endif
      16             : 
      17             : /* For IDL files that don't want to include root IDL files. */
      18             : #ifndef NS_NO_VTABLE
      19             : #define NS_NO_VTABLE
      20             : #endif
      21             : 
      22             : /* starting interface:    nsIBrowserHistory */
      23             : #define NS_IBROWSERHISTORY_IID_STR "20d31479-38de-49f4-9300-566d6e834c66"
      24             : 
      25             : #define NS_IBROWSERHISTORY_IID \
      26             :   {0x20d31479, 0x38de, 0x49f4, \
      27             :     { 0x93, 0x00, 0x56, 0x6d, 0x6e, 0x83, 0x4c, 0x66 }}
      28             : 
      29           1 : class NS_NO_VTABLE nsIBrowserHistory : public nsISupports {
      30             :  public:
      31             : 
      32             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IBROWSERHISTORY_IID)
      33             : 
      34             :   /* void removePage (in nsIURI aURI); */
      35             :   NS_IMETHOD RemovePage(nsIURI *aURI) = 0;
      36             : 
      37             :   /* void removePages ([array, size_is (aLength)] in nsIURI aURIs, in unsigned long aLength); */
      38             :   NS_IMETHOD RemovePages(nsIURI **aURIs, uint32_t aLength) = 0;
      39             : 
      40             :   /* void removePagesFromHost (in AUTF8String aHost, in boolean aEntireDomain); */
      41             :   NS_IMETHOD RemovePagesFromHost(const nsACString & aHost, bool aEntireDomain) = 0;
      42             : 
      43             :   /* void removePagesByTimeframe (in PRTime aBeginTime, in PRTime aEndTime); */
      44             :   NS_IMETHOD RemovePagesByTimeframe(PRTime aBeginTime, PRTime aEndTime) = 0;
      45             : 
      46             : };
      47             : 
      48             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIBrowserHistory, NS_IBROWSERHISTORY_IID)
      49             : 
      50             : /* Use this macro when declaring classes that implement this interface. */
      51             : #define NS_DECL_NSIBROWSERHISTORY \
      52             :   NS_IMETHOD RemovePage(nsIURI *aURI) override; \
      53             :   NS_IMETHOD RemovePages(nsIURI **aURIs, uint32_t aLength) override; \
      54             :   NS_IMETHOD RemovePagesFromHost(const nsACString & aHost, bool aEntireDomain) override; \
      55             :   NS_IMETHOD RemovePagesByTimeframe(PRTime aBeginTime, PRTime aEndTime) override; 
      56             : 
      57             : /* Use this macro when declaring the members of this interface when the
      58             :    class doesn't implement the interface. This is useful for forwarding. */
      59             : #define NS_DECL_NON_VIRTUAL_NSIBROWSERHISTORY \
      60             :   nsresult RemovePage(nsIURI *aURI); \
      61             :   nsresult RemovePages(nsIURI **aURIs, uint32_t aLength); \
      62             :   nsresult RemovePagesFromHost(const nsACString & aHost, bool aEntireDomain); \
      63             :   nsresult RemovePagesByTimeframe(PRTime aBeginTime, PRTime aEndTime); 
      64             : 
      65             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      66             : #define NS_FORWARD_NSIBROWSERHISTORY(_to) \
      67             :   NS_IMETHOD RemovePage(nsIURI *aURI) override { return _to RemovePage(aURI); } \
      68             :   NS_IMETHOD RemovePages(nsIURI **aURIs, uint32_t aLength) override { return _to RemovePages(aURIs, aLength); } \
      69             :   NS_IMETHOD RemovePagesFromHost(const nsACString & aHost, bool aEntireDomain) override { return _to RemovePagesFromHost(aHost, aEntireDomain); } \
      70             :   NS_IMETHOD RemovePagesByTimeframe(PRTime aBeginTime, PRTime aEndTime) override { return _to RemovePagesByTimeframe(aBeginTime, aEndTime); } 
      71             : 
      72             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      73             : #define NS_FORWARD_SAFE_NSIBROWSERHISTORY(_to) \
      74             :   NS_IMETHOD RemovePage(nsIURI *aURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemovePage(aURI); } \
      75             :   NS_IMETHOD RemovePages(nsIURI **aURIs, uint32_t aLength) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemovePages(aURIs, aLength); } \
      76             :   NS_IMETHOD RemovePagesFromHost(const nsACString & aHost, bool aEntireDomain) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemovePagesFromHost(aHost, aEntireDomain); } \
      77             :   NS_IMETHOD RemovePagesByTimeframe(PRTime aBeginTime, PRTime aEndTime) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemovePagesByTimeframe(aBeginTime, aEndTime); } 
      78             : 
      79             : #if 0
      80             : /* Use the code below as a template for the implementation class for this interface. */
      81             : 
      82             : /* Header file */
      83             : class nsBrowserHistory : public nsIBrowserHistory
      84             : {
      85             : public:
      86             :   NS_DECL_ISUPPORTS
      87             :   NS_DECL_NSIBROWSERHISTORY
      88             : 
      89             :   nsBrowserHistory();
      90             : 
      91             : private:
      92             :   ~nsBrowserHistory();
      93             : 
      94             : protected:
      95             :   /* additional members */
      96             : };
      97             : 
      98             : /* Implementation file */
      99             : NS_IMPL_ISUPPORTS(nsBrowserHistory, nsIBrowserHistory)
     100             : 
     101             : nsBrowserHistory::nsBrowserHistory()
     102             : {
     103             :   /* member initializers and constructor code */
     104             : }
     105             : 
     106             : nsBrowserHistory::~nsBrowserHistory()
     107             : {
     108             :   /* destructor code */
     109             : }
     110             : 
     111             : /* void removePage (in nsIURI aURI); */
     112             : NS_IMETHODIMP nsBrowserHistory::RemovePage(nsIURI *aURI)
     113             : {
     114             :     return NS_ERROR_NOT_IMPLEMENTED;
     115             : }
     116             : 
     117             : /* void removePages ([array, size_is (aLength)] in nsIURI aURIs, in unsigned long aLength); */
     118             : NS_IMETHODIMP nsBrowserHistory::RemovePages(nsIURI **aURIs, uint32_t aLength)
     119             : {
     120             :     return NS_ERROR_NOT_IMPLEMENTED;
     121             : }
     122             : 
     123             : /* void removePagesFromHost (in AUTF8String aHost, in boolean aEntireDomain); */
     124             : NS_IMETHODIMP nsBrowserHistory::RemovePagesFromHost(const nsACString & aHost, bool aEntireDomain)
     125             : {
     126             :     return NS_ERROR_NOT_IMPLEMENTED;
     127             : }
     128             : 
     129             : /* void removePagesByTimeframe (in PRTime aBeginTime, in PRTime aEndTime); */
     130             : NS_IMETHODIMP nsBrowserHistory::RemovePagesByTimeframe(PRTime aBeginTime, PRTime aEndTime)
     131             : {
     132             :     return NS_ERROR_NOT_IMPLEMENTED;
     133             : }
     134             : 
     135             : /* End of implementation class template. */
     136             : #endif
     137             : 
     138             : 
     139             : #endif /* __gen_nsIBrowserHistory_h__ */

Generated by: LCOV version 1.13