Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIEffectiveTLDService.idl
3 : */
4 :
5 : #ifndef __gen_nsIEffectiveTLDService_h__
6 : #define __gen_nsIEffectiveTLDService_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 : class nsIURI; /* forward declaration */
18 :
19 :
20 : /* starting interface: nsIEffectiveTLDService */
21 : #define NS_IEFFECTIVETLDSERVICE_IID_STR "68067eb5-ad8d-43cb-a043-1cc85ebe06e7"
22 :
23 : #define NS_IEFFECTIVETLDSERVICE_IID \
24 : {0x68067eb5, 0xad8d, 0x43cb, \
25 : { 0xa0, 0x43, 0x1c, 0xc8, 0x5e, 0xbe, 0x06, 0xe7 }}
26 :
27 2 : class NS_NO_VTABLE nsIEffectiveTLDService : public nsISupports {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IEFFECTIVETLDSERVICE_IID)
31 :
32 : /* ACString getPublicSuffix (in nsIURI aURI); */
33 : NS_IMETHOD GetPublicSuffix(nsIURI *aURI, nsACString & _retval) = 0;
34 :
35 : /* ACString getBaseDomain (in nsIURI aURI, [optional] in uint32_t aAdditionalParts); */
36 : NS_IMETHOD GetBaseDomain(nsIURI *aURI, uint32_t aAdditionalParts, nsACString & _retval) = 0;
37 :
38 : /* ACString getPublicSuffixFromHost (in AUTF8String aHost); */
39 : NS_IMETHOD GetPublicSuffixFromHost(const nsACString & aHost, nsACString & _retval) = 0;
40 :
41 : /* ACString getBaseDomainFromHost (in AUTF8String aHost, [optional] in uint32_t aAdditionalParts); */
42 : NS_IMETHOD GetBaseDomainFromHost(const nsACString & aHost, uint32_t aAdditionalParts, nsACString & _retval) = 0;
43 :
44 : /* ACString getNextSubDomain (in AUTF8String aHost); */
45 : NS_IMETHOD GetNextSubDomain(const nsACString & aHost, nsACString & _retval) = 0;
46 :
47 : };
48 :
49 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIEffectiveTLDService, NS_IEFFECTIVETLDSERVICE_IID)
50 :
51 : /* Use this macro when declaring classes that implement this interface. */
52 : #define NS_DECL_NSIEFFECTIVETLDSERVICE \
53 : NS_IMETHOD GetPublicSuffix(nsIURI *aURI, nsACString & _retval) override; \
54 : NS_IMETHOD GetBaseDomain(nsIURI *aURI, uint32_t aAdditionalParts, nsACString & _retval) override; \
55 : NS_IMETHOD GetPublicSuffixFromHost(const nsACString & aHost, nsACString & _retval) override; \
56 : NS_IMETHOD GetBaseDomainFromHost(const nsACString & aHost, uint32_t aAdditionalParts, nsACString & _retval) override; \
57 : NS_IMETHOD GetNextSubDomain(const nsACString & aHost, nsACString & _retval) override;
58 :
59 : /* Use this macro when declaring the members of this interface when the
60 : class doesn't implement the interface. This is useful for forwarding. */
61 : #define NS_DECL_NON_VIRTUAL_NSIEFFECTIVETLDSERVICE \
62 : nsresult GetPublicSuffix(nsIURI *aURI, nsACString & _retval); \
63 : nsresult GetBaseDomain(nsIURI *aURI, uint32_t aAdditionalParts, nsACString & _retval); \
64 : nsresult GetPublicSuffixFromHost(const nsACString & aHost, nsACString & _retval); \
65 : nsresult GetBaseDomainFromHost(const nsACString & aHost, uint32_t aAdditionalParts, nsACString & _retval); \
66 : nsresult GetNextSubDomain(const nsACString & aHost, nsACString & _retval);
67 :
68 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
69 : #define NS_FORWARD_NSIEFFECTIVETLDSERVICE(_to) \
70 : NS_IMETHOD GetPublicSuffix(nsIURI *aURI, nsACString & _retval) override { return _to GetPublicSuffix(aURI, _retval); } \
71 : NS_IMETHOD GetBaseDomain(nsIURI *aURI, uint32_t aAdditionalParts, nsACString & _retval) override { return _to GetBaseDomain(aURI, aAdditionalParts, _retval); } \
72 : NS_IMETHOD GetPublicSuffixFromHost(const nsACString & aHost, nsACString & _retval) override { return _to GetPublicSuffixFromHost(aHost, _retval); } \
73 : NS_IMETHOD GetBaseDomainFromHost(const nsACString & aHost, uint32_t aAdditionalParts, nsACString & _retval) override { return _to GetBaseDomainFromHost(aHost, aAdditionalParts, _retval); } \
74 : NS_IMETHOD GetNextSubDomain(const nsACString & aHost, nsACString & _retval) override { return _to GetNextSubDomain(aHost, _retval); }
75 :
76 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
77 : #define NS_FORWARD_SAFE_NSIEFFECTIVETLDSERVICE(_to) \
78 : NS_IMETHOD GetPublicSuffix(nsIURI *aURI, nsACString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPublicSuffix(aURI, _retval); } \
79 : NS_IMETHOD GetBaseDomain(nsIURI *aURI, uint32_t aAdditionalParts, nsACString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBaseDomain(aURI, aAdditionalParts, _retval); } \
80 : NS_IMETHOD GetPublicSuffixFromHost(const nsACString & aHost, nsACString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPublicSuffixFromHost(aHost, _retval); } \
81 : NS_IMETHOD GetBaseDomainFromHost(const nsACString & aHost, uint32_t aAdditionalParts, nsACString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBaseDomainFromHost(aHost, aAdditionalParts, _retval); } \
82 : NS_IMETHOD GetNextSubDomain(const nsACString & aHost, nsACString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNextSubDomain(aHost, _retval); }
83 :
84 : #if 0
85 : /* Use the code below as a template for the implementation class for this interface. */
86 :
87 : /* Header file */
88 : class nsEffectiveTLDService : public nsIEffectiveTLDService
89 : {
90 : public:
91 : NS_DECL_ISUPPORTS
92 : NS_DECL_NSIEFFECTIVETLDSERVICE
93 :
94 : nsEffectiveTLDService();
95 :
96 : private:
97 : ~nsEffectiveTLDService();
98 :
99 : protected:
100 : /* additional members */
101 : };
102 :
103 : /* Implementation file */
104 : NS_IMPL_ISUPPORTS(nsEffectiveTLDService, nsIEffectiveTLDService)
105 :
106 : nsEffectiveTLDService::nsEffectiveTLDService()
107 : {
108 : /* member initializers and constructor code */
109 : }
110 :
111 : nsEffectiveTLDService::~nsEffectiveTLDService()
112 : {
113 : /* destructor code */
114 : }
115 :
116 : /* ACString getPublicSuffix (in nsIURI aURI); */
117 : NS_IMETHODIMP nsEffectiveTLDService::GetPublicSuffix(nsIURI *aURI, nsACString & _retval)
118 : {
119 : return NS_ERROR_NOT_IMPLEMENTED;
120 : }
121 :
122 : /* ACString getBaseDomain (in nsIURI aURI, [optional] in uint32_t aAdditionalParts); */
123 : NS_IMETHODIMP nsEffectiveTLDService::GetBaseDomain(nsIURI *aURI, uint32_t aAdditionalParts, nsACString & _retval)
124 : {
125 : return NS_ERROR_NOT_IMPLEMENTED;
126 : }
127 :
128 : /* ACString getPublicSuffixFromHost (in AUTF8String aHost); */
129 : NS_IMETHODIMP nsEffectiveTLDService::GetPublicSuffixFromHost(const nsACString & aHost, nsACString & _retval)
130 : {
131 : return NS_ERROR_NOT_IMPLEMENTED;
132 : }
133 :
134 : /* ACString getBaseDomainFromHost (in AUTF8String aHost, [optional] in uint32_t aAdditionalParts); */
135 : NS_IMETHODIMP nsEffectiveTLDService::GetBaseDomainFromHost(const nsACString & aHost, uint32_t aAdditionalParts, nsACString & _retval)
136 : {
137 : return NS_ERROR_NOT_IMPLEMENTED;
138 : }
139 :
140 : /* ACString getNextSubDomain (in AUTF8String aHost); */
141 : NS_IMETHODIMP nsEffectiveTLDService::GetNextSubDomain(const nsACString & aHost, nsACString & _retval)
142 : {
143 : return NS_ERROR_NOT_IMPLEMENTED;
144 : }
145 :
146 : /* End of implementation class template. */
147 : #endif
148 :
149 :
150 : #endif /* __gen_nsIEffectiveTLDService_h__ */
|