OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008, 2009 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 String userAgent() const final; | 85 String userAgent() const final; |
86 void disableEval(const String& errorMessage) final; | 86 void disableEval(const String& errorMessage) final; |
87 | 87 |
88 WorkerOrWorkletScriptController* scriptController() final { return m_scriptC
ontroller.get(); } | 88 WorkerOrWorkletScriptController* scriptController() final { return m_scriptC
ontroller.get(); } |
89 | 89 |
90 virtual void didEvaluateWorkerScript(); | 90 virtual void didEvaluateWorkerScript(); |
91 void dispose(); | 91 void dispose(); |
92 | 92 |
93 WorkerThread* thread() const { return m_thread; } | 93 WorkerThread* thread() const { return m_thread; } |
94 | 94 |
95 void postTask(const WebTraceLocation&, std::unique_ptr<ExecutionContextTask>
) final; // Executes the task on context's thread asynchronously. | 95 void postTask(const WebTraceLocation&, std::unique_ptr<ExecutionContextTask>
, const String& taskNameForInstrumentation) final; // Executes the task on conte
xt's thread asynchronously. |
96 | 96 |
97 // WorkerGlobalScope | 97 // WorkerGlobalScope |
98 WorkerGlobalScope* self() { return this; } | 98 WorkerGlobalScope* self() { return this; } |
99 WorkerLocation* location() const; | 99 WorkerLocation* location() const; |
100 void close(); | 100 void close(); |
101 | 101 |
102 DEFINE_ATTRIBUTE_EVENT_LISTENER(error); | 102 DEFINE_ATTRIBUTE_EVENT_LISTENER(error); |
103 DEFINE_ATTRIBUTE_EVENT_LISTENER(rejectionhandled); | 103 DEFINE_ATTRIBUTE_EVENT_LISTENER(rejectionhandled); |
104 DEFINE_ATTRIBUTE_EVENT_LISTENER(unhandledrejection); | 104 DEFINE_ATTRIBUTE_EVENT_LISTENER(unhandledrejection); |
105 | 105 |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 Member<ConsoleMessageStorage> m_messageStorage; | 202 Member<ConsoleMessageStorage> m_messageStorage; |
203 | 203 |
204 HeapListHashSet<Member<V8AbstractEventListener>> m_eventListeners; | 204 HeapListHashSet<Member<V8AbstractEventListener>> m_eventListeners; |
205 }; | 205 }; |
206 | 206 |
207 DEFINE_TYPE_CASTS(WorkerGlobalScope, ExecutionContext, context, context->isWorke
rGlobalScope(), context.isWorkerGlobalScope()); | 207 DEFINE_TYPE_CASTS(WorkerGlobalScope, ExecutionContext, context, context->isWorke
rGlobalScope(), context.isWorkerGlobalScope()); |
208 | 208 |
209 } // namespace blink | 209 } // namespace blink |
210 | 210 |
211 #endif // WorkerGlobalScope_h | 211 #endif // WorkerGlobalScope_h |
OLD | NEW |