1 /* -*- Mode: C++; tab-width: 2; 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/. */
6 #ifndef NS_RLBOX_EXPAT_DRIVER__
7 #define NS_RLBOX_EXPAT_DRIVER__
9 #include "mozilla/RLBoxSandboxPool.h"
10 #include "mozilla/StaticPtr.h"
11 #include "mozilla/UniquePtr.h"
13 class RLBoxExpatSandboxPool
: public mozilla::RLBoxSandboxPool
{
15 explicit RLBoxExpatSandboxPool(size_t aDelaySeconds
)
16 : RLBoxSandboxPool(aDelaySeconds
) {}
18 static mozilla::StaticRefPtr
<RLBoxExpatSandboxPool
> sSingleton
;
19 static void Initialize(size_t aDelaySeconds
= 10);
22 mozilla::UniquePtr
<mozilla::RLBoxSandboxDataBase
> CreateSandboxData(
23 uint64_t aSize
) override
;
24 ~RLBoxExpatSandboxPool() = default;