2015-03-02 16:20:00 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
|
|
|
/* 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/. */
|
|
|
|
|
|
|
|
#ifndef mozilla_dom_cache_ActioChild_h
|
|
|
|
#define mozilla_dom_cache_ActioChild_h
|
|
|
|
|
2015-10-18 08:24:48 +03:00
|
|
|
#include "mozilla/RefPtr.h"
|
2015-03-02 16:20:00 +03:00
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace dom {
|
|
|
|
namespace cache {
|
|
|
|
|
2016-06-23 11:53:14 +03:00
|
|
|
class CacheWorkerHolder;
|
2015-03-02 16:20:00 +03:00
|
|
|
|
|
|
|
class ActorChild
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void
|
|
|
|
StartDestroy() = 0;
|
|
|
|
|
|
|
|
void
|
2016-06-23 11:53:14 +03:00
|
|
|
SetWorkerHolder(CacheWorkerHolder* aWorkerHolder);
|
2015-03-02 16:20:00 +03:00
|
|
|
|
|
|
|
void
|
2016-06-23 11:53:14 +03:00
|
|
|
RemoveWorkerHolder();
|
2015-03-02 16:20:00 +03:00
|
|
|
|
2016-06-23 11:53:14 +03:00
|
|
|
CacheWorkerHolder*
|
|
|
|
GetWorkerHolder() const;
|
2015-03-02 16:20:00 +03:00
|
|
|
|
|
|
|
bool
|
2016-06-23 11:53:14 +03:00
|
|
|
WorkerHolderNotified() const;
|
2015-03-02 16:20:00 +03:00
|
|
|
|
|
|
|
protected:
|
2015-03-16 17:10:36 +03:00
|
|
|
ActorChild();
|
2015-03-02 16:20:00 +03:00
|
|
|
~ActorChild();
|
|
|
|
|
|
|
|
private:
|
2016-06-23 11:53:14 +03:00
|
|
|
RefPtr<CacheWorkerHolder> mWorkerHolder;
|
2015-03-02 16:20:00 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace cache
|
|
|
|
} // namespace dom
|
|
|
|
} // namespace mozilla
|
|
|
|
|
|
|
|
#endif // mozilla_dom_cache_ActioChild_h
|