]>
Commit | Line | Data |
---|---|---|
4e0938ef | 1 | /* |
4ac4a490 | 2 | * Copyright (C) 1996-2017 The Squid Software Foundation and contributors |
4e0938ef AJ |
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 | ||
f7f3304a | 9 | #include "squid.h" |
40d34a62 | 10 | #include "comm/Connection.h" |
c8f4eac4 | 11 | #include "HttpReply.h" |
602d9612 | 12 | #include "MemObject.h" |
9a0a18de | 13 | #if USE_DELAY_POOLS |
74925dd4 | 14 | #include "DelayPools.h" |
15 | #endif | |
c8f4eac4 | 16 | |
081edc2d AJ |
17 | #define STUB_API "MemObject.cc" |
18 | #include "tests/STUB.h" | |
19 | ||
aa839030 | 20 | RemovalPolicy * mem_policy = NULL; |
21 | ||
7651251d | 22 | int64_t |
7c8931a1 | 23 | MemObject::endOffset() const |
c8f4eac4 | 24 | { |
081edc2d | 25 | // XXX: required by testStore |
c8f4eac4 | 26 | return data_hdr.endOffset(); |
27 | } | |
28 | ||
081edc2d AJ |
29 | void MemObject::trimSwappable() STUB |
30 | void MemObject::trimUnSwappable() STUB | |
31 | int64_t MemObject::policyLowestOffsetToKeep(bool swap) const STUB_RETVAL(-1) | |
cb868059 | 32 | MemObject::MemObject() : |
f53969cc SM |
33 | inmem_lo(0), |
34 | nclients(0), | |
35 | request(NULL), | |
36 | ping_reply_callback(NULL), | |
37 | ircb_data(NULL), | |
38 | id(0), | |
39 | object_sz(-1), | |
40 | swap_hdr_sz(0), | |
f53969cc | 41 | _reply(NULL) |
a0b3b22c AJ |
42 | { |
43 | memset(&clients, 0, sizeof(clients)); | |
44 | memset(&start_ping, 0, sizeof(start_ping)); | |
45 | memset(&abort, 0, sizeof(abort)); | |
46 | } // NOP instead of elided due to Store | |
47 | ||
081edc2d | 48 | HttpReply const * MemObject::getReply() const |
c8f4eac4 | 49 | { |
081edc2d | 50 | // XXX: required by testStore |
c8f4eac4 | 51 | return NULL; |
52 | } | |
d33098f9 AR |
53 | const char *MemObject::storeId() const STUB_RETVAL(NULL) |
54 | const char *MemObject::logUri() const STUB_RETVAL(NULL) | |
cb868059 | 55 | void MemObject::setUris(char const *aStoreId, char const *aLogUri, const HttpRequestMethod &aMethod) STUB |
081edc2d AJ |
56 | void MemObject::reset() STUB |
57 | void MemObject::delayRead(DeferredRead const &aRead) STUB | |
58 | bool MemObject::readAheadPolicyCanRead() const STUB_RETVAL(false) | |
59 | void MemObject::setNoDelay(bool const newValue) STUB | |
60 | MemObject::~MemObject() STUB | |
384a7590 | 61 | int MemObject::mostBytesWanted(int max, bool ignoreDelayPools) const STUB_RETVAL(-1) |
9a0a18de | 62 | #if USE_DELAY_POOLS |
081edc2d | 63 | DelayId MemObject::mostBytesAllowed() const STUB_RETVAL(DelayId()) |
74925dd4 | 64 | #endif |
081edc2d | 65 | void MemObject::unlinkRequest() STUB |
4475555f | 66 | void MemObject::write(const StoreIOBuffer &writeBuffer) STUB |
081edc2d AJ |
67 | void MemObject::replaceHttpReply(HttpReply *newrep) STUB |
68 | int64_t MemObject::lowestMemReaderOffset() const STUB_RETVAL(0) | |
69 | void MemObject::kickReads() STUB | |
70 | int64_t MemObject::objectBytesOnDisk() const STUB_RETVAL(0) | |
71 | bool MemObject::isContiguous() const STUB_RETVAL(false) | |
72 | int64_t MemObject::expectedReplySize() const STUB_RETVAL(0) | |
081edc2d AJ |
73 | void MemObject::markEndOfReplyHeaders() STUB |
74 | size_t MemObject::inUseCount() STUB_RETVAL(0) | |
5b55f1f1 | 75 | int64_t MemObject::availableForSwapOut() const STUB_RETVAL(0) |
f53969cc | 76 |