]>
Commit | Line | Data |
---|---|---|
bbc27441 | 1 | /* |
bde978a6 | 2 | * Copyright (C) 1996-2015 The Squid Software Foundation and contributors |
bbc27441 AJ |
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 | ||
582c2af2 | 9 | #include "squid.h" |
602d9612 | 10 | #include "acl/Checklist.h" |
bbaf2685 AJ |
11 | #include "acl/HierCode.h" |
12 | #include "acl/HierCodeData.h" | |
bbaf2685 AJ |
13 | #include "HttpRequest.h" |
14 | ||
15 | /* explicit template instantiation required for some systems */ | |
16 | ||
17 | template class ACLStrategised<hier_code>; | |
18 | ||
bbaf2685 | 19 | int |
33810b1d | 20 | ACLHierCodeStrategy::match (ACLData<MatchType> * &data, ACLFilledChecklist *checklist, ACLFlags &) |
bbaf2685 AJ |
21 | { |
22 | return data->match (checklist->request->hier.code); | |
23 | } | |
24 | ||
25 | ACLHierCodeStrategy * | |
26 | ACLHierCodeStrategy::Instance() | |
27 | { | |
28 | return &Instance_; | |
29 | } | |
30 | ||
31 | ACLHierCodeStrategy ACLHierCodeStrategy::Instance_; | |
f53969cc | 32 |