2 * Copyright (C) 1996-2015 The Squid Software Foundation and contributors
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.
9 #ifndef SQUID_ACLPROTOCOL_H
10 #define SQUID_ACLPROTOCOL_H
12 #include "acl/Strategised.h"
13 #include "acl/Strategy.h"
14 #include "anyp/ProtocolType.h"
16 class ACLProtocolStrategy
: public ACLStrategy
<AnyP::ProtocolType
>
20 virtual int match (ACLData
<MatchType
> * &, ACLFilledChecklist
*, ACLFlags
&);
21 virtual bool requiresRequest() const {return true;}
23 static ACLProtocolStrategy
*Instance();
24 /* Not implemented to prevent copies of the instance. */
25 /* Not private to prevent brain dead g+++ warnings about
26 * private constructors with no friends */
27 ACLProtocolStrategy(ACLProtocolStrategy
const &);
30 static ACLProtocolStrategy Instance_
;
31 ACLProtocolStrategy() {}
33 ACLProtocolStrategy
&operator=(ACLProtocolStrategy
const &);
40 static ACL::Prototype RegistryProtoype
;
41 static ACLStrategised
<AnyP::ProtocolType
> RegistryEntry_
;
44 #endif /* SQUID_ACLPROTOCOL_H */