#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "net/websockets/websocket_deflater.h"
#include <string.h>
#include <algorithm>
#include <vector>
#include "base/check.h"
#include "base/check_op.h"
#include "base/containers/circular_deque.h"
#include "net/base/io_buffer.h"
#include "third_party/zlib/zlib.h"
namespace net {
WebSocketDeflater::WebSocketDeflater(ContextTakeOverMode mode) : … { … }
WebSocketDeflater::~WebSocketDeflater() { … }
bool WebSocketDeflater::Initialize(int window_bits) { … }
bool WebSocketDeflater::AddBytes(const char* data, size_t size) { … }
bool WebSocketDeflater::Finish() { … }
void WebSocketDeflater::PushSyncMark() { … }
scoped_refptr<IOBufferWithSize> WebSocketDeflater::GetOutput(size_t size) { … }
void WebSocketDeflater::ResetContext() { … }
int WebSocketDeflater::Deflate(int flush) { … }
}