From 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 27 Jun 2017 06:07:23 +0000 Subject: webkitgtk-2.16.5 --- Source/WebCore/html/PublicURLManager.h | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) (limited to 'Source/WebCore/html/PublicURLManager.h') diff --git a/Source/WebCore/html/PublicURLManager.h b/Source/WebCore/html/PublicURLManager.h index 9ad01bd45..e326545dc 100644 --- a/Source/WebCore/html/PublicURLManager.h +++ b/Source/WebCore/html/PublicURLManager.h @@ -23,14 +23,12 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef PublicURLManager_h -#define PublicURLManager_h +#pragma once -#if ENABLE(BLOB) +#include "ActiveDOMObject.h" +#include #include #include -#include -#include #include namespace WebCore { @@ -41,22 +39,26 @@ class SecurityOrigin; class URLRegistry; class URLRegistrable; -class PublicURLManager { +class PublicURLManager final : public ActiveDOMObject { WTF_MAKE_FAST_ALLOCATED; public: - static OwnPtr create() { return adoptPtr(new PublicURLManager); } + explicit PublicURLManager(ScriptExecutionContext*); - void registerURL(SecurityOrigin*, const URL&, URLRegistrable*); + static std::unique_ptr create(ScriptExecutionContext*); + + void registerURL(SecurityOrigin*, const URL&, URLRegistrable&); void revoke(const URL&); - void contextDestroyed(); private: + // ActiveDOMObject API. + void stop() override; + bool canSuspendForDocumentSuspension() const override; + const char* activeDOMObjectName() const override; + typedef HashSet URLSet; typedef HashMap RegistryURLMap; RegistryURLMap m_registryToURL; + bool m_isStopped; }; } // namespace WebCore - -#endif // BLOB -#endif // PUBLICURLMANAGER_h -- cgit v1.2.1