]>
Commit | Line | Data |
---|---|---|
b67e2c8c | 1 | /* |
5b74111a | 2 | * Copyright (C) 1996-2018 The Squid Software Foundation and contributors |
26ac0430 | 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. | |
b67e2c8c | 7 | */ |
bbc27441 AJ |
8 | |
9 | /* DEBUG: section 77 Delay Pools */ | |
10 | ||
b67e2c8c | 11 | #ifndef DELAYIDCOMPOSITE_H |
12 | #define DELAYIDCOMPOSITE_H | |
9a0a18de AJ |
13 | |
14 | #if USE_DELAY_POOLS | |
8bf217bd | 15 | #include "base/RefCount.h" |
582c2af2 | 16 | #include "fatal.h" |
b67e2c8c | 17 | |
a46d2c0e | 18 | class DeferredRead; |
19 | ||
62e76326 | 20 | class DelayIdComposite : public RefCountable |
21 | { | |
22 | ||
b67e2c8c | 23 | public: |
24 | typedef RefCount<DelayIdComposite> Pointer; | |
26ac0430 | 25 | virtual inline ~DelayIdComposite() {} |
62e76326 | 26 | |
b67e2c8c | 27 | virtual int bytesWanted (int min, int max) const =0; |
28 | virtual void bytesIn(int qty) = 0; | |
a46d2c0e | 29 | /* only aggregate and vector need this today */ |
30 | virtual void delayRead(DeferredRead const &) {fatal("Not implemented");} | |
b67e2c8c | 31 | }; |
32 | ||
9a0a18de | 33 | #endif /* USE_DELAY_POOLS */ |
b67e2c8c | 34 | #endif /* DELAYIDCOMPOSITE_H */ |
f53969cc | 35 |