author Philip Chee <>
Fri, 21 Jun 2013 18:11:51 +0800
changeset 15588 4b022ddb9be42a08059f5342490157c5d9761726
parent 15483 2f747ef4292ebb0eb916f3b7e315e48ab8adce22
child 16162 e4c4ff49ed6613459c7a01ec7843e221c2b0a643
permissions -rw-r--r--
Bug 883203 On OS X, run all plugins OOP by default when in 32-bit mode (i386/x86) f=Stefanh r=IanN a+comm-beta=IanN. a=Callek for checkin to a CLOSED TREE

/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at */
#ifndef _rebuffer_h_
#define _rebuffer_h_

#include "mozilla/StandardInteger.h"
#include "nsStringGlue.h"

// A rebuffering class necessary for stream output buffering

class MimeRebuffer {
    MimeRebuffer (void);
    virtual       ~MimeRebuffer (void);

    uint32_t      GetSize();
    uint32_t      IncreaseBuffer(const nsACString &addBuf);
    uint32_t      ReduceBuffer(uint32_t numBytes);
    nsACString &  GetBuffer();

    nsCString     mBuf;

#endif /* _rebuffer_h_ */