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 "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
9 #include "core/dom/ActiveDOMObject.h" | 9 #include "core/dom/ActiveDOMObject.h" |
10 #include "core/dom/MessagePort.h" | 10 #include "core/dom/MessagePort.h" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 // created proxy. The proxy is expected to manage its own lifetime, and dele
te itself in response to terminateWorkerGlobalScope(). | 51 // created proxy. The proxy is expected to manage its own lifetime, and dele
te itself in response to terminateWorkerGlobalScope(). |
52 virtual WorkerGlobalScopeProxy* createWorkerGlobalScopeProxy(ExecutionContex
t*) = 0; | 52 virtual WorkerGlobalScopeProxy* createWorkerGlobalScopeProxy(ExecutionContex
t*) = 0; |
53 | 53 |
54 private: | 54 private: |
55 // Callbacks for m_scriptLoader. | 55 // Callbacks for m_scriptLoader. |
56 void onResponse(); | 56 void onResponse(); |
57 void onFinished(); | 57 void onFinished(); |
58 | 58 |
59 OwnPtr<WorkerScriptLoader> m_scriptLoader; | 59 OwnPtr<WorkerScriptLoader> m_scriptLoader; |
60 RefPtrWillBeMember<ContentSecurityPolicy> m_contentSecurityPolicy; | 60 RefPtrWillBeMember<ContentSecurityPolicy> m_contentSecurityPolicy; |
61 WorkerGlobalScopeProxy* m_contextProxy; // The proxy outlives the worker to
perform thread shutdown. | 61 RawPtrWillBeMember<WorkerGlobalScopeProxy> m_contextProxy; // The proxy outl
ives the worker to perform thread shutdown. |
62 }; | 62 }; |
63 | 63 |
64 } // namespace blink | 64 } // namespace blink |
65 | 65 |
66 #endif // InProcessWorkerBase_h | 66 #endif // InProcessWorkerBase_h |
OLD | NEW |