1 // THIS FILE AUTOMATICALLY GENERATED BY xpidl2cs.pl
2 // EDITING IS PROBABLY UNWISE
3 // Permission is hereby granted, free of charge, to any person obtaining
4 // a copy of this software and associated documentation files (the
5 // "Software"), to deal in the Software without restriction, including
6 // without limitation the rights to use, copy, modify, merge, publish,
7 // distribute, sublicense, and/or sell copies of the Software, and to
8 // permit persons to whom the Software is furnished to do so, subject to
9 // the following conditions:
11 // The above copyright notice and this permission notice shall be
12 // included in all copies or substantial portions of the Software.
14 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 // Copyright (c) 2007, 2008 Novell, Inc.
25 // Andreia Gaita (avidigal@novell.com)
29 using System
.Runtime
.InteropServices
;
30 using System
.Runtime
.CompilerServices
;
33 namespace Mono
.Mozilla
{
35 [Guid ("c63a055a-a676-4e71-bf3c-6cfa11082018")]
36 [InterfaceType (ComInterfaceType
.InterfaceIsIUnknown
)]
38 internal interface nsIChannel
: nsIRequest
{
40 [PreserveSigAttribute
]
41 [MethodImpl (MethodImplOptions
.InternalCall
, MethodCodeType
= MethodCodeType
.Runtime
)]
42 int getName ( /*AUTF8String*/ HandleRef ret
);
44 [PreserveSigAttribute
]
45 [MethodImpl (MethodImplOptions
.InternalCall
, MethodCodeType
= MethodCodeType
.Runtime
)]
46 int isPending ( out bool ret
);
48 [PreserveSigAttribute
]
49 [MethodImpl (MethodImplOptions
.InternalCall
, MethodCodeType
= MethodCodeType
.Runtime
)]
50 int getStatus ( out int ret
);
52 [PreserveSigAttribute
]
53 [MethodImpl (MethodImplOptions
.InternalCall
, MethodCodeType
= MethodCodeType
.Runtime
)]
57 [PreserveSigAttribute
]
58 [MethodImpl (MethodImplOptions
.InternalCall
, MethodCodeType
= MethodCodeType
.Runtime
)]
61 [PreserveSigAttribute
]
62 [MethodImpl (MethodImplOptions
.InternalCall
, MethodCodeType
= MethodCodeType
.Runtime
)]
65 [PreserveSigAttribute
]
66 [MethodImpl (MethodImplOptions
.InternalCall
, MethodCodeType
= MethodCodeType
.Runtime
)]
67 int getLoadGroup ([MarshalAs (UnmanagedType
.Interface
)] out nsILoadGroup ret
);
69 [PreserveSigAttribute
]
70 [MethodImpl (MethodImplOptions
.InternalCall
, MethodCodeType
= MethodCodeType
.Runtime
)]
71 int setLoadGroup ([MarshalAs (UnmanagedType
.Interface
)] nsILoadGroup
value);
73 [PreserveSigAttribute
]
74 [MethodImpl (MethodImplOptions
.InternalCall
, MethodCodeType
= MethodCodeType
.Runtime
)]
75 int getLoadFlags ( out ulong ret
);
77 [PreserveSigAttribute
]
78 [MethodImpl (MethodImplOptions
.InternalCall
, MethodCodeType
= MethodCodeType
.Runtime
)]
79 int setLoadFlags ( ulong value);
84 [PreserveSigAttribute
]
85 [MethodImpl (MethodImplOptions
.InternalCall
, MethodCodeType
= MethodCodeType
.Runtime
)]
86 int getOriginalURI ([MarshalAs (UnmanagedType
.Interface
)] out nsIURI ret
);
88 [PreserveSigAttribute
]
89 [MethodImpl (MethodImplOptions
.InternalCall
, MethodCodeType
= MethodCodeType
.Runtime
)]
90 int setOriginalURI ([MarshalAs (UnmanagedType
.Interface
)] nsIURI
value);
92 [PreserveSigAttribute
]
93 [MethodImpl (MethodImplOptions
.InternalCall
, MethodCodeType
= MethodCodeType
.Runtime
)]
94 int getURI ([MarshalAs (UnmanagedType
.Interface
)] out nsIURI ret
);
96 [PreserveSigAttribute
]
97 [MethodImpl (MethodImplOptions
.InternalCall
, MethodCodeType
= MethodCodeType
.Runtime
)]
98 int getOwner ( out IntPtr ret
);
100 [PreserveSigAttribute
]
101 [MethodImpl (MethodImplOptions
.InternalCall
, MethodCodeType
= MethodCodeType
.Runtime
)]
102 int setOwner ( IntPtr
value);
104 [PreserveSigAttribute
]
105 [MethodImpl (MethodImplOptions
.InternalCall
, MethodCodeType
= MethodCodeType
.Runtime
)]
106 int getNotificationCallbacks ([MarshalAs (UnmanagedType
.Interface
)] out nsIInterfaceRequestor ret
);
108 [PreserveSigAttribute
]
109 [MethodImpl (MethodImplOptions
.InternalCall
, MethodCodeType
= MethodCodeType
.Runtime
)]
110 int setNotificationCallbacks ([MarshalAs (UnmanagedType
.Interface
)] nsIInterfaceRequestor
value);
112 [PreserveSigAttribute
]
113 [MethodImpl (MethodImplOptions
.InternalCall
, MethodCodeType
= MethodCodeType
.Runtime
)]
114 int getSecurityInfo ( out IntPtr ret
);
116 [PreserveSigAttribute
]
117 [MethodImpl (MethodImplOptions
.InternalCall
, MethodCodeType
= MethodCodeType
.Runtime
)]
118 int getContentType ( /*ACString*/ HandleRef ret
);
120 [PreserveSigAttribute
]
121 [MethodImpl (MethodImplOptions
.InternalCall
, MethodCodeType
= MethodCodeType
.Runtime
)]
122 int setContentType ( /*ACString*/ HandleRef
value);
124 [PreserveSigAttribute
]
125 [MethodImpl (MethodImplOptions
.InternalCall
, MethodCodeType
= MethodCodeType
.Runtime
)]
126 int getContentCharset ( /*ACString*/ HandleRef ret
);
128 [PreserveSigAttribute
]
129 [MethodImpl (MethodImplOptions
.InternalCall
, MethodCodeType
= MethodCodeType
.Runtime
)]
130 int setContentCharset ( /*ACString*/ HandleRef
value);
132 [PreserveSigAttribute
]
133 [MethodImpl (MethodImplOptions
.InternalCall
, MethodCodeType
= MethodCodeType
.Runtime
)]
134 int getContentLength ( out int ret
);
136 [PreserveSigAttribute
]
137 [MethodImpl (MethodImplOptions
.InternalCall
, MethodCodeType
= MethodCodeType
.Runtime
)]
138 int setContentLength ( int value);
140 [PreserveSigAttribute
]
141 [MethodImpl (MethodImplOptions
.InternalCall
, MethodCodeType
= MethodCodeType
.Runtime
)]
142 int open ([MarshalAs (UnmanagedType
.Interface
)] out nsIInputStream ret
);
144 [PreserveSigAttribute
]
145 [MethodImpl (MethodImplOptions
.InternalCall
, MethodCodeType
= MethodCodeType
.Runtime
)]
147 [MarshalAs (UnmanagedType
.Interface
)] nsIStreamListener aListener
,
154 internal class nsChannel
{
155 public static nsIChannel
GetProxy (Mono
.WebBrowser
.IWebBrowser control
, nsIChannel obj
)
157 object o
= Base
.GetProxyForObject (control
, typeof(nsIChannel
).GUID
, obj
);
158 return o
as nsIChannel
;