]> git.ipfire.org Git - thirdparty/squid.git/blob - src/acl/AdaptationService.h
Merged from trunk
[thirdparty/squid.git] / src / acl / AdaptationService.h
1 /*
2 * Copyright (C) 1996-2015 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_ACLADAPTATIONSERVICE_H
10 #define SQUID_ACLADAPTATIONSERVICE_H
11
12 #include "acl/Strategised.h"
13 #include "acl/Strategy.h"
14
15 /// \ingroup ACLAPI
16 class ACLAdaptationServiceStrategy : public ACLStrategy<const char *>
17 {
18
19 public:
20 virtual int match (ACLData<MatchType> * &, ACLFilledChecklist *, ACLFlags &);
21 static ACLAdaptationServiceStrategy *Instance();
22 /**
23 * Not implemented to prevent copies of the instance.
24 */
25 ACLAdaptationServiceStrategy(ACLAdaptationServiceStrategy const &);
26
27 private:
28 static ACLAdaptationServiceStrategy Instance_;
29 ACLAdaptationServiceStrategy() {}
30
31 ACLAdaptationServiceStrategy &operator = (ACLAdaptationServiceStrategy const &);
32 };
33
34 /// \ingroup ACLAPI
35 class ACLAdaptationService
36 {
37
38 private:
39 static ACL::Prototype RegistryProtoype;
40 static ACLStrategised<const char *> RegistryEntry_;
41 };
42
43 #endif /* SQUID_ACLADAPTATIONSERVICE_H */
44