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/. */
6 include protocol PJSOracle;
8 using mozilla::net::OpaqueResponseBlocker::ValidatorResult from "mozilla/net/OpaqueResponseUtils.h";
13 async protocol PJSValidator {
17 [ReplyPriority=control]
18 async IsOpaqueResponseAllowed() returns (Shmem? aMem, ValidatorResult aResult);
20 async OnDataAvailable(Shmem aData);
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);
32 } // namespace mozilla