| 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 // WorkerScriptLoaderClient callbacks | 55 // WorkerScriptLoaderClient callbacks |
| 56 void didReceiveResponse(unsigned long identifier, const ResourceResponse&) o
verride; | 56 void didReceiveResponse(unsigned long identifier, const ResourceResponse&) o
verride; |
| 57 void notifyFinished() override; | 57 void notifyFinished() override; |
| 58 | 58 |
| 59 RefPtr<WorkerScriptLoader> m_scriptLoader; | 59 RefPtr<WorkerScriptLoader> m_scriptLoader; |
| 60 WorkerGlobalScopeProxy* m_contextProxy; // The proxy outlives the worker to
perform thread shutdown. | 60 WorkerGlobalScopeProxy* m_contextProxy; // The proxy outlives the worker to
perform thread shutdown. |
| 61 RefPtr<ContentSecurityPolicy> m_contentSecurityPolicy; | |
| 62 }; | 61 }; |
| 63 | 62 |
| 64 } // namespace blink | 63 } // namespace blink |
| 65 | 64 |
| 66 #endif // InProcessWorkerBase_h | 65 #endif // InProcessWorkerBase_h |
| OLD | NEW |