nsApplicationCache.h 758 B

123456789101112131415161718192021222324252627282930
  1. /* vim:set ts=2 sw=2 sts=2 et cin: */
  2. /* This Source Code Form is subject to the terms of the Mozilla Public
  3. * License, v. 2.0. If a copy of the MPL was not distributed with this
  4. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. class nsApplicationCache : public nsIApplicationCache
  6. , public nsSupportsWeakReference
  7. {
  8. public:
  9. NS_DECL_ISUPPORTS
  10. NS_DECL_NSIAPPLICATIONCACHE
  11. nsApplicationCache(nsOfflineCacheDevice *device,
  12. const nsACString &group,
  13. const nsACString &clientID);
  14. nsApplicationCache();
  15. void MarkInvalid();
  16. private:
  17. virtual ~nsApplicationCache();
  18. RefPtr<nsOfflineCacheDevice> mDevice;
  19. nsCString mGroup;
  20. nsCString mClientID;
  21. bool mValid;
  22. };