OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 void terminateInternally(); | 89 void terminateInternally(); |
90 | 90 |
91 // WorkerLoaderProxyProvider | 91 // WorkerLoaderProxyProvider |
92 // These methods are called on different threads to schedule loading | 92 // These methods are called on different threads to schedule loading |
93 // requests and to send callbacks back to WorkerGlobalScope. | 93 // requests and to send callbacks back to WorkerGlobalScope. |
94 void postTaskToLoader(PassOwnPtr<ExecutionContextTask>) override; | 94 void postTaskToLoader(PassOwnPtr<ExecutionContextTask>) override; |
95 bool postTaskToWorkerGlobalScope(PassOwnPtr<ExecutionContextTask>) override; | 95 bool postTaskToWorkerGlobalScope(PassOwnPtr<ExecutionContextTask>) override; |
96 | 96 |
97 RefPtrWillBePersistent<ExecutionContext> m_executionContext; | 97 RefPtrWillBePersistent<ExecutionContext> m_executionContext; |
98 OwnPtr<WorkerObjectProxy> m_workerObjectProxy; | 98 OwnPtr<WorkerObjectProxy> m_workerObjectProxy; |
99 InProcessWorkerBase* m_workerObject; | 99 RawPtrWillBeWeakPersistent<InProcessWorkerBase> m_workerObject; |
100 bool m_mayBeDestroyed; | 100 bool m_mayBeDestroyed; |
101 RefPtr<WorkerThread> m_workerThread; | 101 RefPtr<WorkerThread> m_workerThread; |
102 | 102 |
103 unsigned m_unconfirmedMessageCount; // Unconfirmed messages from worker obje
ct to worker thread. | 103 unsigned m_unconfirmedMessageCount; // Unconfirmed messages from worker obje
ct to worker thread. |
104 bool m_workerThreadHadPendingActivity; // The latest confirmation from worke
r thread reported that it was still active. | 104 bool m_workerThreadHadPendingActivity; // The latest confirmation from worke
r thread reported that it was still active. |
105 | 105 |
106 bool m_askedToTerminate; | 106 bool m_askedToTerminate; |
107 | 107 |
108 Vector<OwnPtr<ExecutionContextTask>> m_queuedEarlyTasks; // Tasks are queued
here until there's a thread object created. | 108 Vector<OwnPtr<ExecutionContextTask>> m_queuedEarlyTasks; // Tasks are queued
here until there's a thread object created. |
109 OwnPtr<WorkerInspectorProxy> m_workerInspectorProxy; | 109 OwnPtr<WorkerInspectorProxy> m_workerInspectorProxy; |
110 | 110 |
111 OwnPtrWillBePersistent<WorkerClients> m_workerClients; | 111 OwnPtrWillBePersistent<WorkerClients> m_workerClients; |
112 | 112 |
113 RefPtr<WorkerLoaderProxy> m_loaderProxy; | 113 RefPtr<WorkerLoaderProxy> m_loaderProxy; |
114 }; | 114 }; |
115 | 115 |
116 } // namespace blink | 116 } // namespace blink |
117 | 117 |
118 #endif // WorkerMessagingProxy_h | 118 #endif // WorkerMessagingProxy_h |
OLD | NEW |