ReactOS  0.4.13-dev-563-g0561610
binding.h
Go to the documentation of this file.
1 /*
2  * Copyright 2011 Jacek Caban for CodeWeavers
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17  */
18 
19 #pragma once
20 
21 typedef struct nsWineURI nsWineURI;
22 
23 /* Keep sync with request_method_strings in nsio.c */
24 typedef enum {
29 
30 typedef enum {
35 
36 typedef struct {
40 
42 
53  char *content_type;
54  char *charset;
58  struct list response_headers;
59  struct list request_headers;
60 } nsChannel;
61 
62 typedef struct {
68 
70 
71 struct BSCallback {
76 
78 
80 
86 
89 
91 
92  struct list entry;
93 };
94 
96 
97 struct nsChannelBSC {
99 
106 
108 };
109 
119 };
120 
121 typedef struct {
122  struct list entry;
125 } http_header_t;
126 
127 #define BINDING_NAVIGATED 0x0001
128 #define BINDING_REPLACE 0x0002
129 #define BINDING_FROMHIST 0x0004
130 #define BINDING_REFRESH 0x0008
131 #define BINDING_SUBMIT 0x0010
132 #define BINDING_NOFRAG 0x0020
133 
134 HRESULT set_http_header(struct list*,const WCHAR*,int,const WCHAR*,int) DECLSPEC_HIDDEN;
136 
148 
154 
156 
160 
UINT32 response_status
Definition: binding.h:55
nsIInterfaceRequestor * notif_callback
Definition: binding.h:47
#define HRESULT
Definition: msvc.h:9
nsWineURI * uri
Definition: binding.h:43
nsIStreamListener * nslistener
Definition: binding.h:101
HRESULT hlink_frame_navigate(HTMLDocument *, LPCWSTR, nsChannel *, DWORD, BOOL *) DECLSPEC_HIDDEN
Definition: navigate.c:2193
nsIHttpChannel nsIHttpChannel_iface
Definition: binding.h:37
struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
Definition: typeof.h:49
uint32_t nsLoadFlags
Definition: nsiface.idl:67
ULONG readed
Definition: binding.h:82
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
HRESULT(* read_data)(BSCallback *, IStream *)
Definition: binding.h:115
IBinding * binding
Definition: binding.h:88
HRESULT(* beginning_transaction)(BSCallback *, WCHAR **)
Definition: binding.h:118
HRESULT create_channelbsc(IMoniker *, const WCHAR *, BYTE *, DWORD, BOOL, nsChannelBSC **) DECLSPEC_HIDDEN
Definition: navigate.c:1693
BSCallback bsc
Definition: binding.h:98
IUri * nsuri_get_uri(nsWineURI *) DECLSPEC_HIDDEN
Definition: nsio.c:68
HRESULT(* init_bindinfo)(BSCallback *)
Definition: binding.h:112
Definition: nsio.c:34
nsLoadFlags load_flags
Definition: binding.h:50
ULONG post_data_len
Definition: binding.h:66
HRESULT set_http_header(struct list *, const WCHAR *, int, const WCHAR *, int) DECLSPEC_HIDDEN
Definition: nsio.c:380
void(* destroy)(BSCallback *)
Definition: binding.h:111
HTMLInnerWindow * window
Definition: binding.h:90
WCHAR * data
Definition: binding.h:124
__IHTMLWindow2_FWD_DEFINED__ typedef interface IHTMLWindow2 IHTMLWindow2
Definition: mshtmhst.idl:64
HRESULT navigate_url(HTMLOuterWindow *, const WCHAR *, IUri *, DWORD) DECLSPEC_HIDDEN
Definition: navigate.c:2391
HRESULT(* on_response)(BSCallback *, DWORD, LPCWSTR)
Definition: binding.h:117
#define DWORD
Definition: nt_native.h:44
nsISupports * nscontext
Definition: binding.h:102
char * content_type
Definition: binding.h:53
request_data_t request_data
Definition: binding.h:81
unsigned int UINT32
unsigned int BOOL
Definition: ntddk_ex.h:94
long LONG
Definition: pedump.c:60
HRESULT super_navigate(HTMLOuterWindow *, IUri *, DWORD, const WCHAR *, BYTE *, DWORD) DECLSPEC_HIDDEN
Definition: navigate.c:2016
struct list entry
Definition: binding.h:92
nsIURI * original_uri
Definition: binding.h:51
IServiceProvider IServiceProvider_iface
Definition: binding.h:73
WCHAR * headers
Definition: binding.h:64
IUri * get_uri_nofrag(IUri *) DECLSPEC_HIDDEN
Definition: nsio.c:77
HRESULT navigate_new_window(HTMLOuterWindow *, IUri *, const WCHAR *, request_data_t *, IHTMLWindow2 **) DECLSPEC_HIDDEN
Definition: navigate.c:2132
const BSCallbackVtbl * vtbl
Definition: binding.h:77
BOOL post_data_contains_headers
Definition: binding.h:45
void channelbsc_set_channel(nsChannelBSC *, nsChannel *, nsIStreamListener *, nsISupports *) DECLSPEC_HIDDEN
Definition: navigate.c:1839
unsigned char cpp_bool
Definition: atl.c:39
LONG ref
Definition: binding.h:79
void prepare_for_binding(HTMLDocument *, IMoniker *, DWORD) DECLSPEC_HIDDEN
Definition: persist.c:271
HRESULT submit_form(HTMLOuterWindow *, const WCHAR *, IUri *, nsIInputStream *) DECLSPEC_HIDDEN
Definition: navigate.c:2361
__wchar_t WCHAR
Definition: xmlstorage.h:180
nsIInputStream * post_data_stream
Definition: binding.h:44
LONG HRESULT
Definition: typedefs.h:77
BOOL bindinfo_ready
Definition: binding.h:84
unsigned long DWORD
Definition: ntddk_ex.h:95
HRESULT create_doc_uri(HTMLOuterWindow *, IUri *, nsWineURI **) DECLSPEC_HIDDEN
Definition: nsio.c:3210
HRESULT create_relative_uri(HTMLOuterWindow *, const WCHAR *, IUri **) DECLSPEC_HIDDEN
Definition: persist.c:163
nsProtocolStream * nsstream
Definition: binding.h:107
DWORD bindf
Definition: binding.h:83
BOOL response_processed
Definition: binding.h:105
BOOL is_js
Definition: binding.h:103
uint32_t entry
Definition: isohybrid.c:63
nsresult on_start_uri_open(NSContainer *, nsIURI *, cpp_bool *) DECLSPEC_HIDDEN
Definition: nsio.c:4019
unsigned char BYTE
Definition: mem.h:68
Definition: _list.h:228
WCHAR * header
Definition: binding.h:123
HRESULT create_redirect_nschannel(const WCHAR *, nsChannel *, nsChannel **) DECLSPEC_HIDDEN
Definition: nsio.c:3251
IInternetBindInfo IInternetBindInfo_iface
Definition: binding.h:75
HRESULT(* stop_binding)(BSCallback *, HRESULT)
Definition: binding.h:114
nsISupports * owner
Definition: binding.h:48
#define DECLSPEC_HIDDEN
Definition: precomp.h:8
nsIUploadChannel nsIUploadChannel_iface
Definition: binding.h:38
HRESULT(* on_progress)(BSCallback *, ULONG, LPCWSTR)
Definition: binding.h:116
IHttpNegotiate2 IHttpNegotiate2_iface
Definition: binding.h:74
void set_current_mon(HTMLOuterWindow *, IMoniker *, DWORD) DECLSPEC_HIDDEN
Definition: persist.c:99
void set_current_uri(HTMLOuterWindow *, IUri *) DECLSPEC_HIDDEN
Definition: persist.c:68
IBindStatusCallback IBindStatusCallback_iface
Definition: binding.h:72
HRESULT read_stream(BSCallback *, IStream *, void *, DWORD, DWORD *) DECLSPEC_HIDDEN
Definition: navigate.c:602
nsIInputStream * post_stream
Definition: binding.h:63
HRESULT load_nsuri(HTMLOuterWindow *, nsWineURI *, nsIInputStream *, nsChannelBSC *, DWORD) DECLSPEC_HIDDEN
Definition: nsio.c:250
nsILoadGroup * load_group
Definition: binding.h:46
REQUEST_METHOD
Definition: binding.h:24
nsChannel * nschannel
Definition: binding.h:100
HRESULT channelbsc_load_stream(HTMLInnerWindow *, IMoniker *, IStream *) DECLSPEC_HIDDEN
Definition: navigate.c:1811
HRESULT nsresult
Definition: nsiface.idl:39
unsigned int ULONG
Definition: retypes.h:1
HRESULT load_uri(HTMLOuterWindow *, IUri *, DWORD) DECLSPEC_HIDDEN
Definition: navigate.c:2306
IMoniker * mon
Definition: binding.h:87
nsILoadInfo * load_info
Definition: binding.h:49
char * charset
Definition: binding.h:54
HRESULT(* start_binding)(BSCallback *)
Definition: binding.h:113
nsIHttpChannelInternal nsIHttpChannelInternal_iface
Definition: binding.h:39
LONG ref
Definition: binding.h:41
HRESULT set_moniker(HTMLOuterWindow *, IMoniker *, IUri *, IBindCtx *, nsChannelBSC *, BOOL) DECLSPEC_HIDDEN
Definition: persist.c:329
binding_bom_t bom
Definition: binding.h:85
binding_bom_t
Definition: binding.h:30
HGLOBAL post_data
Definition: binding.h:65
void init_bscallback(BSCallback *, const BSCallbackVtbl *, IMoniker *, DWORD) DECLSPEC_HIDDEN
Definition: navigate.c:584
REQUEST_METHOD request_method
Definition: binding.h:57
nsIURI * referrer
Definition: binding.h:52
char * response_status_text
Definition: binding.h:56
HRESULT create_uri(const WCHAR *, DWORD, IUri **) DECLSPEC_HIDDEN
Definition: persist.c:158
BOOL is_doc_channel
Definition: binding.h:104