Bug 1892041 - Part 1: Update test262 features. r=spidermonkey-reviewers,dminor
[gecko.git] / dom / webbrowserpersist / PWebBrowserPersistResources.ipdl
blob87b880c296e771e3482c77a7807ee5d4d90b1aa1
1 /* -*- Mode: IDL; tab-width: 8; 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 PWebBrowserPersistDocument;
8 using mozilla::dom::MaybeDiscardedBrowsingContext from "mozilla/dom/BrowsingContext.h";
9 using nsContentPolicyType from "nsIContentPolicy.h";
11 namespace mozilla {
13 // == nsIWebBrowserPersistResourceVisitor
14 [ManualDealloc, ChildImpl=virtual, ParentImpl=virtual]
15 protocol PWebBrowserPersistResources {
16   manager PWebBrowserPersistDocument;
18 parent:
19   async VisitResource(nsCString aURI, nsContentPolicyType aContentPolicyType);
21   // The actor sent here is in the START state; the parent-side
22   // receiver will have to wait for it to enter the MAIN state
23   // before exposing it with a visitDocument call.
24   async VisitDocument(PWebBrowserPersistDocument aSubDocument);
26   async VisitBrowsingContext(MaybeDiscardedBrowsingContext aContext);
28   // This reflects the endVisit method.
29   async __delete__(nsresult aStatus);
32 } // namespace mozilla