]> git.ipfire.org Git - thirdparty/squid.git/blob - src/acl/Protocol.cc
Merge from trunk
[thirdparty/squid.git] / src / acl / Protocol.cc
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 #include "squid.h"
10 #include "acl/Checklist.h"
11 #include "acl/Protocol.h"
12 #include "acl/ProtocolData.h"
13 #include "HttpRequest.h"
14
15 /* explicit template instantiation required for some systems */
16
17 template class ACLStrategised<AnyP::ProtocolType>;
18
19 int
20 ACLProtocolStrategy::match(ACLData<MatchType> * &data, ACLFilledChecklist *checklist, ACLFlags &)
21 {
22 return data->match(checklist->request->url.getScheme());
23 }
24
25 ACLProtocolStrategy *
26 ACLProtocolStrategy::Instance()
27 {
28 return &Instance_;
29 }
30
31 ACLProtocolStrategy ACLProtocolStrategy::Instance_;
32