]>
Commit | Line | Data |
---|---|---|
5dee515e | 1 | /* |
bbc27441 | 2 | * Copyright (C) 1996-2014 The Squid Software Foundation and contributors |
5dee515e | 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. | |
5dee515e | 7 | */ |
8 | ||
b0dd28ba | 9 | #ifndef SQUID_ACLPROTOCOLDATA_H |
10 | #define SQUID_ACLPROTOCOLDATA_H | |
0c3d3f65 | 11 | |
3ad63615 AR |
12 | #include "acl/Acl.h" |
13 | #include "acl/Data.h" | |
0c3d3f65 | 14 | #include "anyp/ProtocolType.h" |
cd44274b AJ |
15 | |
16 | #include <list> | |
5dee515e | 17 | |
0c3d3f65 | 18 | class ACLProtocolData : public ACLData<AnyP::ProtocolType> |
62e76326 | 19 | { |
b001e822 | 20 | MEMPROXY_CLASS(ACLProtocolData); |
b0dd28ba | 21 | |
741c2986 | 22 | public: |
cd44274b | 23 | ACLProtocolData() {} |
b0dd28ba | 24 | ACLProtocolData(ACLProtocolData const &); |
25 | ACLProtocolData &operator= (ACLProtocolData const &); | |
26 | virtual ~ACLProtocolData(); | |
0c3d3f65 | 27 | bool match(AnyP::ProtocolType); |
2cb8d372 | 28 | virtual SBufList dump() const; |
b0dd28ba | 29 | void parse(); |
cd44274b | 30 | bool empty() const {return values.empty();} |
0c3d3f65 | 31 | virtual ACLData<AnyP::ProtocolType> *clone() const; |
62e76326 | 32 | |
cd44274b | 33 | std::list<AnyP::ProtocolType> values; |
b0dd28ba | 34 | }; |
5dee515e | 35 | |
b0dd28ba | 36 | #endif /* SQUID_ACLPROTOCOLDATA_H */ |
f53969cc | 37 |