netwerk/cache/nsApplicationCache.h
author Ryan VanderMeulen <ryanvm@gmail.com>
Tue, 28 Oct 2014 12:57:31 -0400
changeset 237027 d94624ae1684444cd777aa7ff9beae75871fe948
parent 211336 ef6cb0f76224810fdaf44cd4c5164ff552e0ade0
child 299739 91d4539e00cecb658604e021675a923c60ef3235
permissions -rw-r--r--
Backed out changesets 262df50c7355 and 2dbd41ba7717 (bug 1088617) for crashes.

/* vim:set ts=2 sw=2 sts=2 et cin: */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

class nsApplicationCache : public nsIApplicationCache
                         , public nsSupportsWeakReference
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIAPPLICATIONCACHE

  nsApplicationCache(nsOfflineCacheDevice *device,
                     const nsACString &group,
                     const nsACString &clientID);

  nsApplicationCache();

  void MarkInvalid();

private:
  virtual ~nsApplicationCache();

  nsRefPtr<nsOfflineCacheDevice> mDevice;
  nsCString mGroup;
  nsCString mClientID;
  bool mValid;
};