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.
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim:expandtab:shiftwidth=2:tabstop=2:
3 */
4 /* This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
8 #ifndef _ACCESSIBLE_HYPERLINK_H
9 #define _ACCESSIBLE_HYPERLINK_H
11 #include "nsISupports.h"
13 #include "ia2AccessibleAction.h"
14 #include "AccessibleHyperlink.h"
16 namespace mozilla {
17 namespace a11y {
19 class ia2AccessibleHyperlink : public ia2AccessibleAction,
20 public IAccessibleHyperlink
21 {
22 public:
24 // IUnknown
25 STDMETHODIMP QueryInterface(REFIID, void**);
27 // IAccessibleAction
28 FORWARD_IACCESSIBLEACTION(ia2AccessibleAction)
30 virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_anchor(
31 /* [in] */ long index,
32 /* [retval][out] */ VARIANT *anchor);
34 virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_anchorTarget(
35 /* [in] */ long index,
36 /* [retval][out] */ VARIANT *anchorTarget);
38 virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_startIndex(
39 /* [retval][out] */ long *index);
41 virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_endIndex(
42 /* [retval][out] */ long *index);
44 virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_valid(
45 /* [retval][out] */ boolean *valid);
46 };
48 } // namespace a11y
49 } // namespace mozilla
51 #endif