]>
Commit | Line | Data |
---|---|---|
48071869 | 1 | /* |
bde978a6 | 2 | * Copyright (C) 1996-2015 The Squid Software Foundation and contributors |
48071869 | 3 | * |
bbc27441 AJ |
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. | |
48071869 | 7 | */ |
8 | ||
582c2af2 | 9 | #include "squid.h" |
602d9612 | 10 | #include "acl/Checklist.h" |
127dce76 AR |
11 | #include "acl/Protocol.h" |
12 | #include "acl/ProtocolData.h" | |
a2ac85d9 | 13 | #include "HttpRequest.h" |
48071869 | 14 | |
97427e90 | 15 | /* explicit template instantiation required for some systems */ |
16 | ||
0c3d3f65 | 17 | template class ACLStrategised<AnyP::ProtocolType>; |
97427e90 | 18 | |
48071869 | 19 | int |
4e3f4dc7 | 20 | ACLProtocolStrategy::match(ACLData<MatchType> * &data, ACLFilledChecklist *checklist, ACLFlags &) |
48071869 | 21 | { |
4e3f4dc7 | 22 | return data->match(checklist->request->url.getScheme()); |
48071869 | 23 | } |
24 | ||
25 | ACLProtocolStrategy * | |
26 | ACLProtocolStrategy::Instance() | |
27 | { | |
28 | return &Instance_; | |
29 | } | |
30 | ||
31 | ACLProtocolStrategy ACLProtocolStrategy::Instance_; | |
f53969cc | 32 |