| 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 | 144 |
| 145 virtual void refEventTarget() OVERRIDE { ref(); } | 145 virtual void refEventTarget() OVERRIDE { ref(); } |
| 146 virtual void derefEventTarget() OVERRIDE { deref(); } | 146 virtual void derefEventTarget() OVERRIDE { deref(); } |
| 147 virtual EventTargetData* eventTargetData() OVERRIDE; | 147 virtual EventTargetData* eventTargetData() OVERRIDE; |
| 148 virtual EventTargetData* ensureEventTargetData() OVERRIDE; | 148 virtual EventTargetData* ensureEventTargetData() OVERRIDE; |
| 149 | 149 |
| 150 virtual const KURL& virtualURL() const OVERRIDE; | 150 virtual const KURL& virtualURL() const OVERRIDE; |
| 151 virtual KURL virtualCompleteURL(const String&) const; | 151 virtual KURL virtualCompleteURL(const String&) const; |
| 152 | 152 |
| 153 virtual void addMessage(MessageSource, MessageLevel, const String& messa
ge, const String& sourceURL, unsigned lineNumber, PassRefPtr<ScriptCallStack>, S
criptState* = 0, unsigned long requestIdentifier = 0) OVERRIDE; | 153 virtual void addMessage(MessageSource, MessageLevel, const String& messa
ge, const String& sourceURL, unsigned lineNumber, PassRefPtr<ScriptCallStack>, S
criptState* = 0, unsigned long requestIdentifier = 0) OVERRIDE; |
| 154 virtual void addConsoleMessage(MessageSource, MessageLevel, const String
& message, unsigned long requestIdentifier = 0) OVERRIDE; | 154 virtual void addConsoleMessage(MessageSource, MessageLevel, const String
& message, unsigned long requestIdentifier = 0, ParserStateCollectionDisposition
= DoNotForceParserStateCollection) OVERRIDE; |
| 155 | 155 |
| 156 virtual EventTarget* errorEventTarget() OVERRIDE; | 156 virtual EventTarget* errorEventTarget() OVERRIDE; |
| 157 | 157 |
| 158 KURL m_url; | 158 KURL m_url; |
| 159 String m_userAgent; | 159 String m_userAgent; |
| 160 | 160 |
| 161 mutable RefPtr<WorkerLocation> m_location; | 161 mutable RefPtr<WorkerLocation> m_location; |
| 162 mutable RefPtr<WorkerNavigator> m_navigator; | 162 mutable RefPtr<WorkerNavigator> m_navigator; |
| 163 | 163 |
| 164 OwnPtr<WorkerScriptController> m_script; | 164 OwnPtr<WorkerScriptController> m_script; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 180 | 180 |
| 181 inline WorkerGlobalScope* toWorkerGlobalScope(ScriptExecutionContext* context) | 181 inline WorkerGlobalScope* toWorkerGlobalScope(ScriptExecutionContext* context) |
| 182 { | 182 { |
| 183 ASSERT_WITH_SECURITY_IMPLICATION(!context || context->isWorkerGlobalScope())
; | 183 ASSERT_WITH_SECURITY_IMPLICATION(!context || context->isWorkerGlobalScope())
; |
| 184 return static_cast<WorkerGlobalScope*>(context); | 184 return static_cast<WorkerGlobalScope*>(context); |
| 185 } | 185 } |
| 186 | 186 |
| 187 } // namespace WebCore | 187 } // namespace WebCore |
| 188 | 188 |
| 189 #endif // WorkerGlobalScope_h | 189 #endif // WorkerGlobalScope_h |
| OLD | NEW |