#include "net/websockets/websocket_deflate_parameters.h"
#include <vector>
#include "base/strings/string_number_conversions.h"
namespace net {
namespace {
const WebSocketDeflater::ContextTakeOverMode kTakeOverContext = …;
const WebSocketDeflater::ContextTakeOverMode kDoNotTakeOverContext = …;
constexpr char kServerNoContextTakeOver[] = …;
constexpr char kClientNoContextTakeOver[] = …;
constexpr char kServerMaxWindowBits[] = …;
constexpr char kClientMaxWindowBits[] = …;
constexpr char kExtensionName[] = …;
bool GetWindowBits(const std::string& value, int* window_bits) { … }
bool DuplicateError(const std::string& name, std::string* failure_message) { … }
bool InvalidError(const std::string& name, std::string* failure_message) { … }
}
WebSocketExtension WebSocketDeflateParameters::AsExtension() const { … }
bool WebSocketDeflateParameters::IsValidAsRequest(std::string*) const { … }
bool WebSocketDeflateParameters::IsValidAsResponse(
std::string* failure_message) const { … }
bool WebSocketDeflateParameters::Initialize(const WebSocketExtension& extension,
std::string* failure_message) { … }
bool WebSocketDeflateParameters::IsCompatibleWith(
const WebSocketDeflateParameters& response) const { … }
}