PJSValidator.ipdl (1029B)
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 2 /* This Source Code Form is subject to the terms of the Mozilla Public 3 * License, v. 2.0. If a copy of the MPL was not distributed with this 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 5 6 include protocol PJSOracle; 7 8 using mozilla::net::OpaqueResponseBlocker::ValidatorResult from "mozilla/net/OpaqueResponseUtils.h"; 9 10 namespace mozilla { 11 namespace dom { 12 13 async protocol PJSValidator { 14 manager PJSOracle; 15 16 child: 17 [ReplyPriority=control] 18 async IsOpaqueResponseAllowed() returns (Shmem? aMem, ValidatorResult aResult); 19 20 async OnDataAvailable(Shmem aData); 21 22 // aContentCharset, aHintCharset and aDocumentCharset 23 // are needed to determine the decoder for the received data 24 async OnStopRequest(nsresult aReason, nsCString aContentCharset, 25 nsString aHintCharset, 26 nsString aDocumentCharset); 27 28 async __delete__(); 29 }; 30 31 } // namespace dom 32 } // namespace mozilla