--------------------- PatchSet 1870 Date: 2005/09/24 18:19:23 Author: dwsquid Branch: squid3-icap Tag: (none) Log: Moved this class definition out of client_side_request.cc into its own .h file so we can share it with client_side.cc Members: src/ClientRequestContext.h:1.1->1.1.2.1 --- /dev/null Wed Feb 14 13:33:00 2007 +++ squid3/src/ClientRequestContext.h Wed Feb 14 13:35:12 2007 @@ -0,0 +1,41 @@ + +class ClientRequestContext : public RefCountable +{ + +public: + void *operator new(size_t); + void operator delete(void *); + + ClientRequestContext(ClientHttpRequest *); + ~ClientRequestContext(); + + bool httpStateIsValid(); + void clientAccessCheck(); + void clientAccessCheckDone(int answer); + void clientRedirectStart(); + void clientRedirectDone(char *result); + void checkNoCache(); + void checkNoCacheDone(int answer); + + ClientHttpRequest *http; + ACLChecklist *acl_checklist; /* need ptr back so we can unreg if needed */ + int redirect_state; + +int http_access_done: + 1; +#if ICAP_CLIENT + +int icap_reqmod_done: + 1; +#endif + +int redirect_done: + 1; + +int no_cache_done: + 1; + +private: + CBDATA_CLASS(ClientRequestContext); +}; +