| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef InProcessWorkerBase_h | 5 #ifndef InProcessWorkerBase_h |
| 6 #define InProcessWorkerBase_h | 6 #define InProcessWorkerBase_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/ActiveScriptWrappable.h" | 8 #include "bindings/core/v8/ActiveScriptWrappable.h" |
| 9 #include "core/CoreExport.h" | 9 #include "core/CoreExport.h" |
| 10 #include "core/dom/ActiveDOMObject.h" | 10 #include "core/dom/ActiveDOMObject.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 class ExecutionContext; | 24 class ExecutionContext; |
| 25 class WorkerGlobalScopeProxy; | 25 class WorkerGlobalScopeProxy; |
| 26 class WorkerScriptLoader; | 26 class WorkerScriptLoader; |
| 27 | 27 |
| 28 // Base class for workers that operate in the same process as the document that | 28 // Base class for workers that operate in the same process as the document that |
| 29 // creates them. | 29 // creates them. |
| 30 class CORE_EXPORT InProcessWorkerBase : public AbstractWorker, public ActiveScri
ptWrappable { | 30 class CORE_EXPORT InProcessWorkerBase : public AbstractWorker, public ActiveScri
ptWrappable { |
| 31 public: | 31 public: |
| 32 ~InProcessWorkerBase() override; | 32 ~InProcessWorkerBase() override; |
| 33 | 33 |
| 34 void postMessage(ExecutionContext*, PassRefPtr<SerializedScriptValue> messag
e, const MessagePortArray*, ExceptionState&); | 34 void postMessage(ExecutionContext*, PassRefPtr<SerializedScriptValue> messag
e, const MessagePortArray&, ExceptionState&); |
| 35 void terminate(); | 35 void terminate(); |
| 36 | 36 |
| 37 // ActiveDOMObject | 37 // ActiveDOMObject |
| 38 void stop() override; | 38 void stop() override; |
| 39 | 39 |
| 40 // ActiveScriptWrappable | 40 // ActiveScriptWrappable |
| 41 bool hasPendingActivity() const final; | 41 bool hasPendingActivity() const final; |
| 42 | 42 |
| 43 ContentSecurityPolicy* contentSecurityPolicy(); | 43 ContentSecurityPolicy* contentSecurityPolicy(); |
| 44 | 44 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 60 void onFinished(); | 60 void onFinished(); |
| 61 | 61 |
| 62 RefPtr<WorkerScriptLoader> m_scriptLoader; | 62 RefPtr<WorkerScriptLoader> m_scriptLoader; |
| 63 Member<ContentSecurityPolicy> m_contentSecurityPolicy; | 63 Member<ContentSecurityPolicy> m_contentSecurityPolicy; |
| 64 WorkerGlobalScopeProxy* m_contextProxy; // The proxy outlives the worker to
perform thread shutdown. | 64 WorkerGlobalScopeProxy* m_contextProxy; // The proxy outlives the worker to
perform thread shutdown. |
| 65 }; | 65 }; |
| 66 | 66 |
| 67 } // namespace blink | 67 } // namespace blink |
| 68 | 68 |
| 69 #endif // InProcessWorkerBase_h | 69 #endif // InProcessWorkerBase_h |
| OLD | NEW |