]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/acl/Strategy.h
2 * Copyright (C) 1996-2023 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_ACLSTRATEGY_H
10 #define SQUID_ACLSTRATEGY_H
14 #include "acl/Options.h"
16 class ACLFilledChecklist
;
20 /// A matching algorithm.
27 /* Replicate ACL API parts relevant to the matching algorithm. */
28 virtual const Acl::Options
&options() { return Acl::NoOptions(); }
29 virtual int match (ACLData
<M
> * &, ACLFilledChecklist
*) = 0;
30 virtual bool requiresRequest() const {return false;}
32 virtual bool requiresReply() const {return false;}
34 virtual bool valid() const {return true;}
36 virtual ~ACLStrategy() {}
39 #endif /* SQUID_ACLSTRATEGY_H */