Thu, 15 Jan 2015 15:59:08 +0100
Implement a real Private Browsing Mode condition by changing the API/ABI;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #ifndef CacheFileUtils__h__
6 #define CacheFileUtils__h__
8 #include "nsError.h"
9 #include "nsCOMPtr.h"
10 #include "nsString.h"
12 class nsILoadContextInfo;
13 class nsACString;
15 namespace mozilla {
16 namespace net {
17 namespace CacheFileUtils {
19 already_AddRefed<nsILoadContextInfo>
20 ParseKey(const nsCSubstring &aKey,
21 nsCSubstring *aIdEnhance = nullptr,
22 nsCSubstring *aURISpec = nullptr);
24 void
25 AppendKeyPrefix(nsILoadContextInfo *aInfo, nsACString &_retval);
27 void
28 AppendTagWithValue(nsACString & aTarget, char const aTag, nsCSubstring const & aValue);
30 nsresult
31 KeyMatchesLoadContextInfo(const nsACString &aKey,
32 nsILoadContextInfo *aInfo,
33 bool *_retval);
35 } // CacheFileUtils
36 } // net
37 } // mozilla
39 #endif