]>
Commit | Line | Data |
---|---|---|
0f305536 | 1 | #if ICAP_CLIENT |
2 | #include "ICAP/ICAPServiceRep.h" | |
3 | #endif | |
4 | ||
5 | class ClientRequestContext : public RefCountable | |
6 | { | |
7 | ||
8 | public: | |
9 | void *operator new(size_t); | |
10 | void operator delete(void *); | |
11 | ||
12 | ClientRequestContext(ClientHttpRequest *); | |
13 | ~ClientRequestContext(); | |
14 | ||
15 | bool httpStateIsValid(); | |
16 | void clientAccessCheck(); | |
17 | void clientAccessCheckDone(int answer); | |
18 | void clientRedirectStart(); | |
19 | void clientRedirectDone(char *result); | |
20 | void checkNoCache(); | |
21 | void checkNoCacheDone(int answer); | |
22 | #if ICAP_CLIENT | |
23 | ||
24 | void icapAccessCheck(); | |
25 | void icapAclCheckDone(ICAPServiceRep::Pointer service); | |
26 | #endif | |
27 | ||
28 | ClientHttpRequest *http; | |
29 | ACLChecklist *acl_checklist; /* need ptr back so we can unreg if needed */ | |
30 | int redirect_state; | |
31 | ||
32 | int http_access_done: | |
33 | 1; | |
34 | #if ICAP_CLIENT | |
35 | ||
36 | int icap_acl_check_done: | |
37 | 1; | |
38 | #endif | |
39 | ||
40 | int redirect_done: | |
41 | 1; | |
42 | ||
43 | int no_cache_done: | |
44 | 1; | |
45 | ||
46 | private: | |
47 | CBDATA_CLASS(ClientRequestContext); | |
48 | }; | |
49 |