netwerk/cache2/CacheFileUtils.h

Wed, 31 Dec 2014 06:55:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:55:50 +0100
changeset 2
7e26c7da4463
permissions
-rw-r--r--

Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2

michael@0 1 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 2 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 4
michael@0 5 #ifndef CacheFileUtils__h__
michael@0 6 #define CacheFileUtils__h__
michael@0 7
michael@0 8 #include "nsError.h"
michael@0 9 #include "nsCOMPtr.h"
michael@0 10 #include "nsString.h"
michael@0 11
michael@0 12 class nsILoadContextInfo;
michael@0 13 class nsACString;
michael@0 14
michael@0 15 namespace mozilla {
michael@0 16 namespace net {
michael@0 17 namespace CacheFileUtils {
michael@0 18
michael@0 19 already_AddRefed<nsILoadContextInfo>
michael@0 20 ParseKey(const nsCSubstring &aKey,
michael@0 21 nsCSubstring *aIdEnhance = nullptr,
michael@0 22 nsCSubstring *aURISpec = nullptr);
michael@0 23
michael@0 24 void
michael@0 25 AppendKeyPrefix(nsILoadContextInfo *aInfo, nsACString &_retval);
michael@0 26
michael@0 27 void
michael@0 28 AppendTagWithValue(nsACString & aTarget, char const aTag, nsCSubstring const & aValue);
michael@0 29
michael@0 30 nsresult
michael@0 31 KeyMatchesLoadContextInfo(const nsACString &aKey,
michael@0 32 nsILoadContextInfo *aInfo,
michael@0 33 bool *_retval);
michael@0 34
michael@0 35 } // CacheFileUtils
michael@0 36 } // net
michael@0 37 } // mozilla
michael@0 38
michael@0 39 #endif

mercurial