| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 ThreadedMessagingProxyBase_h | 5 #ifndef ThreadedMessagingProxyBase_h |
| 6 #define ThreadedMessagingProxyBase_h | 6 #define ThreadedMessagingProxyBase_h |
| 7 | 7 |
| 8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "core/frame/UseCounter.h" | 9 #include "core/frame/UseCounter.h" |
| 10 #include "core/inspector/ConsoleTypes.h" | 10 #include "core/inspector/ConsoleTypes.h" |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 | 84 |
| 85 private: | 85 private: |
| 86 friend class InProcessWorkerMessagingProxyForTest; | 86 friend class InProcessWorkerMessagingProxyForTest; |
| 87 friend class ThreadedWorkletMessagingProxyForTest; | 87 friend class ThreadedWorkletMessagingProxyForTest; |
| 88 | 88 |
| 89 void ParentObjectDestroyedInternal(); | 89 void ParentObjectDestroyedInternal(); |
| 90 | 90 |
| 91 Persistent<ExecutionContext> execution_context_; | 91 Persistent<ExecutionContext> execution_context_; |
| 92 Persistent<ThreadableLoadingContext> loading_context_; | 92 Persistent<ThreadableLoadingContext> loading_context_; |
| 93 Persistent<WorkerInspectorProxy> worker_inspector_proxy_; | 93 Persistent<WorkerInspectorProxy> worker_inspector_proxy_; |
| 94 |
| 94 // Accessed cross-thread when worker thread posts tasks to the parent. | 95 // Accessed cross-thread when worker thread posts tasks to the parent. |
| 95 CrossThreadPersistent<ParentFrameTaskRunners> parent_frame_task_runners_; | 96 CrossThreadPersistent<ParentFrameTaskRunners> parent_frame_task_runners_; |
| 96 | 97 |
| 97 std::unique_ptr<WorkerThread> worker_thread_; | 98 std::unique_ptr<WorkerThread> worker_thread_; |
| 98 | 99 |
| 99 RefPtr<WorkerLoaderProxy> loader_proxy_; | 100 RefPtr<WorkerLoaderProxy> loader_proxy_; |
| 100 | 101 |
| 101 bool may_be_destroyed_; | 102 bool may_be_destroyed_; |
| 102 bool asked_to_terminate_; | 103 bool asked_to_terminate_; |
| 103 }; | 104 }; |
| 104 | 105 |
| 105 } // namespace blink | 106 } // namespace blink |
| 106 | 107 |
| 107 #endif // ThreadedMessagingProxyBase_h | 108 #endif // ThreadedMessagingProxyBase_h |
| OLD | NEW |