nsRLBoxExpatDriver.h (909B)
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/. */ 5 6 #ifndef NS_RLBOX_EXPAT_DRIVER__ 7 #define NS_RLBOX_EXPAT_DRIVER__ 8 9 #include "mozilla/RLBoxSandboxPool.h" 10 #include "mozilla/StaticPtr.h" 11 #include "mozilla/UniquePtr.h" 12 13 class RLBoxExpatSandboxPool : public mozilla::RLBoxSandboxPool { 14 public: 15 explicit RLBoxExpatSandboxPool(size_t aDelaySeconds) 16 : RLBoxSandboxPool(aDelaySeconds) {} 17 18 static mozilla::StaticRefPtr<RLBoxExpatSandboxPool> sSingleton; 19 static void Initialize(size_t aDelaySeconds = 10); 20 21 protected: 22 mozilla::UniquePtr<mozilla::RLBoxSandboxDataBase> CreateSandboxData( 23 uint64_t aSize) override; 24 ~RLBoxExpatSandboxPool() = default; 25 }; 26 27 #endif