]> git.ipfire.org Git - thirdparty/squid.git/blame - src/acl/DestinationIp.h
SourceFormat Enforcement
[thirdparty/squid.git] / src / acl / DestinationIp.h
CommitLineData
8000a965 1/*
bde978a6 2 * Copyright (C) 1996-2015 The Squid Software Foundation and contributors
8000a965 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.
8000a965 7 */
8
9#ifndef SQUID_ACLDESTINATIONIP_H
10#define SQUID_ACLDESTINATIONIP_H
741c2986 11
3ad63615
AR
12#include "acl/Checklist.h"
13#include "acl/Ip.h"
714e68b7 14#include "ipcache.h"
8000a965 15
62e76326 16class DestinationIPLookup : public ACLChecklist::AsyncState
17{
18
19public:
8000a965 20 static DestinationIPLookup *Instance();
21 virtual void checkForAsync(ACLChecklist *)const;
62e76326 22
23private:
8000a965 24 static DestinationIPLookup instance_;
25 static IPH LookupDone;
26};
27
62e76326 28class ACLDestinationIP : public ACLIP
29{
b001e822 30 MEMPROXY_CLASS(ACLDestinationIP);
8000a965 31
741c2986 32public:
33810b1d 33 ACLDestinationIP(): ACLIP(ACLDestinationIP::SupportedFlags) {}
8000a965 34 virtual char const *typeString() const;
8000a965 35 virtual int match(ACLChecklist *checklist);
36 virtual bool requiresRequest() const {return true;}
62e76326 37
8000a965 38 virtual ACL *clone()const;
62e76326 39
33810b1d 40 static ACLFlag SupportedFlags[];
62e76326 41private:
8000a965 42 static Prototype RegistryProtoype;
43 static ACLDestinationIP RegistryEntry_;
44};
45
46#endif /* SQUID_ACLDESTINATIONIP_H */
f53969cc 47