]> git.ipfire.org Git - thirdparty/squid.git/blame - src/acl/Tag.cc
SourceFormat Enforcement
[thirdparty/squid.git] / src / acl / Tag.cc
CommitLineData
0ab50441 1/*
4ac4a490 2 * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
0ab50441 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.
0ab50441
HN
7 */
8
582c2af2 9#include "squid.h"
2071bb4a 10#include "acl/Checklist.h"
602d9612
A
11#include "acl/StringData.h"
12#include "acl/Tag.h"
0ab50441
HN
13#include "HttpRequest.h"
14
0ab50441 15int
33810b1d 16ACLTagStrategy::match (ACLData<MatchType> * &data, ACLFilledChecklist *checklist, ACLFlags &)
0ab50441 17{
d25b5132 18 if (checklist->request != NULL)
04f7fd38 19 return data->match (checklist->request->tag.termedBuf());
0ab50441
HN
20 return 0;
21}
22
23ACLTagStrategy *
24ACLTagStrategy::Instance()
25{
26 return &Instance_;
27}
28
29ACLTagStrategy ACLTagStrategy::Instance_;
f53969cc 30