]> git.ipfire.org Git - thirdparty/squid.git/blob - src/acl/Strategy.h
Boilerplate: update copyright blurbs on src/
[thirdparty/squid.git] / src / acl / Strategy.h
1 /*
2 * Copyright (C) 1996-2014 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_ACLSTRATEGY_H
10 #define SQUID_ACLSTRATEGY_H
11
12 #include "acl/Acl.h"
13 #include "acl/Data.h"
14
15 class ACLFilledChecklist;
16
17 template<class M>
18
19 class ACLStrategy
20 {
21
22 public:
23 typedef M MatchType;
24 virtual int match (ACLData<M> * &, ACLFilledChecklist *, ACLFlags &) = 0;
25 virtual bool requiresRequest() const {return false;}
26
27 virtual bool requiresReply() const {return false;}
28
29 virtual bool valid() const {return true;}
30
31 virtual ~ACLStrategy() {}
32 };
33
34 #endif /* SQUID_ACLSTRATEGY_H */