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