/* * Copyright (C) 1996-2015 The Squid Software Foundation and contributors * * Squid software is distributed under GPLv2+ license and includes * contributions from numerous individuals and organizations. * Please see the COPYING and CONTRIBUTORS files for details. */ #ifndef SQUID_IOREQUESTOR_H #define SQUID_IOREQUESTOR_H #include "base/RefCount.h" class ReadRequest; class WriteRequest; class IORequestor : public RefCountable { public: typedef RefCount Pointer; virtual void ioCompletedNotification() = 0; virtual void closeCompleted() = 0; virtual void readCompleted(const char *buf, int len, int errflag, RefCount) = 0; virtual void writeCompleted(int errflag, size_t len, RefCount) = 0; }; #endif /* SQUID_IOREQUESTOR_H */