chromium/services/network/websocket_interceptor.cc

// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/351564777): Remove this and convert code to safer constructs.
#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) {}

}  // namespace network