LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsIStandardURL.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/nsIStandardURL.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIStandardURL_h__
       6             : #define __gen_nsIStandardURL_h__
       7             : 
       8             : 
       9             : #ifndef __gen_nsIMutable_h__
      10             : #include "nsIMutable.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:    nsIStandardURL */
      21             : #define NS_ISTANDARDURL_IID_STR "babd6cca-ebe7-4329-967c-d6b9e33caa81"
      22             : 
      23             : #define NS_ISTANDARDURL_IID \
      24             :   {0xbabd6cca, 0xebe7, 0x4329, \
      25             :     { 0x96, 0x7c, 0xd6, 0xb9, 0xe3, 0x3c, 0xaa, 0x81 }}
      26             : 
      27       10661 : class NS_NO_VTABLE nsIStandardURL : public nsIMutable {
      28             :  public:
      29             : 
      30             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISTANDARDURL_IID)
      31             : 
      32             :   enum {
      33             :     URLTYPE_STANDARD = 1U,
      34             :     URLTYPE_AUTHORITY = 2U,
      35             :     URLTYPE_NO_AUTHORITY = 3U
      36             :   };
      37             : 
      38             :   /* void init (in unsigned long aUrlType, in long aDefaultPort, in AUTF8String aSpec, in string aOriginCharset, in nsIURI aBaseURI); */
      39             :   NS_IMETHOD Init(uint32_t aUrlType, int32_t aDefaultPort, const nsACString & aSpec, const char * aOriginCharset, nsIURI *aBaseURI) = 0;
      40             : 
      41             :   /* void setDefaultPort (in long aNewDefaultPort); */
      42             :   NS_IMETHOD SetDefaultPort(int32_t aNewDefaultPort) = 0;
      43             : 
      44             : };
      45             : 
      46             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIStandardURL, NS_ISTANDARDURL_IID)
      47             : 
      48             : /* Use this macro when declaring classes that implement this interface. */
      49             : #define NS_DECL_NSISTANDARDURL \
      50             :   NS_IMETHOD Init(uint32_t aUrlType, int32_t aDefaultPort, const nsACString & aSpec, const char * aOriginCharset, nsIURI *aBaseURI) override; \
      51             :   NS_IMETHOD SetDefaultPort(int32_t aNewDefaultPort) override; 
      52             : 
      53             : /* Use this macro when declaring the members of this interface when the
      54             :    class doesn't implement the interface. This is useful for forwarding. */
      55             : #define NS_DECL_NON_VIRTUAL_NSISTANDARDURL \
      56             :   nsresult Init(uint32_t aUrlType, int32_t aDefaultPort, const nsACString & aSpec, const char * aOriginCharset, nsIURI *aBaseURI); \
      57             :   nsresult SetDefaultPort(int32_t aNewDefaultPort); 
      58             : 
      59             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      60             : #define NS_FORWARD_NSISTANDARDURL(_to) \
      61             :   NS_IMETHOD Init(uint32_t aUrlType, int32_t aDefaultPort, const nsACString & aSpec, const char * aOriginCharset, nsIURI *aBaseURI) override { return _to Init(aUrlType, aDefaultPort, aSpec, aOriginCharset, aBaseURI); } \
      62             :   NS_IMETHOD SetDefaultPort(int32_t aNewDefaultPort) override { return _to SetDefaultPort(aNewDefaultPort); } 
      63             : 
      64             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      65             : #define NS_FORWARD_SAFE_NSISTANDARDURL(_to) \
      66             :   NS_IMETHOD Init(uint32_t aUrlType, int32_t aDefaultPort, const nsACString & aSpec, const char * aOriginCharset, nsIURI *aBaseURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(aUrlType, aDefaultPort, aSpec, aOriginCharset, aBaseURI); } \
      67             :   NS_IMETHOD SetDefaultPort(int32_t aNewDefaultPort) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDefaultPort(aNewDefaultPort); } 
      68             : 
      69             : #if 0
      70             : /* Use the code below as a template for the implementation class for this interface. */
      71             : 
      72             : /* Header file */
      73             : class nsStandardURL : public nsIStandardURL
      74             : {
      75             : public:
      76             :   NS_DECL_ISUPPORTS
      77             :   NS_DECL_NSISTANDARDURL
      78             : 
      79             :   nsStandardURL();
      80             : 
      81             : private:
      82             :   ~nsStandardURL();
      83             : 
      84             : protected:
      85             :   /* additional members */
      86             : };
      87             : 
      88             : /* Implementation file */
      89             : NS_IMPL_ISUPPORTS(nsStandardURL, nsIStandardURL)
      90             : 
      91             : nsStandardURL::nsStandardURL()
      92             : {
      93             :   /* member initializers and constructor code */
      94             : }
      95             : 
      96             : nsStandardURL::~nsStandardURL()
      97             : {
      98             :   /* destructor code */
      99             : }
     100             : 
     101             : /* void init (in unsigned long aUrlType, in long aDefaultPort, in AUTF8String aSpec, in string aOriginCharset, in nsIURI aBaseURI); */
     102             : NS_IMETHODIMP nsStandardURL::Init(uint32_t aUrlType, int32_t aDefaultPort, const nsACString & aSpec, const char * aOriginCharset, nsIURI *aBaseURI)
     103             : {
     104             :     return NS_ERROR_NOT_IMPLEMENTED;
     105             : }
     106             : 
     107             : /* void setDefaultPort (in long aNewDefaultPort); */
     108             : NS_IMETHODIMP nsStandardURL::SetDefaultPort(int32_t aNewDefaultPort)
     109             : {
     110             :     return NS_ERROR_NOT_IMPLEMENTED;
     111             : }
     112             : 
     113             : /* End of implementation class template. */
     114             : #endif
     115             : 
     116             : 
     117             : #endif /* __gen_nsIStandardURL_h__ */

Generated by: LCOV version 1.13