PWebBrowserPersistResources.ipdl (1177B)
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/. */ 5 6 include protocol PWebBrowserPersistDocument; 7 8 using mozilla::dom::MaybeDiscardedBrowsingContext from "mozilla/dom/BrowsingContext.h"; 9 using nsContentPolicyType from "nsIContentPolicy.h"; 10 11 namespace mozilla { 12 13 // == nsIWebBrowserPersistResourceVisitor 14 [ManualDealloc, ChildImpl=virtual, ParentImpl=virtual] 15 protocol PWebBrowserPersistResources { 16 manager PWebBrowserPersistDocument; 17 18 parent: 19 async VisitResource(nsCString aURI, nsContentPolicyType aContentPolicyType); 20 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); 25 26 async VisitBrowsingContext(MaybeDiscardedBrowsingContext aContext); 27 28 // This reflects the endVisit method. 29 async __delete__(nsresult aStatus); 30 }; 31 32 } // namespace mozilla