1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/netwerk/protocol/viewsource/nsIViewSourceChannel.idl
3 : */
4 :
5 : #ifndef __gen_nsIViewSourceChannel_h__
6 : #define __gen_nsIViewSourceChannel_h__
7 :
8 :
9 : #ifndef __gen_nsIChannel_h__
10 : #include "nsIChannel.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 :
18 : /* starting interface: nsIViewSourceChannel */
19 : #define NS_IVIEWSOURCECHANNEL_IID_STR "8b77d6e2-2ae9-11d5-be57-000064657374"
20 :
21 : #define NS_IVIEWSOURCECHANNEL_IID \
22 : {0x8b77d6e2, 0x2ae9, 0x11d5, \
23 : { 0xbe, 0x57, 0x00, 0x00, 0x64, 0x65, 0x73, 0x74 }}
24 :
25 0 : class NS_NO_VTABLE nsIViewSourceChannel : public nsIChannel {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IVIEWSOURCECHANNEL_IID)
29 :
30 : /* attribute ACString originalContentType; */
31 : NS_IMETHOD GetOriginalContentType(nsACString & aOriginalContentType) = 0;
32 : NS_IMETHOD SetOriginalContentType(const nsACString & aOriginalContentType) = 0;
33 :
34 : };
35 :
36 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIViewSourceChannel, NS_IVIEWSOURCECHANNEL_IID)
37 :
38 : /* Use this macro when declaring classes that implement this interface. */
39 : #define NS_DECL_NSIVIEWSOURCECHANNEL \
40 : NS_IMETHOD GetOriginalContentType(nsACString & aOriginalContentType); \
41 : NS_IMETHOD SetOriginalContentType(const nsACString & aOriginalContentType);
42 :
43 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
44 : #define NS_FORWARD_NSIVIEWSOURCECHANNEL(_to) \
45 : NS_IMETHOD GetOriginalContentType(nsACString & aOriginalContentType) { return _to GetOriginalContentType(aOriginalContentType); } \
46 : NS_IMETHOD SetOriginalContentType(const nsACString & aOriginalContentType) { return _to SetOriginalContentType(aOriginalContentType); }
47 :
48 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
49 : #define NS_FORWARD_SAFE_NSIVIEWSOURCECHANNEL(_to) \
50 : NS_IMETHOD GetOriginalContentType(nsACString & aOriginalContentType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOriginalContentType(aOriginalContentType); } \
51 : NS_IMETHOD SetOriginalContentType(const nsACString & aOriginalContentType) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOriginalContentType(aOriginalContentType); }
52 :
53 : #if 0
54 : /* Use the code below as a template for the implementation class for this interface. */
55 :
56 : /* Header file */
57 : class nsViewSourceChannel : public nsIViewSourceChannel
58 : {
59 : public:
60 : NS_DECL_ISUPPORTS
61 : NS_DECL_NSIVIEWSOURCECHANNEL
62 :
63 : nsViewSourceChannel();
64 :
65 : private:
66 : ~nsViewSourceChannel();
67 :
68 : protected:
69 : /* additional members */
70 : };
71 :
72 : /* Implementation file */
73 : NS_IMPL_ISUPPORTS1(nsViewSourceChannel, nsIViewSourceChannel)
74 :
75 : nsViewSourceChannel::nsViewSourceChannel()
76 : {
77 : /* member initializers and constructor code */
78 : }
79 :
80 : nsViewSourceChannel::~nsViewSourceChannel()
81 : {
82 : /* destructor code */
83 : }
84 :
85 : /* attribute ACString originalContentType; */
86 : NS_IMETHODIMP nsViewSourceChannel::GetOriginalContentType(nsACString & aOriginalContentType)
87 : {
88 : return NS_ERROR_NOT_IMPLEMENTED;
89 : }
90 : NS_IMETHODIMP nsViewSourceChannel::SetOriginalContentType(const nsACString & aOriginalContentType)
91 : {
92 : return NS_ERROR_NOT_IMPLEMENTED;
93 : }
94 :
95 : /* End of implementation class template. */
96 : #endif
97 :
98 :
99 : #endif /* __gen_nsIViewSourceChannel_h__ */
|