netwerk/cache2/CacheFileUtils.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/netwerk/cache2/CacheFileUtils.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,39 @@
     1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.7 +
     1.8 +#ifndef CacheFileUtils__h__
     1.9 +#define CacheFileUtils__h__
    1.10 +
    1.11 +#include "nsError.h"
    1.12 +#include "nsCOMPtr.h"
    1.13 +#include "nsString.h"
    1.14 +
    1.15 +class nsILoadContextInfo;
    1.16 +class nsACString;
    1.17 +
    1.18 +namespace mozilla {
    1.19 +namespace net {
    1.20 +namespace CacheFileUtils {
    1.21 +
    1.22 +already_AddRefed<nsILoadContextInfo>
    1.23 +ParseKey(const nsCSubstring &aKey,
    1.24 +         nsCSubstring *aIdEnhance = nullptr,
    1.25 +         nsCSubstring *aURISpec = nullptr);
    1.26 +
    1.27 +void
    1.28 +AppendKeyPrefix(nsILoadContextInfo *aInfo, nsACString &_retval);
    1.29 +
    1.30 +void
    1.31 +AppendTagWithValue(nsACString & aTarget, char const aTag, nsCSubstring const & aValue);
    1.32 +
    1.33 +nsresult
    1.34 +KeyMatchesLoadContextInfo(const nsACString &aKey,
    1.35 +                          nsILoadContextInfo *aInfo,
    1.36 +                          bool *_retval);
    1.37 +
    1.38 +} // CacheFileUtils
    1.39 +} // net
    1.40 +} // mozilla
    1.41 +
    1.42 +#endif

mercurial