]>
Commit | Line | Data |
---|---|---|
8822ebee | 1 | /* |
bbc27441 | 2 | * Copyright (C) 1996-2014 The Squid Software Foundation and contributors |
8822ebee | 3 | * |
bbc27441 AJ |
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. | |
8822ebee AR |
7 | */ |
8 | ||
bbc27441 AJ |
9 | /* DEBUG: section 16 Cache Manager API */ |
10 | ||
8822ebee AR |
11 | #ifndef SQUID_MGR_REQUEST_H |
12 | #define SQUID_MGR_REQUEST_H | |
13 | ||
51ea0904 CT |
14 | #include "ipc/forward.h" |
15 | #include "ipc/Request.h" | |
8822ebee AR |
16 | #include "mgr/ActionParams.h" |
17 | ||
8822ebee AR |
18 | namespace Mgr |
19 | { | |
20 | ||
d9fc6862 | 21 | /// cache manager request |
51ea0904 | 22 | class Request: public Ipc::Request |
8822ebee AR |
23 | { |
24 | public: | |
1b76e6c1 | 25 | Request(int aRequestorId, unsigned int aRequestId, const Comm::ConnectionPointer &aConn, |
d9fc6862 | 26 | const ActionParams &aParams); |
8822ebee AR |
27 | |
28 | explicit Request(const Ipc::TypedMsgHdr& msg); ///< from recvmsg() | |
51ea0904 CT |
29 | /* Ipc::Request API */ |
30 | virtual void pack(Ipc::TypedMsgHdr& msg) const; | |
31 | virtual Pointer clone() const; | |
32 | ||
33 | private: | |
34 | Request(const Request& request); | |
8822ebee AR |
35 | |
36 | public: | |
1b76e6c1 | 37 | Comm::ConnectionPointer conn; ///< HTTP client connection descriptor |
8822ebee AR |
38 | |
39 | ActionParams params; ///< action name and parameters | |
40 | }; | |
41 | ||
8822ebee AR |
42 | } // namespace Mgr |
43 | ||
44 | #endif /* SQUID_MGR_REQUEST_H */ |