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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 | 81 |
82 WorkerScriptController* script() { return m_script.get(); } | 82 WorkerScriptController* script() { return m_script.get(); } |
83 void clearScript() { m_script.clear(); } | 83 void clearScript() { m_script.clear(); } |
84 void clearInspector(); | 84 void clearInspector(); |
85 | 85 |
86 virtual void didEvaluateWorkerScript(); | 86 virtual void didEvaluateWorkerScript(); |
87 void dispose(); | 87 void dispose(); |
88 | 88 |
89 WorkerThread* thread() const { return m_thread; } | 89 WorkerThread* thread() const { return m_thread; } |
90 | 90 |
91 virtual void postTask(const WebTraceLocation&, PassOwnPtr<ExecutionContextTa
sk>) override final; // Executes the task on context's thread asynchronously. | 91 virtual void postTask(PassOwnPtr<ExecutionContextTask>) override final; // E
xecutes the task on context's thread asynchronously. |
92 | 92 |
93 // WorkerGlobalScope | 93 // WorkerGlobalScope |
94 WorkerGlobalScope* self() { return this; } | 94 WorkerGlobalScope* self() { return this; } |
95 WorkerConsole* console(); | 95 WorkerConsole* console(); |
96 WorkerLocation* location() const; | 96 WorkerLocation* location() const; |
97 void close(); | 97 void close(); |
98 | 98 |
99 DEFINE_ATTRIBUTE_EVENT_LISTENER(error); | 99 DEFINE_ATTRIBUTE_EVENT_LISTENER(error); |
100 | 100 |
101 // WorkerUtils | 101 // WorkerUtils |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 | 183 |
184 unsigned long m_workerExceptionUniqueIdentifier; | 184 unsigned long m_workerExceptionUniqueIdentifier; |
185 WillBeHeapHashMap<unsigned long, RefPtrWillBeMember<ConsoleMessage>> m_pendi
ngMessages; | 185 WillBeHeapHashMap<unsigned long, RefPtrWillBeMember<ConsoleMessage>> m_pendi
ngMessages; |
186 }; | 186 }; |
187 | 187 |
188 DEFINE_TYPE_CASTS(WorkerGlobalScope, ExecutionContext, context, context->isWorke
rGlobalScope(), context.isWorkerGlobalScope()); | 188 DEFINE_TYPE_CASTS(WorkerGlobalScope, ExecutionContext, context, context->isWorke
rGlobalScope(), context.isWorkerGlobalScope()); |
189 | 189 |
190 } // namespace blink | 190 } // namespace blink |
191 | 191 |
192 #endif // WorkerGlobalScope_h | 192 #endif // WorkerGlobalScope_h |
OLD | NEW |