]>
Commit | Line | Data |
---|---|---|
e1f7507e AJ |
1 | #ifndef SQUID_CLIENTREQUESTCONTEXT_H |
2 | #define SQUID_CLIENTREQUESTCONTEXT_H | |
3 | ||
4 | class ACLChecklist; | |
5 | class ClientHttpRequest; | |
6 | ||
7 | #include "config.h" | |
8 | /* for RefCountable */ | |
9 | #include "RefCount.h" | |
10 | /* for CBDATA_CLASS() */ | |
11 | #include "cbdata.h" | |
12 | ||
a83c6ed6 AR |
13 | #if USE_ADAPTATION |
14 | #include "adaptation/forward.h" | |
0f305536 | 15 | #endif |
16 | ||
17 | class ClientRequestContext : public RefCountable | |
18 | { | |
19 | ||
20 | public: | |
21 | void *operator new(size_t); | |
22 | void operator delete(void *); | |
23 | ||
24 | ClientRequestContext(ClientHttpRequest *); | |
25 | ~ClientRequestContext(); | |
26 | ||
27 | bool httpStateIsValid(); | |
28 | void clientAccessCheck(); | |
533493da | 29 | void clientAccessCheck2(); |
0f305536 | 30 | void clientAccessCheckDone(int answer); |
31 | void clientRedirectStart(); | |
32 | void clientRedirectDone(char *result); | |
33 | void checkNoCache(); | |
34 | void checkNoCacheDone(int answer); | |
a83c6ed6 | 35 | #if USE_ADAPTATION |
0f305536 | 36 | |
a83c6ed6 | 37 | void adaptationAccessCheck(); |
a22e6cd3 | 38 | void adaptationAclCheckDone(Adaptation::ServiceGroupPointer g); |
0f305536 | 39 | #endif |
40 | ||
41 | ClientHttpRequest *http; | |
42 | ACLChecklist *acl_checklist; /* need ptr back so we can unreg if needed */ | |
43 | int redirect_state; | |
44 | ||
57abaac0 | 45 | bool http_access_done; |
533493da | 46 | bool adapted_http_access_done; |
a83c6ed6 | 47 | #if USE_ADAPTATION |
a83c6ed6 | 48 | bool adaptation_acl_check_done; |
0f305536 | 49 | #endif |
57abaac0 | 50 | bool redirect_done; |
5d2136fa | 51 | bool no_cache_done; |
57abaac0 | 52 | bool interpreted_req_hdrs; |
425de4c8 AJ |
53 | bool tosToClientDone; |
54 | bool nfmarkToClientDone; | |
0f305536 | 55 | |
56 | private: | |
57 | CBDATA_CLASS(ClientRequestContext); | |
58 | }; | |
59 | ||
e1f7507e | 60 | #endif /* SQUID_CLIENTREQUESTCONTEXT_H */ |