Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ |
michael@0 | 2 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 4 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 5 | |
michael@0 | 6 | #include "nsISupports.idl" |
michael@0 | 7 | |
michael@0 | 8 | interface nsILoadGroup; |
michael@0 | 9 | |
michael@0 | 10 | /** |
michael@0 | 11 | * nsILoadGroupChild provides a hierarchy of load groups so that the |
michael@0 | 12 | * root load group can be used to conceptually tie a series of loading |
michael@0 | 13 | * operations into a logical whole while still leaving them separate |
michael@0 | 14 | * for the purposes of cancellation and status events. |
michael@0 | 15 | */ |
michael@0 | 16 | |
michael@0 | 17 | [scriptable, uuid(02efe8e2-fbbc-4718-a299-b8a09c60bf6b)] |
michael@0 | 18 | interface nsILoadGroupChild : nsISupports |
michael@0 | 19 | { |
michael@0 | 20 | /** |
michael@0 | 21 | * The parent of this load group. It is stored with |
michael@0 | 22 | * a nsIWeakReference/nsWeakPtr so there is no requirement for the |
michael@0 | 23 | * parentLoadGroup to out live the child, nor will the child keep a |
michael@0 | 24 | * reference count on the parent. |
michael@0 | 25 | */ |
michael@0 | 26 | attribute nsILoadGroup parentLoadGroup; |
michael@0 | 27 | |
michael@0 | 28 | /** |
michael@0 | 29 | * The nsILoadGroup associated with this nsILoadGroupChild |
michael@0 | 30 | */ |
michael@0 | 31 | readonly attribute nsILoadGroup childLoadGroup; |
michael@0 | 32 | |
michael@0 | 33 | /** |
michael@0 | 34 | * The rootLoadGroup is the recursive parent of this |
michael@0 | 35 | * load group where parent is defined as parentlLoadGroup if set |
michael@0 | 36 | * or childLoadGroup.loadGroup as a backup. (i.e. parentLoadGroup takes |
michael@0 | 37 | * precedence.) The nsILoadGroup child is the root if neither parent |
michael@0 | 38 | * nor loadgroup attribute is specified. |
michael@0 | 39 | */ |
michael@0 | 40 | readonly attribute nsILoadGroup rootLoadGroup; |
michael@0 | 41 | }; |
michael@0 | 42 |