2018-11-29 23:47:20 +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_localstorage_ActorsParent_h
|
|
|
|
#define mozilla_dom_localstorage_ActorsParent_h
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
|
|
|
|
namespace ipc {
|
|
|
|
|
|
|
|
class PBackgroundParent;
|
2018-11-29 23:47:45 +03:00
|
|
|
class PrincipalInfo;
|
2018-11-29 23:47:20 +03:00
|
|
|
|
|
|
|
} // namespace ipc
|
|
|
|
|
|
|
|
namespace dom {
|
|
|
|
|
|
|
|
class LSRequestParams;
|
2018-11-29 23:48:15 +03:00
|
|
|
class LSSimpleRequestParams;
|
2018-11-29 23:48:41 +03:00
|
|
|
class PBackgroundLSDatabaseParent;
|
2018-11-29 23:47:45 +03:00
|
|
|
class PBackgroundLSObserverParent;
|
2018-11-29 23:47:20 +03:00
|
|
|
class PBackgroundLSRequestParent;
|
2018-11-29 23:48:15 +03:00
|
|
|
class PBackgroundLSSimpleRequestParent;
|
2018-11-29 23:47:20 +03:00
|
|
|
|
2018-11-29 23:47:24 +03:00
|
|
|
namespace quota {
|
|
|
|
|
|
|
|
class Client;
|
|
|
|
|
|
|
|
} // namespace quota
|
|
|
|
|
2018-11-29 23:48:41 +03:00
|
|
|
PBackgroundLSDatabaseParent*
|
|
|
|
AllocPBackgroundLSDatabaseParent(
|
2018-11-29 23:47:45 +03:00
|
|
|
const mozilla::ipc::PrincipalInfo& aPrincipalInfo,
|
2018-11-29 23:48:41 +03:00
|
|
|
const uint32_t& aPrivateBrowsingId,
|
|
|
|
const uint64_t& aDatastoreId);
|
2018-11-29 23:47:20 +03:00
|
|
|
|
|
|
|
bool
|
2018-11-29 23:48:41 +03:00
|
|
|
RecvPBackgroundLSDatabaseConstructor(
|
|
|
|
PBackgroundLSDatabaseParent* aActor,
|
2018-11-29 23:47:45 +03:00
|
|
|
const mozilla::ipc::PrincipalInfo& aPrincipalInfo,
|
2018-11-29 23:48:41 +03:00
|
|
|
const uint32_t& aPrivateBrowsingId,
|
|
|
|
const uint64_t& aDatastoreId);
|
2018-11-29 23:47:20 +03:00
|
|
|
|
|
|
|
bool
|
2018-11-29 23:48:41 +03:00
|
|
|
DeallocPBackgroundLSDatabaseParent(PBackgroundLSDatabaseParent* aActor);
|
2018-11-29 23:47:45 +03:00
|
|
|
|
|
|
|
PBackgroundLSObserverParent*
|
|
|
|
AllocPBackgroundLSObserverParent(const uint64_t& aObserverId);
|
|
|
|
|
|
|
|
bool
|
|
|
|
RecvPBackgroundLSObserverConstructor(PBackgroundLSObserverParent* aActor,
|
|
|
|
const uint64_t& aObservereId);
|
|
|
|
|
|
|
|
bool
|
|
|
|
DeallocPBackgroundLSObserverParent(PBackgroundLSObserverParent* aActor);
|
2018-11-29 23:47:20 +03:00
|
|
|
|
|
|
|
PBackgroundLSRequestParent*
|
|
|
|
AllocPBackgroundLSRequestParent(
|
|
|
|
mozilla::ipc::PBackgroundParent* aBackgroundActor,
|
|
|
|
const LSRequestParams& aParams);
|
|
|
|
|
|
|
|
bool
|
|
|
|
RecvPBackgroundLSRequestConstructor(PBackgroundLSRequestParent* aActor,
|
|
|
|
const LSRequestParams& aParams);
|
|
|
|
|
|
|
|
bool
|
|
|
|
DeallocPBackgroundLSRequestParent(PBackgroundLSRequestParent* aActor);
|
|
|
|
|
2018-11-29 23:48:15 +03:00
|
|
|
PBackgroundLSSimpleRequestParent*
|
|
|
|
AllocPBackgroundLSSimpleRequestParent(const LSSimpleRequestParams& aParams);
|
|
|
|
|
|
|
|
bool
|
|
|
|
RecvPBackgroundLSSimpleRequestConstructor(
|
|
|
|
PBackgroundLSSimpleRequestParent* aActor,
|
|
|
|
const LSSimpleRequestParams& aParams);
|
|
|
|
|
|
|
|
bool
|
|
|
|
DeallocPBackgroundLSSimpleRequestParent(
|
|
|
|
PBackgroundLSSimpleRequestParent* aActor);
|
|
|
|
|
2018-11-29 23:47:24 +03:00
|
|
|
namespace localstorage {
|
|
|
|
|
|
|
|
already_AddRefed<mozilla::dom::quota::Client>
|
|
|
|
CreateQuotaClient();
|
|
|
|
|
|
|
|
} // namespace localstorage
|
|
|
|
|
2018-11-29 23:47:20 +03:00
|
|
|
} // namespace dom
|
|
|
|
} // namespace mozilla
|
|
|
|
|
|
|
|
#endif // mozilla_dom_localstorage_ActorsParent_h
|