]> git.ipfire.org Git - thirdparty/squid.git/blob - src/acl/Note.cc
Boilerplate: update copyright blurbs on src/
[thirdparty/squid.git] / src / acl / Note.cc
1 /*
2 * Copyright (C) 1996-2014 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/HttpHeaderData.h"
12 #include "acl/Note.h"
13 #include "HttpRequest.h"
14 #include "Notes.h"
15
16 int
17 ACLNoteStrategy::match (ACLData<MatchType> * &data, ACLFilledChecklist *checklist, ACLFlags &)
18 {
19 if (checklist->request != NULL)
20 return data->match(checklist->request);
21
22 return 0;
23 }
24
25 ACLNoteStrategy *
26 ACLNoteStrategy::Instance()
27 {
28 return &Instance_;
29 }
30
31 ACLNoteStrategy ACLNoteStrategy::Instance_;
32