]> git.ipfire.org Git - thirdparty/squid.git/blob - src/mgr/Filler.h
Roll Comm::Connection into new mgr/ code
[thirdparty/squid.git] / src / mgr / Filler.h
1 /*
2 * $Id$
3 *
4 * DEBUG: section 16 Cache Manager API
5 *
6 */
7
8 #ifndef SQUID_MGR_FILLER_H
9 #define SQUID_MGR_FILLER_H
10
11 #include "comm/forward.h"
12 #include "HttpRequestMethod.h"
13 #include "mgr/Action.h"
14 #include "mgr/StoreToCommWriter.h"
15
16 namespace Mgr
17 {
18
19 /// provides Coordinator with a local cache manager response
20 class Filler: public StoreToCommWriter
21 {
22 public:
23 Filler(const Action::Pointer &anAction, const Comm::ConnectionPointer &conn, unsigned int aRequestId);
24
25 protected:
26 /* AsyncJob API */
27 virtual void start();
28 virtual void swanSong();
29
30 private:
31 Action::Pointer action; ///< action that will run() and sendResponse()
32 unsigned int requestId; ///< the ID of the Request we are responding to
33
34 CBDATA_CLASS2(Filler);
35 };
36
37 } // namespace Mgr
38
39 #endif /* SQUID_MGR_FILLER_H */