ActorChild.h 928 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  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. #ifndef mozilla_dom_cache_ActioChild_h
  6. #define mozilla_dom_cache_ActioChild_h
  7. #include "mozilla/RefPtr.h"
  8. namespace mozilla {
  9. namespace dom {
  10. namespace cache {
  11. class CacheWorkerHolder;
  12. class ActorChild
  13. {
  14. public:
  15. virtual void
  16. StartDestroy() = 0;
  17. void
  18. SetWorkerHolder(CacheWorkerHolder* aWorkerHolder);
  19. void
  20. RemoveWorkerHolder();
  21. CacheWorkerHolder*
  22. GetWorkerHolder() const;
  23. bool
  24. WorkerHolderNotified() const;
  25. protected:
  26. ActorChild();
  27. ~ActorChild();
  28. private:
  29. RefPtr<CacheWorkerHolder> mWorkerHolder;
  30. };
  31. } // namespace cache
  32. } // namespace dom
  33. } // namespace mozilla
  34. #endif // mozilla_dom_cache_ActioChild_h