// 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. #ifndef SERVICES_NETWORK_WEBSOCKET_INTERCEPTOR_H_ #define SERVICES_NETWORK_WEBSOCKET_INTERCEPTOR_H_ #include <optional> #include "base/component_export.h" #include "base/functional/callback.h" #include "base/unguessable_token.h" #include "services/network/throttling/scoped_throttling_token.h" #include "services/network/throttling/throttling_network_interceptor.h" namespace network { // WebSocket interceptor is meant to abstract away the details on // network emulation from the WebSockets code. At the same time it adapts the // ThrottlingNetworkInterceptor, which was designed with HTTP in mind, to the // specifics of WebSockets. class COMPONENT_EXPORT(NETWORK_SERVICE) WebSocketInterceptor { … }; } // namespace network #endif // SERVICES_NETWORK_WEBSOCKET_INTERCEPTOR_H_