#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "net/websockets/websocket_extension_parser.h"
#include <string_view>
#include "base/check_op.h"
#include "net/http/http_util.h"
namespace net {
WebSocketExtensionParser::WebSocketExtensionParser() = default;
WebSocketExtensionParser::~WebSocketExtensionParser() = default;
bool WebSocketExtensionParser::Parse(const char* data, size_t size) { … }
bool WebSocketExtensionParser::Consume(char c) { … }
bool WebSocketExtensionParser::ConsumeExtension(WebSocketExtension* extension) { … }
bool WebSocketExtensionParser::ConsumeExtensionParameter(
WebSocketExtension::Parameter* parameter) { … }
bool WebSocketExtensionParser::ConsumeToken(std::string_view* token) { … }
bool WebSocketExtensionParser::ConsumeQuotedToken(std::string* token) { … }
void WebSocketExtensionParser::ConsumeSpaces() { … }
bool WebSocketExtensionParser::Lookahead(char c) { … }
bool WebSocketExtensionParser::ConsumeIfMatch(char c) { … }
}