| 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 29 matching lines...) Expand all Loading... |
| 40 #include <wtf/RefPtr.h> | 40 #include <wtf/RefPtr.h> |
| 41 | 41 |
| 42 namespace WebCore { | 42 namespace WebCore { |
| 43 | 43 |
| 44 class CachedResource; | 44 class CachedResource; |
| 45 class CachedScript; | 45 class CachedScript; |
| 46 class Document; | 46 class Document; |
| 47 class ScriptExecutionContext; | 47 class ScriptExecutionContext; |
| 48 class String; | 48 class String; |
| 49 class WorkerMessagingProxy; | 49 class WorkerMessagingProxy; |
| 50 class WorkerTask; | |
| 51 | 50 |
| 52 typedef int ExceptionCode; | 51 typedef int ExceptionCode; |
| 53 | 52 |
| 54 class Worker : public RefCounted<Worker>, public ActiveDOMObject, private Ca
chedResourceClient, public EventTarget { | 53 class Worker : public RefCounted<Worker>, public ActiveDOMObject, private Ca
chedResourceClient, public EventTarget { |
| 55 public: | 54 public: |
| 56 static PassRefPtr<Worker> create(const String& url, Document* document,
ExceptionCode& ec) { return adoptRef(new Worker(url, document, ec)); } | 55 static PassRefPtr<Worker> create(const String& url, Document* document,
ExceptionCode& ec) { return adoptRef(new Worker(url, document, ec)); } |
| 57 ~Worker(); | 56 ~Worker(); |
| 58 | 57 |
| 59 virtual ScriptExecutionContext* scriptExecutionContext() const { return
ActiveDOMObject::scriptExecutionContext(); } | 58 virtual ScriptExecutionContext* scriptExecutionContext() const { return
ActiveDOMObject::scriptExecutionContext(); } |
| 60 Document* document() const; | 59 Document* document() const; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 EventListenersMap m_eventListeners; | 105 EventListenersMap m_eventListeners; |
| 107 }; | 106 }; |
| 108 | 107 |
| 109 } // namespace WebCore | 108 } // namespace WebCore |
| 110 | 109 |
| 111 #endif // ENABLE(WORKERS) | 110 #endif // ENABLE(WORKERS) |
| 112 | 111 |
| 113 #endif // Worker_h | 112 #endif // Worker_h |
| 114 | 113 |
| 115 | 114 |
| OLD | NEW |