#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "services/network/websocket_interceptor.h"
#include "base/functional/bind.h"
#include "net/base/net_errors.h"
#include "services/network/throttling/throttling_controller.h"
#include "services/network/throttling/throttling_network_interceptor.h"
namespace network {
WebSocketInterceptor::WebSocketInterceptor(
uint32_t net_log_source_id,
const std::optional<base::UnguessableToken>& throttling_profile_id)
: … { … }
WebSocketInterceptor::~WebSocketInterceptor() { … }
WebSocketInterceptor::InterceptResult WebSocketInterceptor::Intercept(
FrameDirection direction,
size_t size,
base::OnceClosure retry_callback) { … }
void WebSocketInterceptor::ThrottleCallback(FrameDirection direction,
int result,
int64_t bytes) { … }
}