Tue, 06 Jan 2015 21:39:09 +0100
Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.
michael@0 | 1 | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
michael@0 | 2 | /* vim:expandtab:shiftwidth=2:tabstop=2: |
michael@0 | 3 | */ |
michael@0 | 4 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 5 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 6 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 7 | |
michael@0 | 8 | #ifndef mozilla_a11y_HTMLTableAccessibleWrap_h__ |
michael@0 | 9 | #define mozilla_a11y_HTMLTableAccessibleWrap_h__ |
michael@0 | 10 | |
michael@0 | 11 | #include "HTMLTableAccessible.h" |
michael@0 | 12 | |
michael@0 | 13 | #include "ia2AccessibleTable.h" |
michael@0 | 14 | #include "ia2AccessibleTableCell.h" |
michael@0 | 15 | |
michael@0 | 16 | namespace mozilla { |
michael@0 | 17 | namespace a11y { |
michael@0 | 18 | |
michael@0 | 19 | /** |
michael@0 | 20 | * IA2 wrapper class for HTMLTableAccessible implementing IAccessibleTable |
michael@0 | 21 | * and IAccessibleTable2 interfaces. |
michael@0 | 22 | */ |
michael@0 | 23 | class HTMLTableAccessibleWrap : public HTMLTableAccessible, |
michael@0 | 24 | public ia2AccessibleTable |
michael@0 | 25 | { |
michael@0 | 26 | public: |
michael@0 | 27 | HTMLTableAccessibleWrap(nsIContent* aContent, DocAccessible* aDoc) : |
michael@0 | 28 | HTMLTableAccessible(aContent, aDoc), ia2AccessibleTable(this) {} |
michael@0 | 29 | |
michael@0 | 30 | // IUnknown |
michael@0 | 31 | DECL_IUNKNOWN_INHERITED |
michael@0 | 32 | |
michael@0 | 33 | // nsISupports |
michael@0 | 34 | NS_DECL_ISUPPORTS_INHERITED |
michael@0 | 35 | |
michael@0 | 36 | virtual void Shutdown() MOZ_OVERRIDE; |
michael@0 | 37 | }; |
michael@0 | 38 | |
michael@0 | 39 | |
michael@0 | 40 | /** |
michael@0 | 41 | * IA2 wrapper class for HTMLTableCellAccessible implementing |
michael@0 | 42 | * IAccessibleTableCell interface. |
michael@0 | 43 | */ |
michael@0 | 44 | class HTMLTableCellAccessibleWrap : public HTMLTableCellAccessible, |
michael@0 | 45 | public ia2AccessibleTableCell |
michael@0 | 46 | { |
michael@0 | 47 | public: |
michael@0 | 48 | HTMLTableCellAccessibleWrap(nsIContent* aContent, DocAccessible* aDoc) : |
michael@0 | 49 | HTMLTableCellAccessible(aContent, aDoc), ia2AccessibleTableCell(this) {} |
michael@0 | 50 | |
michael@0 | 51 | // IUnknown |
michael@0 | 52 | DECL_IUNKNOWN_INHERITED |
michael@0 | 53 | |
michael@0 | 54 | // nsISupports |
michael@0 | 55 | NS_DECL_ISUPPORTS_INHERITED |
michael@0 | 56 | |
michael@0 | 57 | virtual void Shutdown() MOZ_OVERRIDE; |
michael@0 | 58 | }; |
michael@0 | 59 | |
michael@0 | 60 | |
michael@0 | 61 | /** |
michael@0 | 62 | * IA2 wrapper class for HTMLTableHeaderCellAccessible implementing |
michael@0 | 63 | * IAccessibleTableCell interface. |
michael@0 | 64 | */ |
michael@0 | 65 | class HTMLTableHeaderCellAccessibleWrap : public HTMLTableHeaderCellAccessible, |
michael@0 | 66 | public ia2AccessibleTableCell |
michael@0 | 67 | { |
michael@0 | 68 | public: |
michael@0 | 69 | HTMLTableHeaderCellAccessibleWrap(nsIContent* aContent, |
michael@0 | 70 | DocAccessible* aDoc) : |
michael@0 | 71 | HTMLTableHeaderCellAccessible(aContent, aDoc), ia2AccessibleTableCell(this) |
michael@0 | 72 | {} |
michael@0 | 73 | |
michael@0 | 74 | // IUnknown |
michael@0 | 75 | DECL_IUNKNOWN_INHERITED |
michael@0 | 76 | |
michael@0 | 77 | // nsISupports |
michael@0 | 78 | NS_DECL_ISUPPORTS_INHERITED |
michael@0 | 79 | |
michael@0 | 80 | virtual void Shutdown() MOZ_OVERRIDE; |
michael@0 | 81 | }; |
michael@0 | 82 | |
michael@0 | 83 | } // namespace a11y |
michael@0 | 84 | } // namespace mozilla |
michael@0 | 85 | |
michael@0 | 86 | #endif |
michael@0 | 87 |