]> git.ipfire.org Git - thirdparty/squid.git/blob - src/mgr/ActionWriter.h
Merged from trunk
[thirdparty/squid.git] / src / mgr / ActionWriter.h
1 /*
2 * $Id$
3 *
4 * DEBUG: section 16 Cache Manager API
5 *
6 */
7
8 #ifndef SQUID_MGR_ACTION_WRITER_H
9 #define SQUID_MGR_ACTION_WRITER_H
10
11 #include "comm/forward.h"
12 #include "HttpRequestMethod.h"
13 #include "mgr/StoreToCommWriter.h"
14
15
16 namespace Mgr
17 {
18
19 /// Creates Store entry, fills it using action's fillEntry(), and
20 /// Comm-writes it using parent StoreToCommWriter.
21 class ActionWriter: public StoreToCommWriter
22 {
23 public:
24 ActionWriter(const Action::Pointer &anAction, const Comm::ConnectionPointer &conn);
25
26 protected:
27 /* AsyncJob API */
28 virtual void start();
29
30 private:
31 Action::Pointer action; ///< action that fills the entry
32
33 CBDATA_CLASS2(ActionWriter);
34 };
35
36 } // namespace Mgr
37
38 #endif /* SQUID_MGR_ACTION_WRITER_H */