Bug 1802897 - Part 12: Make gray unmarking work with parallel marking r=sfink
[gecko.git] / parser / htmlparser / nsRLBoxExpatDriver.h
blob84236f3365b3343f40c8c6997a2de552c55ae68e
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 {
14 public:
15 explicit RLBoxExpatSandboxPool(size_t aDelaySeconds)
16 : RLBoxSandboxPool(aDelaySeconds) {}
18 static mozilla::StaticRefPtr<RLBoxExpatSandboxPool> sSingleton;
19 static void Initialize(size_t aDelaySeconds = 10);
21 protected:
22 mozilla::UniquePtr<mozilla::RLBoxSandboxDataBase> CreateSandboxData(
23 uint64_t aSize) override;
24 ~RLBoxExpatSandboxPool() = default;
27 #endif