Bug 1857841 - pt 3. Add a new page kind named "fresh" r=glandium
[gecko.git] / dom / ipc / PJSValidator.ipdl
blob7d369c5a21d613497ee6e7720fecc36118069a56
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";
10 namespace mozilla {
11 namespace dom {
13 async protocol PJSValidator {
14   manager PJSOracle;
16 child:
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);
28   async __delete__();
31 }  // namespace dom
32 }  // namespace mozilla