source: squid-ssl/trunk/fuentes/src/acl/UrlLogin.h @ 5495

Last change on this file since 5495 was 5495, checked in by Juanma, 2 years ago

Initial release

File size: 1.2 KB
Line 
1/*
2 * Copyright (C) 1996-2015 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#ifndef SQUID_ACLURLLOGIN_H
10#define SQUID_ACLURLLOGIN_H
11
12#include "acl/Acl.h"
13#include "acl/Data.h"
14#include "acl/Strategised.h"
15#include "acl/Strategy.h"
16
17class ACLUrlLoginStrategy : public ACLStrategy<char const *>
18{
19
20public:
21    virtual int match (ACLData<char const *> * &, ACLFilledChecklist *, ACLFlags &);
22    virtual bool requiresRequest() const {return true;}
23
24    static ACLUrlLoginStrategy *Instance();
25    /* Not implemented to prevent copies of the instance. */
26    /* Not private to prevent brain dead g+++ warnings about
27     * private constructors with no friends */
28    ACLUrlLoginStrategy(ACLUrlLoginStrategy const &);
29
30private:
31    static ACLUrlLoginStrategy Instance_;
32    ACLUrlLoginStrategy() {}
33
34    ACLUrlLoginStrategy&operator=(ACLUrlLoginStrategy const &);
35};
36
37class ACLUrlLogin
38{
39
40public:
41    static ACL::Prototype RegistryProtoype;
42    static ACL::Prototype LegacyRegistryProtoype;
43    static ACLStrategised<char const *> RegistryEntry_;
44};
45
46#endif /* SQUID_ACLURLLOGIN_H */
47
Note: See TracBrowser for help on using the repository browser.