]>
Commit | Line | Data |
---|---|---|
f7f3304a | 1 | #include "squid.h" |
40d34a62 | 2 | #include "comm/Connection.h" |
c8f4eac4 | 3 | #include "MemObject.h" |
4 | #include "HttpReply.h" | |
9a0a18de | 5 | #if USE_DELAY_POOLS |
74925dd4 | 6 | #include "DelayPools.h" |
7 | #endif | |
c8f4eac4 | 8 | |
081edc2d AJ |
9 | #define STUB_API "MemObject.cc" |
10 | #include "tests/STUB.h" | |
11 | ||
aa839030 | 12 | RemovalPolicy * mem_policy = NULL; |
13 | ||
7651251d | 14 | int64_t |
7c8931a1 | 15 | MemObject::endOffset() const |
c8f4eac4 | 16 | { |
081edc2d | 17 | // XXX: required by testStore |
c8f4eac4 | 18 | return data_hdr.endOffset(); |
19 | } | |
20 | ||
081edc2d AJ |
21 | void MemObject::trimSwappable() STUB |
22 | void MemObject::trimUnSwappable() STUB | |
23 | int64_t MemObject::policyLowestOffsetToKeep(bool swap) const STUB_RETVAL(-1) | |
a0b3b22c AJ |
24 | MemObject::MemObject(char const *, char const *) : |
25 | url(NULL), | |
26 | inmem_lo(0), | |
27 | nclients(0), | |
28 | request(NULL), | |
29 | ping_reply_callback(NULL), | |
30 | ircb_data(NULL), | |
31 | log_url(NULL), | |
32 | id(0), | |
33 | object_sz(-1), | |
34 | swap_hdr_sz(0), | |
35 | vary_headers(NULL), | |
36 | _reply(NULL) | |
37 | { | |
38 | memset(&clients, 0, sizeof(clients)); | |
39 | memset(&start_ping, 0, sizeof(start_ping)); | |
40 | memset(&abort, 0, sizeof(abort)); | |
41 | } // NOP instead of elided due to Store | |
42 | ||
081edc2d | 43 | HttpReply const * MemObject::getReply() const |
c8f4eac4 | 44 | { |
081edc2d | 45 | // XXX: required by testStore |
c8f4eac4 | 46 | return NULL; |
47 | } | |
081edc2d AJ |
48 | void MemObject::reset() STUB |
49 | void MemObject::delayRead(DeferredRead const &aRead) STUB | |
50 | bool MemObject::readAheadPolicyCanRead() const STUB_RETVAL(false) | |
51 | void MemObject::setNoDelay(bool const newValue) STUB | |
52 | MemObject::~MemObject() STUB | |
384a7590 | 53 | int MemObject::mostBytesWanted(int max, bool ignoreDelayPools) const STUB_RETVAL(-1) |
9a0a18de | 54 | #if USE_DELAY_POOLS |
081edc2d | 55 | DelayId MemObject::mostBytesAllowed() const STUB_RETVAL(DelayId()) |
74925dd4 | 56 | #endif |
081edc2d AJ |
57 | void MemObject::unlinkRequest() STUB |
58 | void MemObject::write(StoreIOBuffer writeBuffer, STMCB *callback, void *callbackData) STUB | |
59 | void MemObject::replaceHttpReply(HttpReply *newrep) STUB | |
60 | int64_t MemObject::lowestMemReaderOffset() const STUB_RETVAL(0) | |
61 | void MemObject::kickReads() STUB | |
62 | int64_t MemObject::objectBytesOnDisk() const STUB_RETVAL(0) | |
63 | bool MemObject::isContiguous() const STUB_RETVAL(false) | |
64 | int64_t MemObject::expectedReplySize() const STUB_RETVAL(0) | |
65 | void MemObject::resetUrls(char const*, char const*) STUB | |
66 | void MemObject::markEndOfReplyHeaders() STUB | |
67 | size_t MemObject::inUseCount() STUB_RETVAL(0) | |
5b55f1f1 | 68 | int64_t MemObject::availableForSwapOut() const STUB_RETVAL(0) |