1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/docshell/shistory/public/nsISHistoryInternal.idl
3 : */
4 :
5 : #ifndef __gen_nsISHistoryInternal_h__
6 : #define __gen_nsISHistoryInternal_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : #ifndef __gen_nsIFactory_h__
14 : #include "nsIFactory.h"
15 : #endif
16 :
17 : #ifndef __gen_nsISHEntry_h__
18 : #include "nsISHEntry.h"
19 : #endif
20 :
21 : #ifndef __gen_nsISHTransaction_h__
22 : #include "nsISHTransaction.h"
23 : #endif
24 :
25 : /* For IDL files that don't want to include root IDL files. */
26 : #ifndef NS_NO_VTABLE
27 : #define NS_NO_VTABLE
28 : #endif
29 : class nsISHistoryListener; /* forward declaration */
30 :
31 : class nsIDocShell; /* forward declaration */
32 :
33 : #define NS_SHISTORY_INTERNAL_CID \
34 : { 0x9c47c121, 0x1c6e, 0x4d8f, \
35 : { 0xb9, 0x04, 0x3a, 0xc9, 0x68, 0x11, 0x6e, 0x88 } }
36 : #define NS_SHISTORY_INTERNAL_CONTRACTID "@mozilla.org/browser/shistory-internal;1"
37 : template<class E, class A> class nsTArray;
38 : struct nsTArrayDefaultAllocator;
39 :
40 : /* starting interface: nsISHistoryInternal */
41 : #define NS_ISHISTORYINTERNAL_IID_STR "e27cf38e-c19f-4294-bd31-d7e0916e7fa2"
42 :
43 : #define NS_ISHISTORYINTERNAL_IID \
44 : {0xe27cf38e, 0xc19f, 0x4294, \
45 : { 0xbd, 0x31, 0xd7, 0xe0, 0x91, 0x6e, 0x7f, 0xa2 }}
46 :
47 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsISHistoryInternal : public nsISupports {
48 : public:
49 :
50 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISHISTORYINTERNAL_IID)
51 :
52 : /* void addEntry (in nsISHEntry aEntry, in boolean aPersist); */
53 : NS_SCRIPTABLE NS_IMETHOD AddEntry(nsISHEntry *aEntry, bool aPersist) = 0;
54 :
55 : /* readonly attribute nsISHTransaction rootTransaction; */
56 : NS_SCRIPTABLE NS_IMETHOD GetRootTransaction(nsISHTransaction * *aRootTransaction) = 0;
57 :
58 : /* attribute nsIDocShell rootDocShell; */
59 : NS_SCRIPTABLE NS_IMETHOD GetRootDocShell(nsIDocShell * *aRootDocShell) = 0;
60 : NS_SCRIPTABLE NS_IMETHOD SetRootDocShell(nsIDocShell *aRootDocShell) = 0;
61 :
62 : /* void updateIndex (); */
63 : NS_SCRIPTABLE NS_IMETHOD UpdateIndex(void) = 0;
64 :
65 : /* void replaceEntry (in long aIndex, in nsISHEntry aReplaceEntry); */
66 : NS_SCRIPTABLE NS_IMETHOD ReplaceEntry(PRInt32 aIndex, nsISHEntry *aReplaceEntry) = 0;
67 :
68 : /* readonly attribute nsISHistoryListener listener; */
69 : NS_SCRIPTABLE NS_IMETHOD GetListener(nsISHistoryListener * *aListener) = 0;
70 :
71 : /* void evictOutOfRangeContentViewers (in long aIndex); */
72 : NS_SCRIPTABLE NS_IMETHOD EvictOutOfRangeContentViewers(PRInt32 aIndex) = 0;
73 :
74 : /* void evictExpiredContentViewerForEntry (in nsIBFCacheEntry aEntry); */
75 : NS_SCRIPTABLE NS_IMETHOD EvictExpiredContentViewerForEntry(nsIBFCacheEntry *aEntry) = 0;
76 :
77 : /* void evictAllContentViewers (); */
78 : NS_SCRIPTABLE NS_IMETHOD EvictAllContentViewers(void) = 0;
79 :
80 : /* [noscript,notxpcom] void RemoveEntries (in nsDocshellIDArray aIDs, in long aStartIndex); */
81 : NS_IMETHOD_(void) RemoveEntries(nsTArray<PRUint64, nsTArrayDefaultAllocator> & aIDs, PRInt32 aStartIndex) = 0;
82 :
83 : };
84 :
85 : NS_DEFINE_STATIC_IID_ACCESSOR(nsISHistoryInternal, NS_ISHISTORYINTERNAL_IID)
86 :
87 : /* Use this macro when declaring classes that implement this interface. */
88 : #define NS_DECL_NSISHISTORYINTERNAL \
89 : NS_SCRIPTABLE NS_IMETHOD AddEntry(nsISHEntry *aEntry, bool aPersist); \
90 : NS_SCRIPTABLE NS_IMETHOD GetRootTransaction(nsISHTransaction * *aRootTransaction); \
91 : NS_SCRIPTABLE NS_IMETHOD GetRootDocShell(nsIDocShell * *aRootDocShell); \
92 : NS_SCRIPTABLE NS_IMETHOD SetRootDocShell(nsIDocShell *aRootDocShell); \
93 : NS_SCRIPTABLE NS_IMETHOD UpdateIndex(void); \
94 : NS_SCRIPTABLE NS_IMETHOD ReplaceEntry(PRInt32 aIndex, nsISHEntry *aReplaceEntry); \
95 : NS_SCRIPTABLE NS_IMETHOD GetListener(nsISHistoryListener * *aListener); \
96 : NS_SCRIPTABLE NS_IMETHOD EvictOutOfRangeContentViewers(PRInt32 aIndex); \
97 : NS_SCRIPTABLE NS_IMETHOD EvictExpiredContentViewerForEntry(nsIBFCacheEntry *aEntry); \
98 : NS_SCRIPTABLE NS_IMETHOD EvictAllContentViewers(void); \
99 : NS_IMETHOD_(void) RemoveEntries(nsTArray<PRUint64, nsTArrayDefaultAllocator> & aIDs, PRInt32 aStartIndex);
100 :
101 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
102 : #define NS_FORWARD_NSISHISTORYINTERNAL(_to) \
103 : NS_SCRIPTABLE NS_IMETHOD AddEntry(nsISHEntry *aEntry, bool aPersist) { return _to AddEntry(aEntry, aPersist); } \
104 : NS_SCRIPTABLE NS_IMETHOD GetRootTransaction(nsISHTransaction * *aRootTransaction) { return _to GetRootTransaction(aRootTransaction); } \
105 : NS_SCRIPTABLE NS_IMETHOD GetRootDocShell(nsIDocShell * *aRootDocShell) { return _to GetRootDocShell(aRootDocShell); } \
106 : NS_SCRIPTABLE NS_IMETHOD SetRootDocShell(nsIDocShell *aRootDocShell) { return _to SetRootDocShell(aRootDocShell); } \
107 : NS_SCRIPTABLE NS_IMETHOD UpdateIndex(void) { return _to UpdateIndex(); } \
108 : NS_SCRIPTABLE NS_IMETHOD ReplaceEntry(PRInt32 aIndex, nsISHEntry *aReplaceEntry) { return _to ReplaceEntry(aIndex, aReplaceEntry); } \
109 : NS_SCRIPTABLE NS_IMETHOD GetListener(nsISHistoryListener * *aListener) { return _to GetListener(aListener); } \
110 : NS_SCRIPTABLE NS_IMETHOD EvictOutOfRangeContentViewers(PRInt32 aIndex) { return _to EvictOutOfRangeContentViewers(aIndex); } \
111 : NS_SCRIPTABLE NS_IMETHOD EvictExpiredContentViewerForEntry(nsIBFCacheEntry *aEntry) { return _to EvictExpiredContentViewerForEntry(aEntry); } \
112 : NS_SCRIPTABLE NS_IMETHOD EvictAllContentViewers(void) { return _to EvictAllContentViewers(); } \
113 : NS_IMETHOD_(void) RemoveEntries(nsTArray<PRUint64, nsTArrayDefaultAllocator> & aIDs, PRInt32 aStartIndex) { return _to RemoveEntries(aIDs, aStartIndex); }
114 :
115 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
116 : #define NS_FORWARD_SAFE_NSISHISTORYINTERNAL(_to) \
117 : NS_SCRIPTABLE NS_IMETHOD AddEntry(nsISHEntry *aEntry, bool aPersist) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddEntry(aEntry, aPersist); } \
118 : NS_SCRIPTABLE NS_IMETHOD GetRootTransaction(nsISHTransaction * *aRootTransaction) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRootTransaction(aRootTransaction); } \
119 : NS_SCRIPTABLE NS_IMETHOD GetRootDocShell(nsIDocShell * *aRootDocShell) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRootDocShell(aRootDocShell); } \
120 : NS_SCRIPTABLE NS_IMETHOD SetRootDocShell(nsIDocShell *aRootDocShell) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetRootDocShell(aRootDocShell); } \
121 : NS_SCRIPTABLE NS_IMETHOD UpdateIndex(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->UpdateIndex(); } \
122 : NS_SCRIPTABLE NS_IMETHOD ReplaceEntry(PRInt32 aIndex, nsISHEntry *aReplaceEntry) { return !_to ? NS_ERROR_NULL_POINTER : _to->ReplaceEntry(aIndex, aReplaceEntry); } \
123 : NS_SCRIPTABLE NS_IMETHOD GetListener(nsISHistoryListener * *aListener) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetListener(aListener); } \
124 : NS_SCRIPTABLE NS_IMETHOD EvictOutOfRangeContentViewers(PRInt32 aIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->EvictOutOfRangeContentViewers(aIndex); } \
125 : NS_SCRIPTABLE NS_IMETHOD EvictExpiredContentViewerForEntry(nsIBFCacheEntry *aEntry) { return !_to ? NS_ERROR_NULL_POINTER : _to->EvictExpiredContentViewerForEntry(aEntry); } \
126 : NS_SCRIPTABLE NS_IMETHOD EvictAllContentViewers(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->EvictAllContentViewers(); } \
127 : NS_IMETHOD_(void) RemoveEntries(nsTArray<PRUint64, nsTArrayDefaultAllocator> & aIDs, PRInt32 aStartIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveEntries(aIDs, aStartIndex); }
128 :
129 : #if 0
130 : /* Use the code below as a template for the implementation class for this interface. */
131 :
132 : /* Header file */
133 : class nsSHistoryInternal : public nsISHistoryInternal
134 : {
135 : public:
136 : NS_DECL_ISUPPORTS
137 : NS_DECL_NSISHISTORYINTERNAL
138 :
139 : nsSHistoryInternal();
140 :
141 : private:
142 : ~nsSHistoryInternal();
143 :
144 : protected:
145 : /* additional members */
146 : };
147 :
148 : /* Implementation file */
149 : NS_IMPL_ISUPPORTS1(nsSHistoryInternal, nsISHistoryInternal)
150 :
151 : nsSHistoryInternal::nsSHistoryInternal()
152 : {
153 : /* member initializers and constructor code */
154 : }
155 :
156 : nsSHistoryInternal::~nsSHistoryInternal()
157 : {
158 : /* destructor code */
159 : }
160 :
161 : /* void addEntry (in nsISHEntry aEntry, in boolean aPersist); */
162 : NS_IMETHODIMP nsSHistoryInternal::AddEntry(nsISHEntry *aEntry, bool aPersist)
163 : {
164 : return NS_ERROR_NOT_IMPLEMENTED;
165 : }
166 :
167 : /* readonly attribute nsISHTransaction rootTransaction; */
168 : NS_IMETHODIMP nsSHistoryInternal::GetRootTransaction(nsISHTransaction * *aRootTransaction)
169 : {
170 : return NS_ERROR_NOT_IMPLEMENTED;
171 : }
172 :
173 : /* attribute nsIDocShell rootDocShell; */
174 : NS_IMETHODIMP nsSHistoryInternal::GetRootDocShell(nsIDocShell * *aRootDocShell)
175 : {
176 : return NS_ERROR_NOT_IMPLEMENTED;
177 : }
178 : NS_IMETHODIMP nsSHistoryInternal::SetRootDocShell(nsIDocShell *aRootDocShell)
179 : {
180 : return NS_ERROR_NOT_IMPLEMENTED;
181 : }
182 :
183 : /* void updateIndex (); */
184 : NS_IMETHODIMP nsSHistoryInternal::UpdateIndex()
185 : {
186 : return NS_ERROR_NOT_IMPLEMENTED;
187 : }
188 :
189 : /* void replaceEntry (in long aIndex, in nsISHEntry aReplaceEntry); */
190 : NS_IMETHODIMP nsSHistoryInternal::ReplaceEntry(PRInt32 aIndex, nsISHEntry *aReplaceEntry)
191 : {
192 : return NS_ERROR_NOT_IMPLEMENTED;
193 : }
194 :
195 : /* readonly attribute nsISHistoryListener listener; */
196 : NS_IMETHODIMP nsSHistoryInternal::GetListener(nsISHistoryListener * *aListener)
197 : {
198 : return NS_ERROR_NOT_IMPLEMENTED;
199 : }
200 :
201 : /* void evictOutOfRangeContentViewers (in long aIndex); */
202 : NS_IMETHODIMP nsSHistoryInternal::EvictOutOfRangeContentViewers(PRInt32 aIndex)
203 : {
204 : return NS_ERROR_NOT_IMPLEMENTED;
205 : }
206 :
207 : /* void evictExpiredContentViewerForEntry (in nsIBFCacheEntry aEntry); */
208 : NS_IMETHODIMP nsSHistoryInternal::EvictExpiredContentViewerForEntry(nsIBFCacheEntry *aEntry)
209 : {
210 : return NS_ERROR_NOT_IMPLEMENTED;
211 : }
212 :
213 : /* void evictAllContentViewers (); */
214 : NS_IMETHODIMP nsSHistoryInternal::EvictAllContentViewers()
215 : {
216 : return NS_ERROR_NOT_IMPLEMENTED;
217 : }
218 :
219 : /* [noscript,notxpcom] void RemoveEntries (in nsDocshellIDArray aIDs, in long aStartIndex); */
220 : NS_IMETHODIMP_(void) nsSHistoryInternal::RemoveEntries(nsTArray<PRUint64, nsTArrayDefaultAllocator> & aIDs, PRInt32 aStartIndex)
221 : {
222 : return NS_ERROR_NOT_IMPLEMENTED;
223 : }
224 :
225 : /* End of implementation class template. */
226 : #endif
227 :
228 :
229 : #endif /* __gen_nsISHistoryInternal_h__ */
|