]>
Commit | Line | Data |
---|---|---|
b67e2c8c | 1 | |
2 | /* | |
30abd221 | 3 | * $Id: CommonPool.h,v 1.5 2007/05/29 13:31:36 amosjeffries Exp $ |
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. | |
26 | * | |
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. | |
31 | * | |
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 | */ | |
39 | ||
40 | #include "config.h" | |
41 | ||
42 | #ifndef COMMONPOOL_H | |
43 | #define COMMONPOOL_H | |
44 | #if DELAY_POOLS | |
45 | #include "squid.h" | |
46 | #include "SquidString.h" | |
47 | #include "CompositePoolNode.h" | |
48 | ||
49 | /* Next steps: make this a composite, and TypeLabel a composite method. | |
50 | * Then we have a legacy composite which returns class 1/2/3, and new | |
51 | * composites which return a descriptor of some sort. | |
52 | */ | |
62e76326 | 53 | |
54 | class CommonPool | |
55 | { | |
56 | ||
57 | public: | |
b67e2c8c | 58 | void *operator new(size_t); |
59 | void operator delete (void *); | |
b67e2c8c | 60 | static CommonPool *Factory (unsigned char _class, CompositePoolNode::Pointer&); |
30abd221 | 61 | char const* theClassTypeLabel() const {return typeLabel.buf();} |
62e76326 | 62 | |
b67e2c8c | 63 | protected: |
64 | CommonPool(); | |
30abd221 | 65 | String typeLabel; |
b67e2c8c | 66 | }; |
62e76326 | 67 | |
b67e2c8c | 68 | #endif |
69 | #endif /* COMMONPOOL_H */ | |
70 |