diff options
Diffstat (limited to 'WebCore/workers/SharedWorkerRepository.h')
-rw-r--r-- | WebCore/workers/SharedWorkerRepository.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/WebCore/workers/SharedWorkerRepository.h b/WebCore/workers/SharedWorkerRepository.h index 84acf77..96d2fb1 100644 --- a/WebCore/workers/SharedWorkerRepository.h +++ b/WebCore/workers/SharedWorkerRepository.h @@ -34,12 +34,12 @@ #if ENABLE(SHARED_WORKERS) #include "ExceptionCode.h" - #include <wtf/PassOwnPtr.h> #include <wtf/PassRefPtr.h> namespace WebCore { + class Document; class KURL; class MessagePortChannel; class SharedWorker; @@ -50,6 +50,12 @@ namespace WebCore { public: // Connects the passed SharedWorker object with the specified worker thread, creating a new thread if necessary. static void connect(PassRefPtr<SharedWorker>, PassOwnPtr<MessagePortChannel>, const KURL&, const String& name, ExceptionCode&); + + // Invoked when a document has been detached. + static void documentDetached(Document*); + + // Returns true if the passed document is associated with any SharedWorkers. + static bool hasSharedWorkers(Document*); private: SharedWorkerRepository() { } }; |