PWebSocketConnection.ipdl (953B)
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 2 /* vim: set sw=2 ts=8 et tw=80 ft=cpp : */ 3 /* This Source Code Form is subject to the terms of the Mozilla Public 4 * License, v. 2.0. If a copy of the MPL was not distributed with this 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 6 7 include "mozilla/ipc/TransportSecurityInfoUtils.h"; 8 9 [RefCounted] using class nsITransportSecurityInfo from "nsITransportSecurityInfo.h"; 10 11 namespace mozilla { 12 namespace net { 13 14 [ChildProc=Socket] 15 protocol PWebSocketConnection 16 { 17 parent: 18 async OnTransportAvailable(nullable nsITransportSecurityInfo aSecurityInfo); 19 async OnError(nsresult aStatus); 20 async OnTCPClosed(); 21 async OnDataReceived(uint8_t[] aData); 22 async OnUpgradeFailed(nsresult aReason); 23 24 child: 25 async WriteOutputData(uint8_t[] aData); 26 async StartReading(); 27 async DrainSocketData(); 28 29 async __delete__(); 30 }; 31 32 } //namespace net 33 } //namespace mozilla