]> git.ipfire.org Git - thirdparty/squid.git/blob - src/acl/SourceDomain.h
Docs: Copyright updates for 2018 (#114)
[thirdparty/squid.git] / src / acl / SourceDomain.h
1 /*
2 * Copyright (C) 1996-2018 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_ACLSOURCEDOMAIN_H
10 #define SQUID_ACLSOURCEDOMAIN_H
11 #include "acl/Acl.h"
12 #include "acl/Checklist.h"
13 #include "acl/Data.h"
14 #include "acl/Strategy.h"
15 #include "dns/forward.h"
16
17 class ACLSourceDomainStrategy : public ACLStrategy<char const *>
18 {
19
20 public:
21 virtual int match (ACLData<MatchType> * &, ACLFilledChecklist *) override;
22 };
23
24 class SourceDomainLookup : public ACLChecklist::AsyncState
25 {
26
27 public:
28 static SourceDomainLookup *Instance();
29 virtual void checkForAsync(ACLChecklist *)const;
30
31 private:
32 static SourceDomainLookup instance_;
33 static void LookupDone(const char *, const Dns::LookupDetails &, void *);
34 };
35
36 #endif /* SQUID_ACLSOURCEDOMAIN_H */
37