|
Squid Web Cache v8/master
|
Public Member Functions | |
| MimeIcon (const char *aName) | |
| ~MimeIcon () override | |
| void | setName (char const *) |
| SBuf | getName () const |
| void | load () |
| LogTags * | loggingTags () const override |
| void | fillChecklist (ACLFilledChecklist &) const override |
| configure the given checklist (to reflect the current transaction state) | |
Protected Member Functions | |
| bool | startCollapsingOn (const StoreEntry &, const bool doingRevalidation) const |
| bool | mayInitiateCollapsing () const |
| whether Squid configuration allows us to become a CF initiator | |
| bool | onCollapsingPath () const |
| whether Squid configuration allows collapsing for this transaction | |
Protected Attributes | |
| bool | didCollapse = false |
| whether startCollapsingOn() was called and returned true | |
Private Member Functions | |
| MEMPROXY_CLASS (MimeIcon) | |
Private Attributes | |
| SBuf | icon_ |
| char * | url_ |
|
explicit |
|
override |
|
overridevirtual |
| SBuf MimeIcon::getName | ( | ) | const |
| void MimeIcon::load | ( | ) |
Definition at line 356 of file mime.cc.
References StoreEntry::append(), assert, StoreEntry::buffer(), SBuf::c_str(), Http::Message::cache_control, StoreEntry::complete(), Config, DBG_CRITICAL, debugs, SquidConfig::directory, EBIT_SET, ENTRY_SPECIAL, fatal(), fatalf(), FD_READ_METHOD(), file_close(), file_open(), StoreEntry::flags, StoreEntry::flush(), HttpRequest::FromUrlXXX(), RefCount< C >::getRaw(), Http::Message::header, icon_, SquidConfig::icons, StoreEntry::lock(), HttpHdrCc::maxAge(), MAXPATHLEN, StoreEntry::mem_obj, Http::METHOD_GET, mimeGetContentType(), O_BINARY, HttpHeader::putCc(), StoreEntry::replaceHttpReply(), MemObject::request, Http::scNoContent, Http::scOkay, HttpReply::setHeaders(), StoreEntry::setPublicKey(), SQUIDSBUFPH, SQUIDSBUFPRINT, storeCreatePureEntry(), storeGetPublic(), StoreEntry::timestampsSet(), url_, and xstrerr().
Referenced by mimeInit().
|
inlineoverridevirtual |
Implements StoreClient.
|
inlineprotectedinherited |
Definition at line 59 of file StoreClient.h.
References StoreClient::onCollapsingPath().
Referenced by clientReplyContext::createStoreEntry(), and clientReplyContext::processExpired().
|
private |
|
protectedinherited |
Definition at line 52 of file store_client.cc.
References SquidConfig::accessList, Acl::Answer::allowed(), SquidConfig::collapsed_forwarding, SquidConfig::collapsedForwardingAccess, Config, ACLChecklist::fastCheck(), Acl::ChecklistFiller::fillChecklist(), and SquidConfig::onoff.
Referenced by StoreClient::mayInitiateCollapsing(), and StoreClient::startCollapsingOn().
| void MimeIcon::setName | ( | char const * | aString | ) |
Definition at line 137 of file mime.cc.
References icon_, internalLocalUri(), url_, xfree, and xstrdup.
Referenced by MimeIcon().
|
protectedinherited |
Definition at line 66 of file store_client.cc.
References debugs, StoreClient::didCollapse, StoreEntry::hittingRequiresCollapsing(), StoreClient::loggingTags(), and StoreClient::onCollapsingPath().
Referenced by htcpSpecifier::checkHit(), ICPState::confirmAndPrepHit(), clientReplyContext::identifyFoundObject(), clientReplyContext::processExpired(), and UrnState::start().
|
mutableprotectedinherited |
Definition at line 64 of file StoreClient.h.
Referenced by clientReplyContext::cacheHit(), htcpSpecifier::checkHit(), ICPState::confirmAndPrepHit(), and StoreClient::startCollapsingOn().
|
private |
|
private |
Definition at line 59 of file mime.cc.
Referenced by ~MimeIcon(), load(), and setName().