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_CacheParent_h
|
|
|
|
#define mozilla_dom_cache_CacheParent_h
|
|
|
|
|
|
|
|
#include "mozilla/dom/cache/PCacheParent.h"
|
|
|
|
#include "mozilla/dom/cache/Types.h"
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace dom {
|
|
|
|
namespace cache {
|
|
|
|
|
2015-04-16 22:00:15 +03:00
|
|
|
class Manager;
|
2015-03-02 16:20:00 +03:00
|
|
|
|
2015-03-21 19:28:04 +03:00
|
|
|
class CacheParent final : public PCacheParent
|
2015-03-02 16:20:00 +03:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
CacheParent(cache::Manager* aManager, CacheId aCacheId);
|
|
|
|
virtual ~CacheParent();
|
|
|
|
|
|
|
|
private:
|
2015-04-16 22:00:15 +03:00
|
|
|
// PCacheParent methods
|
2015-03-21 19:28:04 +03:00
|
|
|
virtual void ActorDestroy(ActorDestroyReason aReason) override;
|
2015-04-16 22:00:15 +03:00
|
|
|
|
|
|
|
virtual PCacheOpParent*
|
|
|
|
AllocPCacheOpParent(const CacheOpArgs& aOpArgs) override;
|
|
|
|
|
2015-04-15 10:55:53 +03:00
|
|
|
virtual bool
|
2015-04-16 22:00:15 +03:00
|
|
|
DeallocPCacheOpParent(PCacheOpParent* aActor) override;
|
|
|
|
|
2015-04-15 10:55:53 +03:00
|
|
|
virtual bool
|
2015-04-16 22:00:15 +03:00
|
|
|
RecvPCacheOpConstructor(PCacheOpParent* actor,
|
|
|
|
const CacheOpArgs& aOpArgs) override;
|
2015-03-02 16:20:00 +03:00
|
|
|
|
2015-04-16 22:00:15 +03:00
|
|
|
virtual PCachePushStreamParent*
|
|
|
|
AllocPCachePushStreamParent() override;
|
2015-03-02 16:20:00 +03:00
|
|
|
|
2015-04-16 22:00:15 +03:00
|
|
|
virtual bool
|
|
|
|
DeallocPCachePushStreamParent(PCachePushStreamParent* aActor) override;
|
2015-03-02 16:20:00 +03:00
|
|
|
|
2015-04-16 22:00:15 +03:00
|
|
|
virtual bool
|
|
|
|
RecvTeardown() override;
|
2015-03-02 16:20:00 +03:00
|
|
|
|
2015-10-18 08:24:48 +03:00
|
|
|
RefPtr<cache::Manager> mManager;
|
2015-03-02 16:20:00 +03:00
|
|
|
const CacheId mCacheId;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace cache
|
|
|
|
} // namespace dom
|
|
|
|
} // namespace mozilla
|
|
|
|
|
|
|
|
#endif // mozilla_dom_cache_CacheParent_h
|