]> git.ipfire.org Git - thirdparty/squid.git/blob - src/acl/ProtocolData.h
SourceLayout: shuffle CbDataList to libbase
[thirdparty/squid.git] / src / acl / ProtocolData.h
1 /*
2 * Copyright (C) 1996-2014 The Squid Software Foundation and contributors
3 *
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.
7 */
8
9 #ifndef SQUID_ACLPROTOCOLDATA_H
10 #define SQUID_ACLPROTOCOLDATA_H
11
12 #include "acl/Acl.h"
13 #include "acl/Data.h"
14 #include "anyp/ProtocolType.h"
15 #include "base/CbDataList.h"
16
17 class ACLProtocolData : public ACLData<AnyP::ProtocolType>
18 {
19 MEMPROXY_CLASS(ACLProtocolData);
20
21 public:
22 ACLProtocolData();
23 ACLProtocolData(ACLProtocolData const &);
24 ACLProtocolData &operator= (ACLProtocolData const &);
25 virtual ~ACLProtocolData();
26 bool match(AnyP::ProtocolType);
27 virtual SBufList dump() const;
28 void parse();
29 bool empty() const;
30 virtual ACLData<AnyP::ProtocolType> *clone() const;
31
32 CbDataList<AnyP::ProtocolType> *values;
33 };
34
35 #endif /* SQUID_ACLPROTOCOLDATA_H */