]> git.ipfire.org Git - thirdparty/squid.git/blame - src/NullDelayId.h
SourceFormat Enforcement
[thirdparty/squid.git] / src / NullDelayId.h
CommitLineData
b67e2c8c 1/*
4ac4a490 2 * Copyright (C) 1996-2017 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 NULLDELAYID_H
12#define NULLDELAYID_H
582c2af2 13
9a0a18de 14#if USE_DELAY_POOLS
8bf217bd 15#include "base/RefCount.h"
b67e2c8c 16#include "DelayIdComposite.h"
17
62e76326 18class NullDelayId : public DelayIdComposite
19{
20
21public:
b67e2c8c 22 void *operator new(size_t);
23 void operator delete (void *);
025d326f 24 virtual int bytesWanted (int minimum, int maximum) const {return max(minimum,maximum);}
62e76326 25
3d0ac046
HN
26 virtual void bytesIn(int qty) {}
27};
b67e2c8c 28#endif
29#endif /* NULLDELAYID_H */
f53969cc 30