| 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 | 143 |
| 144 virtual const KURL& virtualURL() const OVERRIDE FINAL; | 144 virtual const KURL& virtualURL() const OVERRIDE FINAL; |
| 145 virtual KURL virtualCompleteURL(const String&) const OVERRIDE FINAL; | 145 virtual KURL virtualCompleteURL(const String&) const OVERRIDE FINAL; |
| 146 | 146 |
| 147 virtual void reportBlockedScriptExecutionToInspector(const String& direc
tiveText) OVERRIDE FINAL; | 147 virtual void reportBlockedScriptExecutionToInspector(const String& direc
tiveText) OVERRIDE FINAL; |
| 148 virtual void addMessage(MessageSource, MessageLevel, const String& messa
ge, const String& sourceURL, unsigned lineNumber, ScriptState* = 0) OVERRIDE FIN
AL; | 148 virtual void addMessage(MessageSource, MessageLevel, const String& messa
ge, const String& sourceURL, unsigned lineNumber, ScriptState* = 0) OVERRIDE FIN
AL; |
| 149 | 149 |
| 150 virtual EventTarget* errorEventTarget() OVERRIDE FINAL; | 150 virtual EventTarget* errorEventTarget() OVERRIDE FINAL; |
| 151 virtual void didUpdateSecurityOrigin() OVERRIDE FINAL { } | 151 virtual void didUpdateSecurityOrigin() OVERRIDE FINAL { } |
| 152 | 152 |
| 153 void clearThread() { m_thread = 0; } |
| 154 |
| 153 KURL m_url; | 155 KURL m_url; |
| 154 String m_userAgent; | 156 String m_userAgent; |
| 155 | 157 |
| 156 mutable RefPtrWillBeMember<WorkerConsole> m_console; | 158 mutable RefPtrWillBeMember<WorkerConsole> m_console; |
| 157 mutable RefPtrWillBeMember<WorkerLocation> m_location; | 159 mutable RefPtrWillBeMember<WorkerLocation> m_location; |
| 158 mutable RefPtrWillBeMember<WorkerNavigator> m_navigator; | 160 mutable RefPtrWillBeMember<WorkerNavigator> m_navigator; |
| 159 | 161 |
| 160 OwnPtr<WorkerScriptController> m_script; | 162 OwnPtr<WorkerScriptController> m_script; |
| 161 WorkerThread* m_thread; | 163 WorkerThread* m_thread; |
| 162 | 164 |
| 163 OwnPtr<WorkerInspectorController> m_workerInspectorController; | 165 OwnPtr<WorkerInspectorController> m_workerInspectorController; |
| 164 bool m_closing; | 166 bool m_closing; |
| 165 | 167 |
| 166 OwnPtr<WorkerEventQueue> m_eventQueue; | 168 OwnPtr<WorkerEventQueue> m_eventQueue; |
| 167 | 169 |
| 168 OwnPtr<WorkerClients> m_workerClients; | 170 OwnPtr<WorkerClients> m_workerClients; |
| 169 | 171 |
| 170 double m_timeOrigin; | 172 double m_timeOrigin; |
| 171 }; | 173 }; |
| 172 | 174 |
| 173 DEFINE_TYPE_CASTS(WorkerGlobalScope, ExecutionContext, context, context->isWorke
rGlobalScope(), context.isWorkerGlobalScope()); | 175 DEFINE_TYPE_CASTS(WorkerGlobalScope, ExecutionContext, context, context->isWorke
rGlobalScope(), context.isWorkerGlobalScope()); |
| 174 | 176 |
| 175 } // namespace WebCore | 177 } // namespace WebCore |
| 176 | 178 |
| 177 #endif // WorkerGlobalScope_h | 179 #endif // WorkerGlobalScope_h |
| OLD | NEW |