| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008, 2010 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008, 2010 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 16 matching lines...) Expand all Loading... |
| 27 #ifndef Worker_h | 27 #ifndef Worker_h |
| 28 #define Worker_h | 28 #define Worker_h |
| 29 | 29 |
| 30 #include "core/dom/ActiveDOMObject.h" | 30 #include "core/dom/ActiveDOMObject.h" |
| 31 #include "core/dom/EventListener.h" | 31 #include "core/dom/EventListener.h" |
| 32 #include "core/dom/EventNames.h" | 32 #include "core/dom/EventNames.h" |
| 33 #include "core/dom/EventTarget.h" | 33 #include "core/dom/EventTarget.h" |
| 34 #include "core/dom/MessagePort.h" | 34 #include "core/dom/MessagePort.h" |
| 35 #include "core/workers/AbstractWorker.h" | 35 #include "core/workers/AbstractWorker.h" |
| 36 #include "core/workers/WorkerScriptLoaderClient.h" | 36 #include "core/workers/WorkerScriptLoaderClient.h" |
| 37 #include <wtf/Forward.h> | 37 #include "wtf/Forward.h" |
| 38 #include <wtf/PassRefPtr.h> | 38 #include "wtf/PassRefPtr.h" |
| 39 #include <wtf/RefPtr.h> | 39 #include "wtf/RefPtr.h" |
| 40 #include <wtf/text/AtomicStringHash.h> | 40 #include "wtf/text/AtomicStringHash.h" |
| 41 | 41 |
| 42 namespace WebCore { | 42 namespace WebCore { |
| 43 | 43 |
| 44 class ExceptionState; | 44 class ExceptionState; |
| 45 class ScriptExecutionContext; | 45 class ScriptExecutionContext; |
| 46 class WorkerGlobalScopeProxy; | 46 class WorkerGlobalScopeProxy; |
| 47 class WorkerScriptLoader; | 47 class WorkerScriptLoader; |
| 48 | 48 |
| 49 class Worker : public AbstractWorker, public ScriptWrappable, private WorkerScri
ptLoaderClient { | 49 class Worker : public AbstractWorker, public ScriptWrappable, private WorkerScri
ptLoaderClient { |
| 50 public: | 50 public: |
| (...skipping 22 matching lines...) Expand all Loading... |
| 73 virtual void refEventTarget() OVERRIDE { ref(); } | 73 virtual void refEventTarget() OVERRIDE { ref(); } |
| 74 virtual void derefEventTarget() OVERRIDE { deref(); } | 74 virtual void derefEventTarget() OVERRIDE { deref(); } |
| 75 | 75 |
| 76 RefPtr<WorkerScriptLoader> m_scriptLoader; | 76 RefPtr<WorkerScriptLoader> m_scriptLoader; |
| 77 WorkerGlobalScopeProxy* m_contextProxy; // The proxy outlives the worker to
perform thread shutdown. | 77 WorkerGlobalScopeProxy* m_contextProxy; // The proxy outlives the worker to
perform thread shutdown. |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 } // namespace WebCore | 80 } // namespace WebCore |
| 81 | 81 |
| 82 #endif // Worker_h | 82 #endif // Worker_h |
| OLD | NEW |