Bug 891986 - Keep the source ArrayBuffer to a decodeAudioData call alive until the...
[gecko.git] / dom / base / nsDOMWindowList.h
blob711b02e07c9cbf3494fc055cccd580978a79bcbe
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/. */
5 #ifndef nsDOMWindowList_h___
6 #define nsDOMWindowList_h___
8 #include "nsCOMPtr.h"
9 #include "nsISupports.h"
10 #include "nsIDOMWindowCollection.h"
11 #include "nsString.h"
12 #include "mozilla/StandardInteger.h"
14 class nsIDocShellTreeNode;
15 class nsIDocShell;
16 class nsIDOMWindow;
18 class nsDOMWindowList : public nsIDOMWindowCollection
20 public:
21 nsDOMWindowList(nsIDocShell *aDocShell);
22 virtual ~nsDOMWindowList();
24 NS_DECL_ISUPPORTS
25 NS_DECL_NSIDOMWINDOWCOLLECTION
27 uint32_t GetLength();
28 already_AddRefed<nsIDOMWindow> IndexedGetter(uint32_t aIndex, bool& aFound);
30 //local methods
31 NS_IMETHOD SetDocShell(nsIDocShell* aDocShell);
33 protected:
34 // Note: this function may flush and cause mDocShellNode to become null.
35 void EnsureFresh();
37 nsIDocShellTreeNode* mDocShellNode; //Weak Reference
40 #endif // nsDOMWindowList_h___