]> git.ipfire.org Git - thirdparty/squid.git/blob - src/acl/AnnotateTransaction.h
441db54b4201fbb01c435fceb4f0629571b89976
[thirdparty/squid.git] / src / acl / AnnotateTransaction.h
1 /*
2 * Copyright (C) 1996-2017 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_ACLANNOTATETRANSACTION
10 #define SQUID_ACLANNOTATETRANSACTION
11
12 #include "acl/Strategised.h"
13 #include "acl/Strategy.h"
14
15 /// \ingroup ACLAPI
16 class ACLAnnotateTransactionStrategy : public ACLStrategy<NotePairs::Entry *>
17 {
18 public:
19 virtual int match(ACLData<MatchType> * &, ACLFilledChecklist *, ACLFlags &);
20 virtual bool requiresRequest() const { return true; }
21
22 static ACLAnnotateTransactionStrategy *Instance();
23 ACLAnnotateTransactionStrategy(ACLAnnotateTransactionStrategy const &) = delete;
24 ACLAnnotateTransactionStrategy& operator=(ACLAnnotateTransactionStrategy const &) = delete;
25
26 private:
27 static ACLAnnotateTransactionStrategy Instance_;
28 ACLAnnotateTransactionStrategy() {}
29 };
30
31 /// \ingroup ACLAPI
32 class ACLAnnotateTransaction
33 {
34 private:
35 static ACL::Prototype RegistryProtoype;
36 static ACLStrategised<NotePairs::Entry *> RegistryEntry_;
37 };
38
39 #endif /* SQUID_ACLANNOTATETRANSACTION */
40