1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/extensions/cookie/nsICookiePromptService.idl
3 : */
4 :
5 : #ifndef __gen_nsICookiePromptService_h__
6 : #define __gen_nsICookiePromptService_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 nsIDOMWindow; /* forward declaration */
18 :
19 : class nsICookie; /* forward declaration */
20 :
21 :
22 : /* starting interface: nsICookiePromptService */
23 : #define NS_ICOOKIEPROMPTSERVICE_IID_STR "72f8bb14-2810-4f38-8d0d-290c5401f54e"
24 :
25 : #define NS_ICOOKIEPROMPTSERVICE_IID \
26 : {0x72f8bb14, 0x2810, 0x4f38, \
27 : { 0x8d, 0x0d, 0x29, 0x0c, 0x54, 0x01, 0xf5, 0x4e }}
28 :
29 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsICookiePromptService : public nsISupports {
30 : public:
31 :
32 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICOOKIEPROMPTSERVICE_IID)
33 :
34 : enum {
35 : DENY_COOKIE = 0U,
36 : ACCEPT_COOKIE = 1U,
37 : ACCEPT_SESSION_COOKIE = 2U
38 : };
39 :
40 : /* long cookieDialog (in nsIDOMWindow parent, in nsICookie cookie, in ACString hostname, in long cookiesFromHost, in boolean changingCookie, out boolean rememberDecision); */
41 : NS_SCRIPTABLE NS_IMETHOD CookieDialog(nsIDOMWindow *parent, nsICookie *cookie, const nsACString & hostname, PRInt32 cookiesFromHost, bool changingCookie, bool *rememberDecision NS_OUTPARAM, PRInt32 *_retval NS_OUTPARAM) = 0;
42 :
43 : };
44 :
45 : NS_DEFINE_STATIC_IID_ACCESSOR(nsICookiePromptService, NS_ICOOKIEPROMPTSERVICE_IID)
46 :
47 : /* Use this macro when declaring classes that implement this interface. */
48 : #define NS_DECL_NSICOOKIEPROMPTSERVICE \
49 : NS_SCRIPTABLE NS_IMETHOD CookieDialog(nsIDOMWindow *parent, nsICookie *cookie, const nsACString & hostname, PRInt32 cookiesFromHost, bool changingCookie, bool *rememberDecision NS_OUTPARAM, PRInt32 *_retval NS_OUTPARAM);
50 :
51 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
52 : #define NS_FORWARD_NSICOOKIEPROMPTSERVICE(_to) \
53 : NS_SCRIPTABLE NS_IMETHOD CookieDialog(nsIDOMWindow *parent, nsICookie *cookie, const nsACString & hostname, PRInt32 cookiesFromHost, bool changingCookie, bool *rememberDecision NS_OUTPARAM, PRInt32 *_retval NS_OUTPARAM) { return _to CookieDialog(parent, cookie, hostname, cookiesFromHost, changingCookie, rememberDecision, _retval); }
54 :
55 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
56 : #define NS_FORWARD_SAFE_NSICOOKIEPROMPTSERVICE(_to) \
57 : NS_SCRIPTABLE NS_IMETHOD CookieDialog(nsIDOMWindow *parent, nsICookie *cookie, const nsACString & hostname, PRInt32 cookiesFromHost, bool changingCookie, bool *rememberDecision NS_OUTPARAM, PRInt32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->CookieDialog(parent, cookie, hostname, cookiesFromHost, changingCookie, rememberDecision, _retval); }
58 :
59 : #if 0
60 : /* Use the code below as a template for the implementation class for this interface. */
61 :
62 : /* Header file */
63 : class nsCookiePromptService : public nsICookiePromptService
64 : {
65 : public:
66 : NS_DECL_ISUPPORTS
67 : NS_DECL_NSICOOKIEPROMPTSERVICE
68 :
69 : nsCookiePromptService();
70 :
71 : private:
72 : ~nsCookiePromptService();
73 :
74 : protected:
75 : /* additional members */
76 : };
77 :
78 : /* Implementation file */
79 : NS_IMPL_ISUPPORTS1(nsCookiePromptService, nsICookiePromptService)
80 :
81 : nsCookiePromptService::nsCookiePromptService()
82 : {
83 : /* member initializers and constructor code */
84 : }
85 :
86 : nsCookiePromptService::~nsCookiePromptService()
87 : {
88 : /* destructor code */
89 : }
90 :
91 : /* long cookieDialog (in nsIDOMWindow parent, in nsICookie cookie, in ACString hostname, in long cookiesFromHost, in boolean changingCookie, out boolean rememberDecision); */
92 : NS_IMETHODIMP nsCookiePromptService::CookieDialog(nsIDOMWindow *parent, nsICookie *cookie, const nsACString & hostname, PRInt32 cookiesFromHost, bool changingCookie, bool *rememberDecision NS_OUTPARAM, PRInt32 *_retval NS_OUTPARAM)
93 : {
94 : return NS_ERROR_NOT_IMPLEMENTED;
95 : }
96 :
97 : /* End of implementation class template. */
98 : #endif
99 :
100 : #define NS_COOKIEPROMPTSERVICE_CONTRACTID "@mozilla.org/embedcomp/cookieprompt-service;1"
101 :
102 : #endif /* __gen_nsICookiePromptService_h__ */
|