]> git.ipfire.org Git - thirdparty/squid.git/blame - src/DelayPool.h
Renamed squid.h to squid-old.h and config.h to squid.h
[thirdparty/squid.git] / src / DelayPool.h
CommitLineData
b67e2c8c 1
2/*
262a0e14 3 * $Id$
b67e2c8c 4 *
5 * DEBUG: section 77 Delay Pools
6 * AUTHOR: Robert Collins <robertc@squid-cache.org>
7 * Based upon original delay pools code by
8 * David Luyer <david@luyer.net>
9 *
10 * SQUID Web Proxy Cache http://www.squid-cache.org/
11 * ----------------------------------------------------------
12 *
13 * Squid is the result of efforts by numerous individuals from
14 * the Internet community; see the CONTRIBUTORS file for full
15 * details. Many organizations have provided support for Squid's
16 * development; see the SPONSORS file for full details. Squid is
17 * Copyrighted (C) 2001 by the Regents of the University of
18 * California; see the COPYRIGHT file for full details. Squid
19 * incorporates software developed and/or copyrighted by other
20 * sources; see the CREDITS file for full details.
21 *
22 * This program is free software; you can redistribute it and/or modify
23 * it under the terms of the GNU General Public License as published by
24 * the Free Software Foundation; either version 2 of the License, or
25 * (at your option) any later version.
26ac0430 26 *
b67e2c8c 27 * This program is distributed in the hope that it will be useful,
28 * but WITHOUT ANY WARRANTY; without even the implied warranty of
29 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30 * GNU General Public License for more details.
26ac0430 31 *
b67e2c8c 32 * You should have received a copy of the GNU General Public License
33 * along with this program; if not, write to the Free Software
34 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
35 *
36 *
37 * Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
38 */
b67e2c8c 39#ifndef DELAYPOOL_H
40#define DELAYPOOL_H
41
9a0a18de 42#if USE_DELAY_POOLS
f7f3304a 43#include "squid-old.h"
b67e2c8c 44#include "CompositePoolNode.h"
45
46class StoreEntry;
62e76326 47
b67e2c8c 48class CommonPool;
62e76326 49
b67e2c8c 50class acl_access;
51
63be0a78 52/// \ingroup DelayPoolsAPI
62e76326 53class DelayPool
54{
55
56public:
b67e2c8c 57 DelayPool();
58 ~DelayPool();
59 void freeData();
60 void createPool(u_char delay_class);
61 void parse();
62 void dump (StoreEntry *, unsigned int poolNumberMinusOne) const;
63 CommonPool *pool;
64 CompositePoolNode::Pointer theComposite() {return theComposite_;}
62e76326 65
26ac0430 66 CompositePoolNode::Pointer const theComposite() const {return theComposite_;}
62e76326 67
b67e2c8c 68 acl_access *access;
62e76326 69
70private:
b67e2c8c 71 CompositePoolNode::Pointer theComposite_;
72};
62e76326 73
9a0a18de 74#endif /* USE_DELAY_POOLS */
b67e2c8c 75#endif /* DELAYPOOL_H */