Controlled.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2017 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_STORE_CONTROLLED_H
10 #define SQUID_STORE_CONTROLLED_H
11 
12 #include "store/Storage.h"
13 
14 namespace Store {
15 
18 class Controlled: public Storage
19 {
20 public:
22  virtual void reference(StoreEntry &e) = 0;
23 
26  virtual bool dereference(StoreEntry &e) = 0;
27 
29  virtual void updateHeaders(StoreEntry *) {}
30 
34  virtual bool anchorCollapsed(StoreEntry &, bool &/*inSync*/) { return false; }
35 
39  virtual bool updateCollapsed(StoreEntry &) { return false; }
40 };
41 
42 } // namespace Store
43 
44 #endif /* SQUID_STORE_CONTROLLED_H */
45 
virtual void updateHeaders(StoreEntry *)
make stored metadata and HTTP headers the same as in the given entry
Definition: Controlled.h:29
virtual void reference(StoreEntry &e)=0
somebody needs this entry (many cache replacement policies need to know)
virtual bool updateCollapsed(StoreEntry &)
Definition: Controlled.h:39
virtual bool dereference(StoreEntry &e)=0
virtual bool anchorCollapsed(StoreEntry &, bool &)
Definition: Controlled.h:34

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors