Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
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