]>
Commit | Line | Data |
---|---|---|
59b2d47f | 1 | /* |
4ac4a490 | 2 | * Copyright (C) 1996-2017 The Squid Software Foundation and contributors |
59b2d47f | 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. | |
59b2d47f | 7 | */ |
8 | ||
b9ae18aa | 9 | #ifndef SQUID_WRITEREQUEST_H |
10 | #define SQUID_WRITEREQUEST_H | |
59b2d47f | 11 | |
8bf217bd | 12 | #include "base/RefCount.h" |
aa839030 | 13 | #include "cbdata.h" |
6f5dc9e4 | 14 | #include "mem/forward.h" |
59b2d47f | 15 | |
b9ae18aa | 16 | class WriteRequest : public RefCountable |
59b2d47f | 17 | { |
5c2f68b7 | 18 | CBDATA_CLASS(WriteRequest); |
59b2d47f | 19 | |
20 | public: | |
b9ae18aa | 21 | typedef RefCount<WriteRequest> Pointer; |
22 | WriteRequest(char const *buf, off_t offset, size_t len, FREE *); | |
23 | virtual ~WriteRequest() {} | |
59b2d47f | 24 | |
b9ae18aa | 25 | char const *buf; |
26 | off_t offset; | |
27 | size_t len; | |
28 | FREE *free_func; | |
b9ae18aa | 29 | }; |
59b2d47f | 30 | |
b9ae18aa | 31 | #endif /* SQUID_WRITEREQUEST_H */ |
f53969cc | 32 |