dom/indexedDB/ActorsParent.h
author Jan Varga <jan.varga@gmail.com>
Sat, 06 Dec 2014 07:31:53 -0800
changeset 244448 ba5e60f0a2580680a382d64bbdeebc1071d31bd2
parent 228431 14a2fe92d07b642025f16d2e527bb3b0d12d8807
child 245070 58982e7b5c45e9f33f5c13e6e08710b3f8459510
permissions -rw-r--r--
Bug 771288 - Multiprocess FileHandle support (FileHandle on PBackground); Part 1 - Remove unused stuff; r=bent

/* 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_indexeddb_actorsparent_h__
#define mozilla_dom_indexeddb_actorsparent_h__

template <class> struct already_AddRefed;
class nsCString;
class nsIPrincipal;
class nsPIDOMWindow;

namespace mozilla {
namespace dom {

class TabParent;

namespace quota {

class Client;

} // namespace quota

namespace indexedDB {

class PBackgroundIDBFactoryParent;
class PIndexedDBPermissionRequestParent;

PBackgroundIDBFactoryParent*
AllocPBackgroundIDBFactoryParent();

bool
RecvPBackgroundIDBFactoryConstructor(PBackgroundIDBFactoryParent* aActor);

bool
DeallocPBackgroundIDBFactoryParent(PBackgroundIDBFactoryParent* aActor);

PIndexedDBPermissionRequestParent*
AllocPIndexedDBPermissionRequestParent(nsPIDOMWindow* aWindow,
                                       nsIPrincipal* aPrincipal);

bool
RecvPIndexedDBPermissionRequestConstructor(
                                     PIndexedDBPermissionRequestParent* aActor);

bool
DeallocPIndexedDBPermissionRequestParent(
                                     PIndexedDBPermissionRequestParent* aActor);

already_AddRefed<mozilla::dom::quota::Client>
CreateQuotaClient();

} // namespace indexedDB
} // namespace dom
} // namespace mozilla

#endif // mozilla_dom_indexeddb_actorsparent_h__