~yadi/squid/connection-manager

« back to all changes in this revision

Viewing changes to src/acl/Acl.h

  • Committer: Amos Jeffries
  • Date: 2014-01-19 05:45:51 UTC
  • mfrom: (13045.1.209 trunk)
  • Revision ID: squid3@treenet.co.nz-20140119054551-3u1so2dy5vda7kfw
MergeĀ fromĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
101
101
    void *operator new(size_t);
102
102
    void operator delete(void *);
103
103
 
104
 
    static ACL *Factory (char const *);
 
104
    static ACL *Factory(char const *);
105
105
    static void ParseAclLine(ConfigParser &parser, ACL ** head);
106
106
    static void Initialize();
107
 
    static ACL* FindByName(const char *name);
 
107
    static ACL *FindByName(const char *name);
108
108
 
109
109
    ACL();
110
110
    explicit ACL(const ACLFlag flgs[]) : cfgline(NULL), next(NULL), flags(flgs) { memset(name, '\0', sizeof(name)); }
119
119
    /// Updates the checklist state on match, async, and failure.
120
120
    bool matches(ACLChecklist *checklist) const;
121
121
 
122
 
    virtual ACL *clone()const = 0;
 
122
    virtual ACL *clone() const = 0;
123
123
 
124
124
    /// parses node represenation in squid.conf; dies on failures
125
125
    virtual void parse() = 0;
126
126
    virtual char const *typeString() const = 0;
127
127
    virtual bool isProxyAuth() const;
128
128
    virtual wordlist *dump() const = 0;
129
 
    virtual bool empty () const = 0;
130
 
    virtual bool valid () const;
 
129
    virtual bool empty() const = 0;
 
130
    virtual bool valid() const;
131
131
 
132
132
    int cacheMatchAcl(dlink_list * cache, ACLChecklist *);
133
133
    virtual int matchForCache(ACLChecklist *checklist);
138
138
    char *cfgline;
139
139
    ACL *next; // XXX: remove or at least use refcounting
140
140
    ACLFlags flags; ///< The list of given ACL flags
141
 
    bool registered; ///< added to Config.aclList and can be reused via by FindByName()
 
141
    bool registered; ///< added to the global list of ACLs via aclRegister()
142
142
 
143
143
public:
144
144
 
146
146
    {
147
147
 
148
148
    public:
149
 
        Prototype ();
150
 
        Prototype (ACL const *, char const *);
 
149
        Prototype();
 
150
        Prototype(ACL const *, char const *);
151
151
        ~Prototype();
152
152
        static bool Registered(char const *);
153
 
        static ACL *Factory (char const *);
 
153
        static ACL *Factory(char const *);
154
154
 
155
155
    private:
156
 
        ACL const*prototype;
 
156
        ACL const *prototype;
157
157
        char const *typeString;
158
158
 
159
159
    private: