Index: Source/core/workers/SharedWorkerRepositoryClient.h |
diff --git a/Source/platform/PlatformThreadData.h b/Source/core/workers/SharedWorkerRepositoryClient.h |
similarity index 73% |
copy from Source/platform/PlatformThreadData.h |
copy to Source/core/workers/SharedWorkerRepositoryClient.h |
index a3237ca653dbb155413d303a055209778e10c22b..c337e4e0fd83a8320509cc5c3092219ceeac374b 100644 |
--- a/Source/platform/PlatformThreadData.h |
+++ b/Source/core/workers/SharedWorkerRepositoryClient.h |
@@ -28,32 +28,31 @@ |
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
-#ifndef PlatformThreadData_h |
-#define PlatformThreadData_h |
+#ifndef SharedWorkerRepositoryClient_h |
+#define SharedWorkerRepositoryClient_h |
-#include "platform/PlatformExport.h" |
+#include "wtf/Forward.h" |
#include "wtf/Noncopyable.h" |
-#include "wtf/OwnPtr.h" |
namespace WebCore { |
-class ThreadTimers; |
+class Document; |
+class ExceptionState; |
+class KURL; |
+class MessagePortChannel; |
+class SharedWorker; |
-class PLATFORM_EXPORT PlatformThreadData { |
- WTF_MAKE_NONCOPYABLE(PlatformThreadData); |
+class SharedWorkerRepositoryClient { |
+ WTF_MAKE_NONCOPYABLE(SharedWorkerRepositoryClient); |
public: |
- PlatformThreadData(); |
- ~PlatformThreadData(); |
+ SharedWorkerRepositoryClient() { } |
+ virtual ~SharedWorkerRepositoryClient() { } |
- ThreadTimers& threadTimers() { return *m_threadTimers; } |
+ virtual void connect(PassRefPtr<SharedWorker>, PassRefPtr<MessagePortChannel>, const KURL&, const String& name, ExceptionState&) = 0; |
- static PlatformThreadData& current(); |
- void destroy(); |
- |
-private: |
- OwnPtr<ThreadTimers> m_threadTimers; |
+ virtual void documentDetached(Document*) = 0; |
}; |
} // namespace WebCore |
-#endif // PlatformThreadData_h |
+#endif // SharedWorkerRepositoryClient_h |