/*
 * Copyright (C) 1996-2014 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_WRITEREQUEST_H
#define SQUID_WRITEREQUEST_H

#include "base/RefCount.h"
#include "cbdata.h"

class WriteRequest : public RefCountable
{

public:
    typedef RefCount<WriteRequest> Pointer;
    WriteRequest(char const *buf, off_t offset, size_t len, FREE *);
    virtual ~WriteRequest() {}

    char const *buf;
    off_t offset;
    size_t len;
    FREE *free_func;

private:
    CBDATA_CLASS2(WriteRequest);
};

#endif /* SQUID_WRITEREQUEST_H */
