/* * Copyright (C) 1996-2018 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_ACLNOTEDATA_H #define SQUID_ACLNOTEDATA_H #include "acl/Data.h" #include "MemPool.h" #include "SquidString.h" class HttpRequest; class NotePairs; /// \ingroup ACLAPI class ACLNoteData : public ACLData { public: MEMPROXY_CLASS(ACLNoteData); ACLNoteData(); virtual ~ACLNoteData(); virtual bool match(HttpRequest* request); virtual SBufList dump() const; virtual void parse(); virtual bool empty() const; virtual ACLData *clone() const; private: bool matchNotes(NotePairs *note); String name; ///< Note name to check. It is always set ACLData *values; ///< if set, at least one value must match }; MEMPROXY_CLASS_INLINE(ACLNoteData); #endif /* SQUID_ACLNOTEDATA_H */