| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 // Creates a proxy to allow communicating with the worker's global scope. In
ProcessWorkerBase does not take ownership of the | 53 // Creates a proxy to allow communicating with the worker's global scope. In
ProcessWorkerBase does not take ownership of the |
| 54 // created proxy. The proxy is expected to manage its own lifetime, and dele
te itself in response to terminateWorkerGlobalScope(). | 54 // created proxy. The proxy is expected to manage its own lifetime, and dele
te itself in response to terminateWorkerGlobalScope(). |
| 55 virtual WorkerGlobalScopeProxy* createWorkerGlobalScopeProxy(ExecutionContex
t*) = 0; | 55 virtual WorkerGlobalScopeProxy* createWorkerGlobalScopeProxy(ExecutionContex
t*) = 0; |
| 56 | 56 |
| 57 private: | 57 private: |
| 58 // Callbacks for m_scriptLoader. | 58 // Callbacks for m_scriptLoader. |
| 59 void onResponse(); | 59 void onResponse(); |
| 60 void onFinished(); | 60 void onFinished(); |
| 61 | 61 |
| 62 RefPtr<WorkerScriptLoader> m_scriptLoader; | 62 RefPtr<WorkerScriptLoader> m_scriptLoader; |
| 63 RefPtrWillBeMember<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 |