/* * Copyright (C) 1996-2015 The Squid Software Foundation and contributors * * Squid software is distributed under GPLv2+ license and includes * contributions from numerous individuals and organizations. * Please see the COPYING and CONTRIBUTORS files for details. */ #ifndef SQUID_ACLURLPATH_H #define SQUID_ACLURLPATH_H #include "acl/Acl.h" #include "acl/Data.h" #include "acl/Strategised.h" #include "acl/Strategy.h" class ACLUrlPathStrategy : public ACLStrategy { public: virtual int match (ACLData * &, ACLFilledChecklist *, ACLFlags &); virtual bool requiresRequest() const {return true;} static ACLUrlPathStrategy *Instance(); /* Not implemented to prevent copies of the instance. */ /* Not private to prevent brain dead g+++ warnings about * private constructors with no friends */ ACLUrlPathStrategy(ACLUrlPathStrategy const &); private: static ACLUrlPathStrategy Instance_; ACLUrlPathStrategy() {} ACLUrlPathStrategy&operator=(ACLUrlPathStrategy const &); }; class ACLUrlPath { public: static ACL::Prototype RegistryProtoype; static ACL::Prototype LegacyRegistryProtoype; static ACLStrategised RegistryEntry_; }; #endif /* SQUID_ACLURLPATH_H */