michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef CacheFileUtils__h__ michael@0: #define CacheFileUtils__h__ michael@0: michael@0: #include "nsError.h" michael@0: #include "nsCOMPtr.h" michael@0: #include "nsString.h" michael@0: michael@0: class nsILoadContextInfo; michael@0: class nsACString; michael@0: michael@0: namespace mozilla { michael@0: namespace net { michael@0: namespace CacheFileUtils { michael@0: michael@0: already_AddRefed michael@0: ParseKey(const nsCSubstring &aKey, michael@0: nsCSubstring *aIdEnhance = nullptr, michael@0: nsCSubstring *aURISpec = nullptr); michael@0: michael@0: void michael@0: AppendKeyPrefix(nsILoadContextInfo *aInfo, nsACString &_retval); michael@0: michael@0: void michael@0: AppendTagWithValue(nsACString & aTarget, char const aTag, nsCSubstring const & aValue); michael@0: michael@0: nsresult michael@0: KeyMatchesLoadContextInfo(const nsACString &aKey, michael@0: nsILoadContextInfo *aInfo, michael@0: bool *_retval); michael@0: michael@0: } // CacheFileUtils michael@0: } // net michael@0: } // mozilla michael@0: michael@0: #endif