| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | 21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
| 22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | 22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #ifndef PlatformThreadData_h | 31 #ifndef SharedWorkerRepositoryClient_h |
| 32 #define PlatformThreadData_h | 32 #define SharedWorkerRepositoryClient_h |
| 33 | 33 |
| 34 #include "platform/PlatformExport.h" | 34 #include "wtf/Forward.h" |
| 35 #include "wtf/Noncopyable.h" | 35 #include "wtf/Noncopyable.h" |
| 36 #include "wtf/OwnPtr.h" | |
| 37 | 36 |
| 38 namespace WebCore { | 37 namespace WebCore { |
| 39 | 38 |
| 40 class ThreadTimers; | 39 class Document; |
| 40 class ExceptionState; |
| 41 class KURL; |
| 42 class MessagePortChannel; |
| 43 class SharedWorker; |
| 41 | 44 |
| 42 class PLATFORM_EXPORT PlatformThreadData { | 45 class SharedWorkerRepositoryClient { |
| 43 WTF_MAKE_NONCOPYABLE(PlatformThreadData); | 46 WTF_MAKE_NONCOPYABLE(SharedWorkerRepositoryClient); |
| 44 public: | 47 public: |
| 45 PlatformThreadData(); | 48 SharedWorkerRepositoryClient() { } |
| 46 ~PlatformThreadData(); | 49 virtual ~SharedWorkerRepositoryClient() { } |
| 47 | 50 |
| 48 ThreadTimers& threadTimers() { return *m_threadTimers; } | 51 virtual void connect(PassRefPtr<SharedWorker>, PassRefPtr<MessagePortChannel
>, const KURL&, const String& name, ExceptionState&) = 0; |
| 49 | 52 |
| 50 static PlatformThreadData& current(); | 53 virtual void documentDetached(Document*) = 0; |
| 51 void destroy(); | |
| 52 | |
| 53 private: | |
| 54 OwnPtr<ThreadTimers> m_threadTimers; | |
| 55 }; | 54 }; |
| 56 | 55 |
| 57 } // namespace WebCore | 56 } // namespace WebCore |
| 58 | 57 |
| 59 #endif // PlatformThreadData_h | 58 #endif // SharedWorkerRepositoryClient_h |
| OLD | NEW |