]> git.ipfire.org Git - thirdparty/squid.git/blob - src/acl/Url.h
f6cd8ebaab8b2f0bd831fa563d3dc92b76322a7f
[thirdparty/squid.git] / src / acl / Url.h
1 /*
2 * Copyright (C) 1996-2016 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_ACLURL_H
10 #define SQUID_ACLURL_H
11 #include "acl/Acl.h"
12 #include "acl/Data.h"
13 #include "acl/Strategised.h"
14
15 class ACLUrlStrategy : public ACLStrategy<char const *>
16 {
17
18 public:
19 virtual int match (ACLData<char const *> * &, ACLFilledChecklist *, ACLFlags &);
20 virtual bool requiresRequest() const {return true;}
21
22 static ACLUrlStrategy *Instance();
23 /* Not implemented to prevent copies of the instance. */
24 /* Not private to prevent brain dead g+++ warnings about
25 * private constructors with no friends */
26 ACLUrlStrategy(ACLUrlStrategy const &);
27
28 private:
29 static ACLUrlStrategy Instance_;
30 ACLUrlStrategy() {}
31
32 ACLUrlStrategy&operator=(ACLUrlStrategy const &);
33 };
34
35 class ACLUrl
36 {
37
38 public:
39 static ACL::Prototype RegistryProtoype;
40 static ACL::Prototype LegacyRegistryProtoype;
41 static ACLStrategised<char const *> RegistryEntry_;
42 };
43
44 #endif /* SQUID_ACLURL_H */
45