]> git.ipfire.org Git - thirdparty/squid.git/blame - src/acl/SourceAsn.h
SourceFormat Enforcement
[thirdparty/squid.git] / src / acl / SourceAsn.h
CommitLineData
5dee515e 1/*
4ac4a490 2 * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
5dee515e 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.
5dee515e 7 */
bbc27441 8
e412456e
AJ
9#ifndef SQUID_ACL_SOURCEASN_H
10#define SQUID_ACL_SOURCEASN_H
e1f7507e 11
127dce76 12#include "acl/Strategy.h"
96d89ea0 13#include "ip/Address.h"
5dee515e 14
e412456e
AJ
15class ACLChecklist;
16
b7ac5457 17class ACLSourceASNStrategy : public ACLStrategy<Ip::Address>
62e76326 18{
19
20public:
33810b1d 21 virtual int match (ACLData<MatchType> * &, ACLFilledChecklist *, ACLFlags &);
b0dd28ba 22 static ACLSourceASNStrategy *Instance();
23 /* Not implemented to prevent copies of the instance. */
24 /* Not private to prevent brain dead g+++ warnings about
25 * private constructors with no friends */
26 ACLSourceASNStrategy(ACLSourceASNStrategy const &);
62e76326 27
b0dd28ba 28private:
29 static ACLSourceASNStrategy Instance_;
26ac0430 30 ACLSourceASNStrategy() {}
62e76326 31
b0dd28ba 32 ACLSourceASNStrategy&operator=(ACLSourceASNStrategy const &);
33};
5dee515e 34
e412456e 35#endif /* SQUID_ACL_SOURCEASN_H */
f53969cc 36