2 * Copyright (C) 1996-2014 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_ACLSOURCEDOMAIN_H
10 #define SQUID_ACLSOURCEDOMAIN_H
12 #include "acl/Checklist.h"
14 #include "acl/Strategised.h"
16 class ACLSourceDomainStrategy
: public ACLStrategy
<char const *>
20 virtual int match (ACLData
<MatchType
> * &, ACLFilledChecklist
*, ACLFlags
&);
21 static ACLSourceDomainStrategy
*Instance();
22 /* Not implemented to prevent copies of the instance. */
23 /* Not private to prevent brain dead g+++ warnings about
24 * private constructors with no friends */
25 ACLSourceDomainStrategy(ACLSourceDomainStrategy
const &);
28 static ACLSourceDomainStrategy Instance_
;
29 ACLSourceDomainStrategy() {}
31 ACLSourceDomainStrategy
&operator=(ACLSourceDomainStrategy
const &);
34 class SourceDomainLookup
: public ACLChecklist::AsyncState
38 static SourceDomainLookup
*Instance();
39 virtual void checkForAsync(ACLChecklist
*)const;
42 static SourceDomainLookup instance_
;
43 static void LookupDone(const char *, const DnsLookupDetails
&, void *);
50 static ACL::Prototype LiteralRegistryProtoype
;
51 static ACLStrategised
<char const *> LiteralRegistryEntry_
;
52 static ACL::Prototype RegexRegistryProtoype
;
53 static ACLStrategised
<char const *> RegexRegistryEntry_
;
56 #endif /* SQUID_ACLSOURCEDOMAIN_H */