

Public Member Functions | |
void * | operator new (size_t byteCount) |
void | operator delete (void *address) |
MimeIcon (const char *aName) | |
~MimeIcon () | |
void | setName (char const *) |
SBuf | getName () const |
void | load () |
virtual LogTags * | loggingTags () const |
virtual void | fillChecklist (ACLFilledChecklist &) const |
configure the ACL checklist with the current transaction state More... | |
Static Public Member Functions | |
static int | UseCount () |
Protected Member Functions | |
bool | startCollapsingOn (const StoreEntry &, const bool doingRevalidation) const |
bool | mayInitiateCollapsing () const |
whether Squid configuration allows us to become a CF initiator More... | |
bool | onCollapsingPath () const |
whether Squid configuration allows collapsing for this transaction More... | |
Static Private Member Functions | |
static Mem::AllocatorProxy & | Pool () |
Private Attributes | |
SBuf | icon_ |
char * | url_ |
Detailed Description
Constructor & Destructor Documentation
◆ MimeIcon()
|
explicit |
◆ ~MimeIcon()
Member Function Documentation
◆ fillChecklist()
|
virtual |
◆ getName()
SBuf MimeIcon::getName | ( | ) | const |
◆ load()
void MimeIcon::load | ( | ) |
Definition at line 351 of file mime.cc.
References StoreEntry::append(), assert, buf, 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, XactionInitiator::initIcon, StoreEntry::lock(), HttpHdrCc::maxAge(), MAXPATHLEN, StoreEntry::mem_obj, Http::METHOD_GET, mimeGetContentType(), NULL, O_BINARY, HttpHeader::putCc(), StoreEntry::replaceHttpReply(), MemObject::request, sb, Http::scNoContent, Http::scOkay, HttpReply::setHeaders(), StoreEntry::setPublicKey(), SQUIDSBUFPH, SQUIDSBUFPRINT, storeCreatePureEntry(), storeGetPublic(), StoreEntry::timestampsSet(), type, url_, and xstrerr().
Referenced by mimeInit().
◆ loggingTags()
|
inlinevirtual |
- Returns
- LogTags (if the class logs transactions) or nil (otherwise)
Implements StoreClient.
◆ mayInitiateCollapsing()
|
inlineprotectedinherited |
Definition at line 46 of file StoreClient.h.
References StoreClient::onCollapsingPath().
Referenced by clientReplyContext::createStoreEntry(), and clientReplyContext::processExpired().
◆ onCollapsingPath()
|
protectedinherited |
Definition at line 52 of file store_client.cc.
References SquidConfig::accessList, Acl::Answer::allowed(), SquidConfig::collapsed_forwarding, SquidConfig::collapsedForwardingAccess, Config, ACLChecklist::fastCheck(), StoreClient::fillChecklist(), and SquidConfig::onoff.
Referenced by StoreClient::mayInitiateCollapsing(), and StoreClient::startCollapsingOn().
◆ operator delete()
◆ operator new()
◆ Pool()
|
inlinestaticprivate |
◆ setName()
void MimeIcon::setName | ( | char const * | aString | ) |
Definition at line 132 of file mime.cc.
References icon_, internalLocalUri(), url_, xfree, and xstrdup.
Referenced by MimeIcon().
◆ startCollapsingOn()
|
protectedinherited |
- Returns
- whether the caller must collapse on the given entry Before returning true, updates common collapsing-related stats. See also: StoreEntry::hittingRequiresCollapsing().
Definition at line 66 of file store_client.cc.
References debugs, StoreEntry::hittingRequiresCollapsing(), StoreClient::loggingTags(), and StoreClient::onCollapsingPath().
Referenced by htcpSpecifier::checkHit(), ICPState::confirmAndPrepHit(), clientReplyContext::identifyFoundObject(), clientReplyContext::processExpired(), and UrnState::start().
◆ UseCount()
Member Data Documentation
◆ icon_
|
private |
◆ url_
|
private |
Definition at line 53 of file mime.cc.
Referenced by ~MimeIcon(), load(), and setName().
The documentation for this class was generated from the following file:
- src/mime.cc