]> git.ipfire.org Git - thirdparty/squid.git/blob - src/mgr/ActionWriter.h
Boilerplate: update copyright blurbs on src/
[thirdparty/squid.git] / src / mgr / ActionWriter.h
1 /*
2 * Copyright (C) 1996-2014 The Squid Software Foundation and contributors
3 *
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
7 */
8
9 /* DEBUG: section 16 Cache Manager API */
10
11 #ifndef SQUID_MGR_ACTION_WRITER_H
12 #define SQUID_MGR_ACTION_WRITER_H
13
14 #include "comm/forward.h"
15 #include "HttpRequestMethod.h"
16 #include "mgr/StoreToCommWriter.h"
17
18 namespace Mgr
19 {
20
21 /// Creates Store entry, fills it using action's fillEntry(), and
22 /// Comm-writes it using parent StoreToCommWriter.
23 class ActionWriter: public StoreToCommWriter
24 {
25 public:
26 ActionWriter(const Action::Pointer &anAction, const Comm::ConnectionPointer &conn);
27
28 protected:
29 /* AsyncJob API */
30 virtual void start();
31
32 private:
33 Action::Pointer action; ///< action that fills the entry
34
35 CBDATA_CLASS2(ActionWriter);
36 };
37
38 } // namespace Mgr
39
40 #endif /* SQUID_MGR_ACTION_WRITER_H */