| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 #include <wtf/OwnPtr.h> | 33 #include <wtf/OwnPtr.h> |
| 34 #include <wtf/PassRefPtr.h> | 34 #include <wtf/PassRefPtr.h> |
| 35 #include <wtf/RefCounted.h> | 35 #include <wtf/RefCounted.h> |
| 36 | 36 |
| 37 namespace WebCore { | 37 namespace WebCore { |
| 38 | 38 |
| 39 class KURL; | 39 class KURL; |
| 40 class String; | 40 class String; |
| 41 class WorkerContext; | 41 class WorkerContext; |
| 42 class WorkerMessagingProxy; | 42 class WorkerMessagingProxy; |
| 43 class WorkerTask; | |
| 44 struct WorkerThreadStartupData; | 43 struct WorkerThreadStartupData; |
| 45 | 44 |
| 46 class WorkerThread : public RefCounted<WorkerThread> { | 45 class WorkerThread : public RefCounted<WorkerThread> { |
| 47 public: | 46 public: |
| 48 static PassRefPtr<WorkerThread> create(const KURL& scriptURL, const Stri
ng& userAgent, const String& sourceCode, WorkerMessagingProxy*); | 47 static PassRefPtr<WorkerThread> create(const KURL& scriptURL, const Stri
ng& userAgent, const String& sourceCode, WorkerMessagingProxy*); |
| 49 ~WorkerThread(); | 48 ~WorkerThread(); |
| 50 | 49 |
| 51 bool start(); | 50 bool start(); |
| 52 void stop(); | 51 void stop(); |
| 53 | 52 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 71 OwnPtr<WorkerThreadStartupData> m_startupData; | 70 OwnPtr<WorkerThreadStartupData> m_startupData; |
| 72 }; | 71 }; |
| 73 | 72 |
| 74 } // namespace WebCore | 73 } // namespace WebCore |
| 75 | 74 |
| 76 #endif // ENABLE(WORKERS) | 75 #endif // ENABLE(WORKERS) |
| 77 | 76 |
| 78 #endif // WorkerThread_h | 77 #endif // WorkerThread_h |
| 79 | 78 |
| 80 | 79 |
| OLD | NEW |