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: set ts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef mozilla_a11y_sdnDocAccessible_h_
8 #define mozilla_a11y_sdnDocAccessible_h_
10 #include "ISimpleDOMDocument.h"
11 #include "IUnknownImpl.h"
13 #include "DocAccessibleWrap.h"
15 namespace mozilla {
16 namespace a11y {
18 class sdnDocAccessible MOZ_FINAL : public ISimpleDOMDocument
19 {
20 public:
21 sdnDocAccessible(DocAccessibleWrap* aAccessible) : mAccessible(aAccessible) {};
22 ~sdnDocAccessible() { };
24 DECL_IUNKNOWN
26 // ISimpleDOMDocument
27 virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_URL(
28 /* [out] */ BSTR __RPC_FAR *url);
30 virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_title(
31 /* [out] */ BSTR __RPC_FAR *title);
33 virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_mimeType(
34 /* [out] */ BSTR __RPC_FAR *mimeType);
36 virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_docType(
37 /* [out] */ BSTR __RPC_FAR *docType);
39 virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_nameSpaceURIForID(
40 /* [in] */ short nameSpaceID,
41 /* [out] */ BSTR __RPC_FAR *nameSpaceURI);
43 virtual /* [id] */ HRESULT STDMETHODCALLTYPE put_alternateViewMediaTypes(
44 /* [in] */ BSTR __RPC_FAR *commaSeparatedMediaTypes);
46 protected:
47 nsRefPtr<DocAccessibleWrap> mAccessible;
48 };
50 } // namespace a11y
51 } // namespace mozilla
53 #endif