BodyPipe is ref-counted. Such classes should not be using CBDATA_CLASS
for smart pointer referencing and memory management. They use RefCount
for smart pointer referencing, MEMPROXY_CLASS for memory management.
#include "base/TextException.h"
#include "BodyPipe.h"
#include "base/TextException.h"
#include "BodyPipe.h"
-CBDATA_CLASS_INIT(BodyPipe);
-
// BodySink is a BodyConsumer class which just consume and drops
// data from a BodyPipe
class BodySink: public BodyConsumer
// BodySink is a BodyConsumer class which just consume and drops
// data from a BodyPipe
class BodySink: public BodyConsumer
*/
class BodyPipe: public RefCountable
{
*/
class BodyPipe: public RefCountable
{
- CBDATA_CLASS(BodyPipe);
+ MEMPROXY_CLASS(BodyPipe);
public:
typedef RefCount<BodyPipe> Pointer;
public:
typedef RefCount<BodyPipe> Pointer;