blob: 6a8f4b06a85de12b6874126cad71c1440b446f1d [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
module network.mojom;
import "services/network/public/mojom/p2p.mojom";
// Trusted interfaces for socket-related communication between the browser and
// network process
// From the network process to the browser process.
interface P2PTrustedSocketManagerClient {
// Called when the P2PSocketManager client requests socket creation with a
// port that's in an invalid range.
InvalidSocketPortRangeRequested();
// Called when packet dumping is enabled.
DumpPacket(array<uint8> packet_header,
uint64 packet_length,
bool incoming);
};
// From the browser process to the network process.
interface P2PTrustedSocketManager {
// Start or stop dumping of packet headers.
StartRtpDump(bool incoming, bool outgoing);
StopRtpDump(bool incoming, bool outgoing);
};